libvirt/src/qemu
Boris Fiuczynski 105794cd43 qemu: Automatic SCSI controller creation in SCSI disk hotplug broken
When a SCSI disk is hotplugged to a domain that does not have the required
SCSI controller already defined and loaded the following internal error occurs

error: Failed to attach device from scsi_disk.xml
error: internal error: Could not find scsi controller with index 0 required for device

Commit 0260506c added in method qemuBuildDriveDevStr a lookup of the controller
alias. The internal error occurs because in method qemuDomainAttachSCSIDisk
the automatic creation of the potentially missing SCSI controller occurs after
calling qemuBuildDriveDevStr.

This patch reverses the calling sequence.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
Reviewed-by: Stefan Zimmermann <stzi@linux.vnet.ibm.com>
2015-12-04 13:50:06 -05:00
..
EVENTHANDLERS.txt qemu: add short document on qemu event handlers 2014-10-06 13:50:57 -04:00
libvirtd_qemu.aug qemu: add support for sending QEMU stdout/stderr to virtlogd 2015-11-26 14:30:16 +00:00
MIGRATION.txt qemu: Implement migration job phases 2011-07-27 08:45:09 -06:00
qemu_agent.c virJSONValueArraySize: return ssize_t 2015-10-09 15:25:08 +02:00
qemu_agent.h qemu: wire up virDomainSetUserPassword 2015-05-21 16:24:02 +02:00
qemu_blockjob.c qemuDomainEventQueue: Check if event is non-NULL 2015-09-18 13:50:03 +02:00
qemu_blockjob.h qemu: Use domain condition for synchronous block jobs 2015-06-19 15:15:10 +02:00
qemu_capabilities.c qemu: add capability for virtio-input-host-device 2015-11-30 12:29:02 +01:00
qemu_capabilities.h qemu: add capability for virtio-input-host-device 2015-11-30 12:29:02 +01:00
qemu_capspriv.h Implement infrastracture for mocking up QEMU capabilities cache 2015-09-22 13:56:59 +02:00
qemu_cgroup.c qemu: add passed-through input devs to cgroup ACL 2015-11-30 12:59:10 +01:00
qemu_cgroup.h rename qemuSetupHostdevCGroup to qemuSetupHostdevCgroup 2015-11-23 13:52:18 +01:00
qemu_command.c qemu: build command line for virtio-input-host device 2015-11-30 13:00:04 +01:00
qemu_command.h qemu: Fix build error in Coverity environment 2015-11-19 08:50:29 -05:00
qemu_conf.c qemu: add support for sending QEMU stdout/stderr to virtlogd 2015-11-26 14:30:16 +00:00
qemu_conf.h qemu: add support for sending QEMU stdout/stderr to virtlogd 2015-11-26 14:30:16 +00:00
qemu_domain.c qemu: domain: Prevent overflows in memory alignment code 2015-12-04 15:21:20 +01:00
qemu_domain.h qemu: convert monitor to use qemuDomainLogContextPtr indirectly 2015-11-26 14:30:15 +00:00
qemu_driver.c qemu: change qemuDomainTaint APIs to accept qemuDomainLogContextPtr 2015-11-26 14:30:15 +00:00
qemu_driver.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
qemu_hostdev.c qemu: hostdev: Introduce qemuHostdevUpdateActiveDomainDevices() 2015-10-26 13:50:35 +01:00
qemu_hostdev.h qemu: hostdev: Introduce qemuHostdevUpdateActiveDomainDevices() 2015-10-26 13:50:35 +01:00
qemu_hotplug.c qemu: Automatic SCSI controller creation in SCSI disk hotplug broken 2015-12-04 13:50:06 -05:00
qemu_hotplug.h qemu: Implement memory device hotunplug 2015-03-23 14:41:14 +01:00
qemu_hotplugpriv.h qemu: Let tests override waiting time for device unplug 2013-08-26 16:09:55 +02:00
qemu_interface.c qemu: add udp interface support 2015-09-02 10:17:50 +02:00
qemu_interface.h qemu: add a qemuInterfaceStopDevices(), called when guest CPUs stop 2014-12-13 22:20:28 -05:00
qemu_migration.c qemu: convert monitor to use qemuDomainLogContextPtr indirectly 2015-11-26 14:30:15 +00:00
qemu_migration.h qemu: Use -incoming defer for migrations 2015-11-19 09:41:23 +01:00
qemu_monitor_json.c qemu: Add APIs for migrate-incoming QMP command 2015-11-19 09:41:23 +01:00
qemu_monitor_json.h qemu: Add APIs for migrate-incoming QMP command 2015-11-19 09:41:23 +01:00
qemu_monitor_text.c qemu: Make virtType of type virDomainVirtType 2015-09-25 15:34:09 -04:00
qemu_monitor_text.h qemu: Make virtType of type virDomainVirtType 2015-09-25 15:34:09 -04:00
qemu_monitor.c qemu: convert monitor to use qemuDomainLogContextPtr indirectly 2015-11-26 14:30:15 +00:00
qemu_monitor.h qemu: convert monitor to use qemuDomainLogContextPtr indirectly 2015-11-26 14:30:15 +00:00
qemu_process.c qemu: include hostname in QEMU log files 2015-12-04 18:19:25 +00:00
qemu_process.h qemu: convert monitor to use qemuDomainLogContextPtr indirectly 2015-11-26 14:30:15 +00:00
qemu_processpriv.h qemu: Export qemuProcessHandleDeviceDeleted for tests 2013-08-26 16:09:55 +02:00
qemu.conf qemu: add support for sending QEMU stdout/stderr to virtlogd 2015-11-26 14:30:16 +00:00
test_libvirtd_qemu.aug.in qemu: add support for sending QEMU stdout/stderr to virtlogd 2015-11-26 14:30:16 +00:00
THREADS.txt There is no virDomainFindBy{ID, Name, UUID} anymore 2015-08-03 13:08:00 +02:00