]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix QEMU hotplug device alias assignment
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 1 Feb 2010 16:28:46 +0000 (16:28 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Feb 2010 16:31:47 +0000 (16:31 +0000)
commit719c50caf8f1c4df5288181380b829cfc1d05dd3
tree90d3af536bd1fdbb7e829ff77147243cdffff165
parentdb0b9e7d52aa3336e0363639e8be00823401df07
Fix QEMU hotplug device alias assignment

To allow devices to be hot(un-)plugged it is neccessary to ensure
they all have a unique device aliases. This fixes the hotplug
methods to assign device aliases before invoking the monitor
commands which need them

* src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Expose methods
  for assigning device aliases for disks, host devices and
  controllers
* src/qemu/qemu_driver.c: Assign device aliases when hotplugging
  all types of device
* tests/qemuxml2argvdata/qemuxml2argv-hostdev-pci-address-device.args,
  tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address-device.args:
  Update for changed hostdev naming scheme
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
tests/qemuxml2argvdata/qemuxml2argv-hostdev-pci-address-device.args
tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address-device.args