libvirt/src/qemu
John Ferlan d2774e54cd qemu: Fix hot unplug of SCSI_HOST device
https://bugzilla.redhat.com/show_bug.cgi?id=1141732

Introduced by commit id '8f76ad99' the logic to detach a scsi_host
device (SCSI or iSCSI) fails when attempting to remove the 'drive'
because as I found in my investigation - the DelDevice takes care of
that for us.

The investigation turned up commits to adjust the logic for the
qemuMonitorDelDevice and qemuMonitorDriveDel processing for interfaces
(commit id '81f76598'), disk bus=VIRTIO,SCSI,USB (commit id '0635785b'),
and chr devices (commit id '55b21f9b'), but nothing with the host devices.

This commit uses the model for the previous set of changes and applies
it to the hostdev path. The call to qemuDomainDetachHostSCSIDevice will
return to qemuDomainDetachThisHostDevice handling either the audit of
the failure or the wait for the removal and then call into
qemuDomainRemoveHostDevice for the event, removal from the domain hostdev
list, and audit of the removal similar to other paths.

NOTE: For now the 'conn' param to +qemuDomainDetachHostSCSIDevice is left
as ATTRIBUTE_UNUSED.  Removing requires a cascade of other changes to be
left for a future patch.
2014-10-06 10:35:25 -04:00
..
libvirtd_qemu.aug qemu: Automatically create NVRAM store 2014-09-10 09:38:07 +02:00
MIGRATION.txt qemu: Implement migration job phases 2011-07-27 08:45:09 -06:00
qemu_agent.c qemu_agent: Resolve Coverity RESOURCE_LEAK 2014-08-28 08:12:16 -04:00
qemu_agent.h qemu: Implement virDomain{Get,Set}Time 2014-05-15 16:44:45 +02:00
qemu_capabilities.c qemu: add capability probing for ivshmem device 2014-10-03 22:43:08 +02:00
qemu_capabilities.h qemu: add capability probing for ivshmem device 2014-10-03 22:43:08 +02:00
qemu_cgroup.c qemu: use systemd's TerminateMachine to kill all processes 2014-10-01 20:17:46 +02:00
qemu_cgroup.h qemu: use systemd's TerminateMachine to kill all processes 2014-10-01 20:17:46 +02:00
qemu_command.c minor shmem clean-ups 2014-10-04 10:46:22 +02:00
qemu_command.h Move the FIPS detection from capabilities 2014-09-19 09:08:23 +02:00
qemu_conf.c qemu: fix crash with shared disks 2014-09-18 09:05:21 +02:00
qemu_conf.h qemu: fix crash with shared disks 2014-09-18 09:05:21 +02:00
qemu_domain.c qemu: Always re-detect backing chain 2014-09-26 09:35:33 +02:00
qemu_domain.h qemu: Report better errors from broken backing chains 2014-09-24 10:18:47 +02:00
qemu_driver.c qemu: Improve domainSetTime error info report 2014-10-03 15:48:07 +02: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 drivers: use virDirRead API 2014-04-28 17:52:45 -06:00
qemu_hostdev.h Capitalize USB, PCI and SCSI in hostdev methods 2014-03-12 16:20:01 +00:00
qemu_hotplug.c qemu: Fix hot unplug of SCSI_HOST device 2014-10-06 10:35:25 -04:00
qemu_hotplug.h qemu: hotplug: Format proper source string for cdrom media change 2014-08-20 09:28:04 +02:00
qemu_hotplugpriv.h qemu: Let tests override waiting time for device unplug 2013-08-26 16:09:55 +02:00
qemu_migration.c Don't verify CPU features with host-passthrough 2014-09-30 10:47:02 +02:00
qemu_migration.h qemu: Memory pre-pinning support for RDMA migration 2014-09-23 08:11:50 +02:00
qemu_monitor_json.c qemu: support nospace reason in io error event 2014-10-03 12:43:53 -06:00
qemu_monitor_json.h qemu: monitor: Add helper function to fill physical/virtual image size 2014-10-01 10:58:33 +02:00
qemu_monitor_text.c maint: clean up _virDomainMemoryStat 2014-09-17 11:28:48 -06:00
qemu_monitor_text.h conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
qemu_monitor.c maint: Prohibit "devname" by a syntax check rules 2014-10-01 16:39:01 +02:00
qemu_monitor.h maint: Prohibit "devname" by a syntax check rules 2014-10-01 16:39:01 +02:00
qemu_process.c qemu: use systemd's TerminateMachine to kill all processes 2014-10-01 20:17:46 +02:00
qemu_process.h qemu: Tidy up job handling during live migration 2014-08-14 12:12:42 +02:00
qemu_processpriv.h qemu: Export qemuProcessHandleDeviceDeleted for tests 2013-08-26 16:09:55 +02:00
qemu.conf qemu: RDMA migration support 2014-09-23 08:11:50 +02:00
test_libvirtd_qemu.aug.in qemu: Automatically create NVRAM store 2014-09-10 09:38:07 +02:00
THREADS.txt Remove qemuDriverLock from almost everywhere 2013-02-13 11:10:30 +00:00