On Tue, Jul 29, 2008 at 11:56:18AM +0100, Daniel P. Berrange wrote:
On Mon, Jul 28, 2008 at 09:26:57AM -0400, Daniel Veillard wrote:
> I also think we need to clarify the naming conventions, are numbers
> provided decimal, if yes then is an 0x hexadecimal version allowed too.
> I also see how a more high level description might be useful,
>
> <hostdev type='usb'>
> <source vendor='Sennheiser'/>
> </hostdev>
>
> or
>
> <hostdev type='usb'>
> <source product='headset'/>
> </hostdev>
We should stick to ID numbers in the domain XML - allowing decimal
or hex is nice.
For descriptive names 'Sennheiser' or 'headset', we should only
provide that info in the device enumeration APIs
Well, I was thinking of this as a way to keep the XML file static
over a range of potential hardware, potentially allowing some kind
of migration in spite of a dependancy to a local hardware device.
But that's probably not very realistic, and if turn out possible sometimes
then that can be added later.
http://www.redhat.com/archives/libvir-list/2008-April/msg00005.html
Management tools / admins can use this to map to the ID number
from a human readable name if relevant.
Okay, that solves the problem at creation time, i remember this being
discussed no problem.
Daniel
--
Red Hat Virtualization group
http://redhat.com/virtualization/
Daniel Veillard | virtualization library
http://libvirt.org/
veillard(a)redhat.com | libxml GNOME XML XSLT toolkit
http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine
http://rpmfind.net/