[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-----
[snip]
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.
<snip>

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
configuring.

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 
success.

   Paul

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)
and
device_model_args=["-device","usb-host,vendorid=0x058f,productid=0x6387"]
or
device_model_args=["-device","usb-host,hostbus=001,hostaddr=005"]
(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.


Regards.

--
Best regards,
  Simon                            mailto:furryfuttock@xxxxxxxxx


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel


 


Rackspace

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