Bug 688526 - "info usb" at qemu monitor not listing virtual usb devices
Summary: "info usb" at qemu monitor not listing virtual usb devices
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.1
Hardware: x86_64
OS: All
medium
medium
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 559201 580954 684953
TreeView+ depends on / blocked
 
Reported: 2011-03-17 10:11 UTC by IBM Bug Proxy
Modified: 2013-01-09 23:40 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-30 10:13:08 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
IBM Linux Technology Center 70736 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.