Comment 25 for bug 685096

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 685096] Re: USB Passthrough not working for Windows 7 guest

Quoting Manuel Baesler (<email address hidden>):
> followup:
>
> my understanding is there are a bunch of usb interfaces:
>
> uhci is usb 1.0
> ehci is usb 2.0
> xhci is usb 3.0
> …
>
> -device piix3-usb-uhci will create an usb 1.0 interface. I guess usb 1.0
> is insufficent for modern usb devices so windows errors with code 10.
> ehci have enough to bring full support for modern usb devices.
>
> qemu is like LEGO where you can wire it all together :-)
>
> refference:
> https://github.com/qemu/qemu/blob/master/docs/usb2.txt
> https://en.wikipedia.org/wiki/Host_controller_interface_(USB,_Firewire)#USB

Thanks - so (this isn't documented in the qemu man page) am I to assume
that given " -usbdevice host:0781:5150" as the original bug submitter is
doing means "give me usb 1.0" ?

Max, does it work for you if you use (...taking a wild guess) :

 -device usb-ehci,id=usb,bus=pci.0,addr=0x4 \
 -device usb-host,vendorid=0x0781,productid=0x5150,id=hostdev0,bus=usb.0

or perhaps

 -device usb-ehci,id=usb,bus=pci.0,addr=0x4 \
 -usbdevice tablet \
 -device usb-host,vendorid=0x0781,productid=0x5150,id=hostdev0,bus=usb.0

You also might try xhci in place of ehci.

(If this does turn out to be the answer, then the bug title should be
changed to include 'usb2.0 and usb3.0 devices', to aid people in
finding this gem in the future)

 status: incomplete