* [Qemu-devel] qdev: USB is not working
@ 2009-09-24 18:49 Luiz Capitulino
2009-09-25 7:54 ` [Qemu-devel] " Gerd Hoffmann
0 siblings, 1 reply; 3+ messages in thread
From: Luiz Capitulino @ 2009-09-24 18:49 UTC (permalink / raw)
To: kraxel; +Cc: qemu-devel
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.5
usb_create: no bus specified, using "usb.0" for "USB Host Device"
husb: config #1 need -1
USBDEVFS_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 <kraxel@redhat.com>
Date: Mon Aug 31 14:24:00 2009 +0200
qdev/usb: make qemu aware of usb busses.
"""
"""
commit 806b60248218bd5f74a8b070f5a99a864e8e51c6
Author: Gerd Hoffmann <kraxel@redhat.com>
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: qdev: USB is not working
2009-09-24 18:49 [Qemu-devel] qdev: USB is not working Luiz Capitulino
@ 2009-09-25 7:54 ` Gerd Hoffmann
2009-09-25 12:52 ` Luiz Capitulino
0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2009-09-25 7:54 UTC (permalink / raw)
To: Luiz Capitulino; +Cc: qemu-devel
> """
> husb: open device 1.5
> usb_create: no bus specified, using "usb.0" for "USB Host Device"
> husb: config #1 need -1
> USBDEVFS_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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: qdev: USB is not working
2009-09-25 7:54 ` [Qemu-devel] " Gerd Hoffmann
@ 2009-09-25 12:52 ` Luiz Capitulino
0 siblings, 0 replies; 3+ messages in thread
From: Luiz Capitulino @ 2009-09-25 12:52 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel
On Fri, 25 Sep 2009 09:54:58 +0200
Gerd Hoffmann <kraxel@redhat.com> wrote:
> > """
> > husb: open device 1.5
> > usb_create: no bus specified, using "usb.0" for "USB Host Device"
> > husb: config #1 need -1
> > USBDEVFS_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.
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-25 12:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-24 18:49 [Qemu-devel] qdev: USB is not working Luiz Capitulino
2009-09-25 7:54 ` [Qemu-devel] " Gerd Hoffmann
2009-09-25 12:52 ` Luiz Capitulino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).