From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] VM-Tool: C-based Xen management tools Date: Mon, 14 Feb 2005 11:15:22 -0600 Message-ID: <4210DCAA.2050200@codemonkey.ws> References: <420D296B.7000106@us.ibm.com> <200502112238.39080.maw48@cl.cam.ac.uk> <4210CD5E.7030207@us.ibm.com> <200502141635.48773.maw48@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <200502141635.48773.maw48@cl.cam.ac.uk> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Mark Williamson Cc: Anthony Liguori , xen-devel@lists.sourceforge.net, Nivedita Singhvi List-Id: xen-devel@lists.xenproject.org Mark Williamson wrote: >The current implementation sidesteps all these by specifying port IDs. e.g. >port 1 on my root hub always belongs to VM1 (when running), port 2 on hub 3 >always belongs to VM2 (when running), etc. > > Yeah, I think we'll always have to support this as a fallback option. >>Not sure the best solution here. One of the reasons I've held off on USB. >> >> > >For comparison, do you know what abstraction other systems do? Do they assign >ports or associate devices with VMs? > > Not sure. The only thing I know that does USB virtualization is VMware and I've not played with that feature (I think it's a relatively new feature). udev/namedev have to deal with this to ensure that devices have a unique (and consistent) /dev entry. It currently uses a tiered approach to determine exactly what the device is. It's not perfect but it works reasonably well. The best link I could find explaining it with a quick google is: http://www.gentoo.org/doc/en/udev-guide.xml A GUI would be really handy for PCI/USB because it would provide an easy way to pick devices by name (instead of specifying an series of identifiers/bus/etc in the config). >The latter is definitely an attractive option... If we added support for both >ways of doing things, paranoid people (or people with weird devices!) could >use the port specifiers, whilst others used device IDs. > > I agree completely. I'm currently adding proper documentation to vm-tools but after that's done I'll add USB virtualization and try to implement a mechanism to select by device ID and push out another version to the list. Regards, -- Anthony Liguori anthony@codemonkey.ws ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click