libvirt/src/qemu
Eric Farman c4eb12067e qemu: Allow hotplug of multiple SCSI devices
Hotplugging a single SCSI device works, but adding additional ones
result in an error from QEMU:

[root@gpok197 ~]# virsh attach-device guest01 blah.xml
Device attached successfully
[root@gpok197 ~]# virsh attach-device guest01 blah2.xml
error: Failed to attach device from blah2.xml
error: internal error unable to execute QEMU command 'device_add': Duplicate ID 'hostdev0' for device

The hostdev ID that is created is always set to zero, regardless
of the contents of the XML.  Changing the index in the hotplug case
to a negative one so the next available index is used.

Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
Reviewed-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
2013-08-08 14:16:34 +02:00
..
libvirtd_qemu.aug qemu: Add VNC WebSocket support 2013-05-15 09:48:05 +02:00
MIGRATION.txt
qemu_agent.c qemu_agent: Remove obvious comments 2013-07-31 14:25:43 +02:00
qemu_agent.h qemu_agent: Move updater function for VCPU hotplug into qemu_agent.c 2013-07-31 14:25:43 +02:00
qemu_bridge_filter.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
qemu_bridge_filter.h
qemu_capabilities.c qemu: add dmi-to-pci-bridge controller 2013-08-05 15:40:49 -04:00
qemu_capabilities.h qemu: add dmi-to-pci-bridge controller 2013-08-05 15:40:49 -04:00
qemu_cgroup.c Fix crashing upgrading from older libvirts with running guests 2013-08-02 15:32:26 +01:00
qemu_cgroup.h Auto-detect existing cgroup placement 2013-07-23 22:46:31 +01:00
qemu_command.c qemu: improve error reporting during PCI address validation 2013-08-06 13:39:37 -04:00
qemu_command.h qemu: properly set/use device alias for pci controllers 2013-08-05 16:08:37 -04:00
qemu_conf.c Don't overwrite errors in qemuTranslateDiskSourcePool 2013-07-25 13:12:22 +02:00
qemu_conf.h qemu: Move close callbacks handling into util/virclosecallbacks.c 2013-07-18 14:16:53 +02:00
qemu_domain.c qemu: support to drop disk with 'optional' startupPolicy 2013-08-07 15:11:15 +08:00
qemu_domain.h qemu: add helper functions for diskchain checking 2013-08-01 13:26:27 +08:00
qemu_driver.c qemu_agent: Move updater function for VCPU hotplug into qemu_agent.c 2013-07-31 14:25:43 +02:00
qemu_driver.h
qemu_hostdev.c pci: make virPCIDeviceReset more autonomous 2013-07-15 10:43:03 -04:00
qemu_hostdev.h qemu: Introduce activeScsiHostdevs list for scsi host devices 2013-05-13 21:26:06 +08:00
qemu_hotplug.c qemu: Allow hotplug of multiple SCSI devices 2013-08-08 14:16:34 +02:00
qemu_hotplug.h qemu: Remove devices only after DEVICE_DELETED event 2013-07-18 15:28:45 +02:00
qemu_migration.c qemu_migration: Don't error on tunelled migration with --copy-storage 2013-08-06 16:07:57 +02:00
qemu_migration.h qemu: Move close callbacks handling into util/virclosecallbacks.c 2013-07-18 14:16:53 +02:00
qemu_monitor_json.c qemu: Introduce qemuMonitorGetDeviceAliases 2013-07-19 18:45:47 +02:00
qemu_monitor_json.h qemu: Introduce qemuMonitorGetDeviceAliases 2013-07-19 18:45:47 +02:00
qemu_monitor_text.c Convert 'int i' to 'size_t i' in src/qemu files 2013-07-10 17:55:15 +01:00
qemu_monitor_text.h qemu: Use bool instead of int in qemuMonitorSetCPU APIs 2013-06-07 15:57:03 +02:00
qemu_monitor.c Rename VIR_DOMAIN_PAUSED_GUEST_PANICKED to VIR_DOMAIN_PAUSED_CRASHED 2013-07-29 18:08:55 +01:00
qemu_monitor.h qemu: Introduce qemuMonitorGetDeviceAliases 2013-07-19 18:45:47 +02:00
qemu_process.c qemu: check presence of each disk and its backing file as well 2013-08-01 13:26:47 +08:00
qemu_process.h qemu: expose qemuProcessShutdownOrReboot() 2013-07-02 12:02:27 -06:00
qemu.conf qemu: Add VNC WebSocket support 2013-05-15 09:48:05 +02:00
test_libvirtd_qemu.aug.in qemu: Add VNC WebSocket support 2013-05-15 09:48:05 +02:00
THREADS.txt Remove qemuDriverLock from almost everywhere 2013-02-13 11:10:30 +00:00