WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] USB (virtualiation?) in PV and HVM

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] USB (virtualiation?) in PV and HVM
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Sat, 10 Mar 2007 19:23:34 +0000
Cc: Emre Erenoglu <erenoglu@xxxxxxxxx>
Delivery-date: Sat, 10 Mar 2007 11:21:52 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <fe9771a80703080915t5c836e7cvb33349bb6c972f03@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <fe9771a80703080915t5c836e7cvb33349bb6c972f03@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.5
> Another question and another pardon for getting your valuable development
> time.
>
> I want to assign specific USB ports to Specific DomU's in my Xen
> Setup. Am I able to do it in:
> - HVM domains (i.e. Windows)?

This sort-of works; there is a syntax for controlling USB passthrough to HVM 
domUs in the config file format.  However, I'm not sure anybody uses this; 
the one or two reports I've recently seen reported significant problems with 
this mode of operation.

You could test how it works for you, but please treat it with caution.  I'm 
not sure it's "officially" supported as a working configuration at all.

> - in PV domains (i.e. linux running a xen domu kernel)?

This is not supported at the moment; there were patches for paravirtualised 
USB available at one stage but they certainly wouldn't work on modern Xen 
releases without some modification.  There's no officially sanctioned way of 
doing this either, unfortunately.

> So that I can share my 8 USB ports to different domains.
>
> Is there any documentation? I checked xensource, mail lists etc. but
> maybe didn't search the right way and couldn't find anything to put
> inside the domain configuration files to enable this function.
>
> I remember seeing somewhere (maybe mailing lists) about this
> functionality and config like:
> usb:x:y:z:t
> to assign to a specific domain, but can't find it anymore...

This was probably a description of them PV USB interface, but that's not 
available anymore (IIRC it was included in Linux 2.4 on Xen 2.x releases - 
but that's ancient history now and not maintained.  In any case, it wasn't 
widely tested then so I wouldn't recommend trying it now other than to play 
around with.).

> I also 
> remember that it will be even possible to assign "specific devices" to
> specific domains regardless of the port (but this i don't need for the
> moment).

That sounds like something I might have said - was it me who made the post you 
were looking at?  Indeed this is something that shouldn't be too hard to 
implement given basic USB passthrough functionality; unfortunately we still 
don't have a stable and supported way of doing that.

Sorry to disappoint you.

You *could* pass through things like USB mass storage devices to PV and HVM 
guests using the standard blockfront/blockback driver, but USB hotplug will 
not work in a particularly sane way with this.  I'd recommend unmounting and 
removing the virtual block device corresponding to the USB device completely 
from all domains using it before removing it from the dom0 system.

Hope that helps you somewhat,
Cheers,
Mark

> Thanks alot beforehand for any link to a document to read,
>
> Best regards,
>
> Emre
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>