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

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



> > 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


 


Rackspace

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