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

[Xen-devel] Re: USB with Xen2.0

To: <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: USB with Xen2.0
From: "Mark Hurenkamp" <Mark.Hurenkamp@xxxxxxxxx>
Date: Tue, 19 Oct 2004 15:41:14 +0200 (CEST)
Cc: <maw48@xxxxxxxxxxxxxxxx>
Delivery-date: Wed, 20 Oct 2004 20:40:09 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
Importance: Normal
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> > Does usb devices works with Xen2.0, even when only domaim0 is present?
>
> Yes, we've had success reports.
Works great for me :-)

> > does it work with multiple domains?
>
> Depends what you mean.  Dom0 will by default control all the USB devices.
> If you want another domain to control a USB root hub device, you can
> assign it permissions, as for a driver domain.

I have multiple (currently 3) usb host controllers in my system, and for as
far as I can tell, they all work fine in domain 0.
I've started experimenting with allowing other domains to access them, and
so far it looks good, they are recognised properly, and lspci and lsusb show
that the hardware is present in the domain.
Running 'cat /dev/input/mouse0' and 'cat /dev/input/event0' (kbd) shows that
they receive input from mouse and keyboard.
I have yet to try my other usb equipment, a harddisk, dvd drive, printer,
scanner and usb-lan adapter.
> My USB virtualisation stuff (give guests control of individual USB ports)
> is in progess but I keep getting distracted by other things (most
> recently the 2.0 release).
I'm eagerly awaiting this functionality (then I can remove at least 1 usb
controller :-), how's it approaching? If you have some patches, I'd be
willing to give it a try :-)
> > if Yes, how to make it work?
>
> To make it work in dom0, just stick it in the Linux kernel config and it
> should Just Work(TM).
Yep, to make it work for domain 0, just enable it in the kernel (I used
2.6.8.1-xen0). To enable it in other domains, you have to pass an option
to your kernel in grub, (add the 'pci_dom0_hide=(xx:yy.zz)' boot option)
to hide it from domain 0, and also enable the device in your other domain
config (using pci=['xx,yy,zz'] ).

Good luck,
Mark.





-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel