qdev: USB is not working
Hi Gerd,
When trying to add a USB device to QEMU (either by command-line or
the Monitor) I'm getting the following error:
"""
husb: open device 1.5usb_create: no bus specified, using "usb.0" for "USB Host Device"
husb: config #1 need -1USBDEVFS_DISCONNECT: Invalid argument
"""
I've tried different devices, as I thought this was a problem with
my box, but got the same problem.. Then I debugged and found out that the problem was introduced by one of the following commits:
"""
commit a5d2f7273c4f59942cc7ffa763d6b60a6f44e908
Author: Gerd Hoffmann <[email protected]> Date: Mon Aug 31 14:24:00 2009 +0200
qdev/usb: make qemu aware of usb busses.
"""
"""
commit 806b60248218bd5f74a8b070f5a99a864e8e51c6
Author: Gerd Hoffmann <[email protected]> Date: Mon Aug 31 14:23:59 2009 +0200
qdev/usb: add usb bus support to qdev, convert drivers.
"""
I can't tell which one introduced the problem because with
commit 806b60248218bd5f74a8b070f5a99a864e8e51c6 I get a segfault, which was fixed by the other.
I couldn't revert them either, because there are rejections,
but resetting the tree right before those makes USB work for me.
Quoted 9 lines
"""
husb: open device 1.5usb_create: no bus specified, using "usb.0" for "USB Host Device"
husb: config #1 need -1USBDEVFS_DISCONNECT: Invalid argument
"""I've tried different devices, as I thought this was a problem with
my box, but got the same problem..
Looks like you are trying to pass through host devices, correct?
Hooking up virtual mass storage / mouse / tabled works fine, so it is probably a bug somewhere in usb-linux.c. I'll have a look later today.
cheers,
Gerd
Quoted 11 lines · On Fri, 25 Sep 2009 09:54:58 +0200 Gerd Hoffmann <[email protected]> wrote:
Quoted 9 lines
"""
husb: open device 1.5usb_create: no bus specified, using "usb.0" for "USB Host Device"
husb: config #1 need -1USBDEVFS_DISCONNECT: Invalid argument
"""I've tried different devices, as I thought this was a problem with
my box, but got the same problem..Looks like you are trying to pass through host devices, correct?
Yes.
Quoted 2 lines
Hooking up virtual mass storage / mouse / tabled works fine, so it is probably a bug somewhere in
usb-linux.c. I'll have a look later today.
Ok, just to clarify: I found those commits with 'git bisect'.
Thanks.