Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 688526

Summary: "info usb" at qemu monitor not listing virtual usb devices
Product: Red Hat Enterprise Linux 6 Reporter: IBM Bug Proxy <bugproxy>
Component: qemu-kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED WORKSFORME QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: balkov, jkachuck, mkenneth, tburke, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-30 10:13:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 559201, 580954, 684953    

Description IBM Bug Proxy 2011-03-17 10:11:19 UTC
---Problem Description---
At the qemu monitor, "info usb" is not listing virtual usb devices available for the guest, even
when "lsusb" in guest OS lists some usb devices.
 
---uname output---
Linux hostname.ibm.com 2.6.32-118.el6.x86_64 #1 SMP Tue Feb 22 11:15:55 EST 2011 x86_64 x86_64
x86_64 GNU/Linux
 
Machine Type = HS22 
 
---Debugger---
A debugger is not configured
 
---Steps to Reproduce---
 Steps:
  1. Start a guest OS using qemu-kvm, appending the option "-usb" for enabling usb support in qemu.
     Eg:     /usr/libexec/qemu-kvm -hda ../images/SLES11-SP1-64.raw -m 512 -vnc :9 -usb usbdevice tablet
  2. Login to the guest OS and using "lsusb" list out the usbdevices available. Atleast one device
will be listed.
  3. Go to qemu monitor and give the command "info usb". No usb devices get displayed.
 
---KVM Component Data--- 
Userspace tool common name: qemu-kvm 
 
The userspace tool has the following bit modes: 64 bit 

Userspace rpm: qemu-kvm-0.12.1.2-2.148.el6.x86_64 

Userspace tool obtained from project website:  na 
 

=Comment: #1=================================================

1.Server architecture(s) (please list all effected) (x86/POWER6/Z/etc.): x86

2.Server type (9117-MMA/HS20/s390/etc.):  HS22

3.General component (desktop/kernel/base OS/dev tools/etc.):  virsh

4.Other components involved (ixgbe/java/emulex/etc.):  nope

5.Does the server have the latest GA firmware?  yes

6.Has the problem been shown to occur on more than one system?  yes

7.Is a tested patch available? nope

  If yes to the above, has it been approved upstream? 

8.What is the latest official Red Hat build on which this bug has been seen?  6.1 Alpha

Comment 2 Dor Laor 2011-03-17 14:24:15 UTC
We'll support this through QMP once the command is implemented.

Comment 3 IBM Bug Proxy 2011-03-30 09:12:55 UTC
------- Comment From vahegde1.ibm.com 2011-03-30 05:01 EDT-------
Hi Dor / Red Hat  ,
(In reply to comment #6)
> We'll support this through QMP once the command is implemented.

When is QMP support is expected ?

Thanks
Vasant

Comment 4 Luiz Capitulino 2011-03-30 13:17:46 UTC
This could be a bug in 'info usb' which could be fixed soon in upstream, but as Dor said, query-usb doesn't exist in QMP yet.

We could try it for RHEL6.2, but I'm not sure we have capacity. It's a bit more realistic for RHEL7.0 I guess.

Comment 7 Gerd Hoffmann 2011-05-30 10:13:08 UTC
Not reproducable with qemu-kvm-0.12.1.2-2.160.el6.x86_64

Host monitor:

(qemu) info usb
  Device 0.2, Port 1, Speed 12 Mb/s, Product QEMU USB Tablet

Guest shell:

[root@localhost ~]# lsusb
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd 
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ emulated tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Works as expected.

Comment 8 IBM Bug Proxy 2011-06-01 11:40:32 UTC
------- Comment From vahegde1.ibm.com 2011-06-01 07:31 EDT-------
Hi Red Hat,
(In reply to comment #9)
> Not reproducable with qemu-kvm-0.12.1.2-2.160.el6.x86_64
> Works as expected.

Thanks for the update.

Thanks
Vasant