[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [win-pv-devel] USB driver

Il 15/12/2015 12:52, Paul Durrant ha scritto:
-----Original Message-----
Can we achieve this via qemu?

Maybe. Documentation suggests that the -usbdevice option can be
used to assign a host USB device to a guest.

As far as I can see from the QEMU documentation, we can push through a
USB  device  (telephone,  etc), but not the USB hub itself. This means
that  I would have to have a process running in Dom0 monitoring device
insertion  and  hot-configuring  QEMU.  Not  sure  if  QEMU allows hot

It should do. You can use QMP to add devices dynamically, I believe.

I'll  pull  down  the  old GPLPV drivers and see what I can get out of
there.  Supposedly  splice  protocol allows USB forwarding, has anyone
tried it?

I assume you mean 'spice' rather than 'splice'? Googling around suggests that 
spice itself does not handle USB but there's a related 'usbredir' protocol that 
does. Not tried spice myself but I believe Fabio Fantoni (cc-ed) has had some 


Spice usbredirection is upstream and working, I use it in production for over a year on dozens of thin clients. With it you can share up to 4 usb devices from spice client to the domU, I added support of usb1/usb2/usb3 controller, tested and working on all. One exception (not caused by usbredir itself): on recent windows versions usb1 controller is not working, same with old usb passthrough from dom0. Old usb passthrough support only usb1 and is only for share sub device connected from dom0, spice usbredirection instead from any client when you connect (also on wan if connection is not bad), you can share devices already connected before and also after spice client start and it is faster/easy to use that xen usb passthrough.

If you want use spice usbredirection (xen >=4.4, spice and usbredir required) added this in domU xl cfg:
spiceusbredirection=4 (for share up to four usb device)
usbversion=2 (this is optional, the default is usb2 controller automatically added with spice usbredirection enabled but you can specify usb1 or usb3)

If you need use usb passthrough from dom0 working now without wait new patches in development (that support will also hotplug) you can use these parameters in domU xl cfg instead usb=1 and usbdevice:

usbversion=2 (for emulated usb2 controller working also on recent windows)
(replacing the value with the right of what you want share watching)

tested from xen 4.4 to 4.6

Sorry for my bad english.


Best regards,
  Simon                            mailto:furryfuttock@xxxxxxxxx

win-pv-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.