libvirt/tests/qemuxml2argvdata
Daniel P. Berrange 719c50caf8 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
2010-02-02 16:31:47 +00:00
..
qemuxml2argv-boot-cdrom.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-boot-cdrom.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-boot-floppy.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-boot-floppy.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-boot-network.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-boot-network.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-bootloader.args Fix handling of Xen(ner) detection 2009-09-22 16:13:33 +01:00
qemuxml2argv-bootloader.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-channel-guestfwd.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-channel-guestfwd.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-clock-localtime.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-clock-localtime.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-clock-utc.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-clock-utc.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-console-compat-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-console-compat-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-console-compat.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-console-compat.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-cdrom-empty.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-cdrom-empty.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-cdrom.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-disk-cdrom.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-boot-cdrom.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-boot-cdrom.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-boot-disk.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-boot-disk.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-cache-v1-none.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-cache-v1-none.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-cache-v1-wb.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-cache-v1-wb.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-cache-v1-wt.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-cache-v1-wt.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-cache-v2-none.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-cache-v2-none.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-cache-v2-wb.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-cache-v2-wb.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-cache-v2-wt.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-cache-v2-wt.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-fat.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-fat.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-fmt-qcow.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-fmt-qcow.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-drive-shared.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-drive-shared.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-floppy.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-disk-floppy.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-many.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-disk-many.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-usb-device.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-disk-usb-device.xml Convert USB disks over to -device 2010-01-18 13:55:56 +00:00
qemuxml2argv-disk-usb.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-disk-usb.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-virtio.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-virtio.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-disk-xenvbd.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-disk-xenvbd.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-floppy-drive-fat.args Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +00:00
qemuxml2argv-floppy-drive-fat.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-graphics-sdl-fullscreen.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-graphics-sdl-fullscreen.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-graphics-sdl.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-graphics-sdl.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-graphics-vnc-sasl.args Fix QEMU test suite with new VNC env variable 2009-09-29 17:15:52 +01:00
qemuxml2argv-graphics-vnc-sasl.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-graphics-vnc-tls.args Fix QEMU test suite with new VNC env variable 2009-09-29 17:15:52 +01:00
qemuxml2argv-graphics-vnc-tls.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-graphics-vnc.args Fix QEMU test suite with new VNC env variable 2009-09-29 17:15:52 +01:00
qemuxml2argv-graphics-vnc.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-hostdev-pci-address-device.args Fix QEMU hotplug device alias assignment 2010-02-02 16:31:47 +00:00
qemuxml2argv-hostdev-pci-address-device.xml Convert PCI device assignment over to -device 2010-01-18 13:55:56 +00:00
qemuxml2argv-hostdev-pci-address.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-hostdev-pci-address.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-hostdev-usb-address-device.args Fix QEMU hotplug device alias assignment 2010-02-02 16:31:47 +00:00
qemuxml2argv-hostdev-usb-address-device.xml Convert USB hostdevices over to -device 2010-01-18 13:55:56 +00:00
qemuxml2argv-hostdev-usb-address.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-hostdev-usb-address.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-hugepages.args avoid newly-introduced test failure 2010-01-09 09:25:04 +01:00
qemuxml2argv-hugepages.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-input-usbmouse.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-input-usbmouse.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-input-usbtablet.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-input-usbtablet.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-input-xen.args Fix QEMU test suite with new VNC env variable 2009-09-29 17:15:52 +01:00
qemuxml2argv-input-xen.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-machine-aliases1.args Test qemu machine aliases 2009-09-10 12:37:42 +01:00
qemuxml2argv-machine-aliases1.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-machine-aliases2.args Test that domain-specific qemu machine types are used correctly 2009-09-10 12:37:43 +01:00
qemuxml2argv-machine-aliases2.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-migrate.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-migrate.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-minimal.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-minimal.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-misc-acpi.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-misc-acpi.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-misc-no-reboot.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-misc-no-reboot.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-misc-uuid.args Fix handling of Xen(ner) detection 2009-09-22 16:13:33 +01:00
qemuxml2argv-misc-uuid.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-net-eth-ifname.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-net-eth-ifname.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-net-eth-names.args Remove direct storage of hostnet_name & vlan 2010-02-02 16:31:47 +00:00
qemuxml2argv-net-eth-names.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-net-eth.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-net-eth.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-net-user.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-net-user.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-net-virtio-device.args Remove direct storage of hostnet_name & vlan 2010-02-02 16:31:47 +00:00
qemuxml2argv-net-virtio-device.xml Convert NICs over to use -device & -netdev where possible 2010-01-18 13:55:56 +00:00
qemuxml2argv-net-virtio-netdev.args Remove direct storage of hostnet_name & vlan 2010-02-02 16:31:47 +00:00
qemuxml2argv-net-virtio-netdev.xml Remove use of -netdev arg with QEMU 2010-02-02 16:31:47 +00:00
qemuxml2argv-net-virtio.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-net-virtio.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-nographics-vga.args Pass -vga none if no video card specified 2010-01-18 13:55:57 +00:00
qemuxml2argv-nographics-vga.xml Pass -vga none if no video card specified 2010-01-18 13:55:57 +00:00
qemuxml2argv-parallel-tcp-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-parallel-tcp-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-parallel-tcp.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-parallel-tcp.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-restore-v1.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-restore-v1.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-restore-v2.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-restore-v2.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-dev-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-serial-dev-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-dev.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-serial-dev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-file-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-serial-file-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-file.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-serial-file.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-many-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-serial-many-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-many.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-serial-many.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-pty-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-serial-pty-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-pty.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-serial-pty.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-tcp-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-serial-tcp-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-tcp-telnet-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-serial-tcp-telnet-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-tcp-telnet.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-serial-tcp-telnet.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-tcp.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-serial-tcp.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-udp-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-serial-udp-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-udp.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-serial-udp.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-unix-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-serial-unix-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-unix.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-serial-unix.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-vc-chardev.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-serial-vc-chardev.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-serial-vc.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-serial-vc.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-sound-device.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-sound-device.xml Convert audio devices over to -device syntax 2010-01-18 13:55:56 +00:00
qemuxml2argv-sound.args Switch to using a unix socket for the qemu monitor 2009-07-09 20:04:09 +01:00
qemuxml2argv-sound.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00
qemuxml2argv-watchdog-device.args Convert VirtIO balloon over to -device syntax 2010-01-18 13:55:57 +00:00
qemuxml2argv-watchdog-device.xml Convert watchdog to -device 2010-01-18 13:55:56 +00:00
qemuxml2argv-watchdog.args Support QEMU watchdog device. 2009-10-21 16:37:44 +01:00
qemuxml2argv-watchdog.xml Auto-add disk controllers based on defined disks 2010-01-18 13:35:40 +00:00