All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Wei Liu <wei.liu2@citrix.com>, Ajmal M Ali <ajeeshb4u@gmail.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
	Xen Maillist <xen-devel@lists.xen.org>
Subject: Re: USB Passthrough support X86_64
Date: Fri, 21 Jul 2017 10:39:36 +0200	[thread overview]
Message-ID: <e0edd834-01f9-0771-dc6a-1411909b3e22@suse.com> (raw)
In-Reply-To: <20170721082837.vnhiquftasun5dgm@citrix.com>

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@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-07-21  8:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20  7:35 USB Passthrough support X86_64 Ajmal M Ali
2017-07-21  8:28 ` Wei Liu
2017-07-21  8:39   ` Juergen Gross [this message]
2017-07-21  8:47     ` Pasi Kärkkäinen
2017-08-03  9:18       ` Ajmal M Ali
2017-08-03  9:26         ` Ajmal M Ali
2017-08-03  9:29           ` Juergen Gross
2017-08-03  9:40             ` Ajmal M Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e0edd834-01f9-0771-dc6a-1411909b3e22@suse.com \
    --to=jgross@suse.com \
    --cc=ajeeshb4u@gmail.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.