From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH RFC] libxl: Introduce functions to add and remove USB devices to an HVM guest Date: Wed, 10 Apr 2013 14:55:53 +0100 Message-ID: <51656F69.4020101@eu.citrix.com> References: <51656DEF.1070103@cbnco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51656DEF.1070103@cbnco.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefan Cc: Ian Jackson , xen-devel List-Id: xen-devel@lists.xenproject.org On 10/04/13 14:49, Stefan wrote: > I've been following this thread with interest. Having USB passthrough > for xl will certainly be an appreciated feature. > > Provided a USB-device structure, enabling PVUSB is almost only a matter > of writing to the xenstore. Please have a look at this script: > http://www.neobiker.de/wiki/index.php?title=XEN-PVUSB > > It's a shell script that does the work. Of course, there's also a python > implementation in the GIT. Perhaps we could at least have a USB-device > structure before the feature freeze? Can you make the code that we have > available? I'd like to see if I can do something with it, instead of > having to start from nothing. I'm working hard to try to get "devicemodel" USB hot-plug working, and that involves getting a forward-compatible structure and everything ready to add PV as an optional protocol. If things go as planned, then adding PVUSB support should just be a matter of: * Adding a handler for PVUSB in libxl_usb.c:do_usb_add() * Adding a command-line option to specify PVUSB even for HVM guests I should have a rough draft ready for you to try to hack within 24 hours. -George