[libvirt] [PATCH 20/34] Assign device aliases for all devices at startup

Daniel Veillard veillard at redhat.com
Fri Jan 15 16:42:31 UTC 2010


On Fri, Jan 08, 2010 at 05:23:16PM +0000, Daniel P. Berrange wrote:
> When starting a guest, give every device a unique alias. This will
> be used for the 'id' parameter in -device args in later patches.
> It can also be used to uniquely identify devices in the monitor
> 
> For old QEMU without -device, assign disk names based on QEMU's
> historical naming scheme.
> 
> * src/qemu/qemu_conf.c: Assign unique device aliases
> * src/qemu/qemu_driver.c: Remove obsolete qemudDiskDeviceName
>   and use the device alias in eject & blockstats commands
> ---
>  src/qemu/qemu_conf.c   |  173 ++++++++++++++++++++++++++++++++++++++++++++++++
>  src/qemu/qemu_driver.c |  104 ++++++-----------------------
>  2 files changed, 195 insertions(+), 82 deletions(-)
> 

How would the user see the alias in practice ? They won't be
dumped in the XML if I understand correctly so how to they get exposed ?

  ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list