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

Re: [Xen-devel] USB Passthrough support X86_64



On 21/07/17 10:28, Wei Liu wrote:
> CC Juergen and George
> 
> On Thu, Jul 20, 2017 at 01:05:20PM +0530, Ajmal M Ali wrote:
>> Hi,
>>
>> I am trying to do USB passthrough in x86_64. I have Ubuntu as Dom0 and DomU.
>>
>>
>>
>> *Dom0 : Linux teltvm0881 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26
>> 18:08:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux*
>>
>> *DomU : Linux xen-guest-pv 4.12.0-custom #4 SMP Tue Jul 11 17:14:53 IST
>> 2017 x86_64 GNU/Linux*
>>
>>
>>
>> I had earlier, rebuild the kernel from kernel.orgto add PCI passthrough
>> support which was successful.
>>
>> But when i try to do USB passthrough, as given in,
>>
>> https://wiki.xenproject.org/wiki/Xen_USB_Passthrough
>>
>> it dont work.ie.
>>
>>
>>
>> *# xl usbctrl-attach xen-guest-pv version=1 ports=8*
>>
>> *libxl: error: libxl_dm.c:2423:libxl__dm_check_start: device model required
>> but not running*
>>
>> *libxl: error: libxl.c:2012:device_addrm_aocomplete: unable to add device*
>>
>> *libxl_device_usbctrl_add failed.*
>>
>>
>>
>> Why is this?
> 
> USB passthrough requires the device model. There is currently no
> provision in toolstack to spawn a device model on demand.
> 
> The easiest workaround is to add one device (vfb?) that would require
> spawning a device model when creating the domain.
> 
>>
>> i am trying to hotplug my usb. I haveint made any changes in the config
>> file, as i assumed it wont be needed for hotplug, also i didnt have to do
>> it for pci passthrough. Should i?
>>
>> Also, i cannot find any usbback and frond in my PC.

Uuh, yes. I've sent some patches to LKML for pvUSB frontend support
about 2 years ago:

https://lists.xen.org/archives/html/xen-devel/2015-06/msg03436.html

I didn't find any time since then to address all comments. Maybe I
should finish that task...

The patches should still work fine, AFAIK.


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

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