libvirt/src/qemu
Laine Stump ac442713e6 qemu_hotplug: refactor qemuDomainDetachDiskLive and qemuDomainDetachDiskDevice
qemuDomainDetachDiskDevice() is only called from one place. Moving the
contents of the function to that place makes
qemuDomainDetachDiskLive() more similar to the other Detach functions
called by the toplevel qemuDomainDetachDevice().

The goal is to make each of the device-type-specific functions do this:

  1) find the exact device
  2) do any device-specific validation
  3) do general validation
  4) do device-specific shutdown (only needed for net devices)
  5) do the common block of code to send device_del to qemu, then
     optionally wait for a corresponding DEVICE_DELETED event from
     qemu.

with the final aim being that only items 1 & 2 will remain in each
device-type-specific function, while 3 & 5 (which are the same for
almost every type) will be de-duplicated and moved to the toplevel
function that calls all of these (qemuDomainDetachDeviceLive(), which
will also contain a callout to the one instance of (4) (netdev).

Signed-off-by: Laine Stump <laine@laine.org>
ACKed-by: Peter Krempa <pkrempa@redhat.com>
2019-03-25 12:34:18 -04:00
..
EVENTHANDLERS.txt
libvirtd_qemu.aug
Makefile.inc.am
MIGRATION.txt
qemu_agent.c
qemu_agent.h
qemu_alias.c
qemu_alias.h
qemu_block.c
qemu_block.h
qemu_blockjob.c
qemu_blockjob.h
qemu_capabilities.c qemu: add virQEMUCapsSetVAList 2019-03-21 12:43:01 -04:00
qemu_capabilities.h qemu: add virQEMUCapsSetVAList 2019-03-21 12:43:01 -04:00
qemu_capspriv.h
qemu_cgroup.c
qemu_cgroup.h
qemu_command.c snapshot: Rename virDomainSnapshotObjPtr 2019-03-22 01:18:34 -05:00
qemu_command.h snapshot: Rename virDomainSnapshotObjPtr 2019-03-22 01:18:34 -05:00
qemu_conf.c
qemu_conf.h
qemu_domain_address.c conf: Add a new 'xenbus' controller type 2019-03-13 12:06:52 -06:00
qemu_domain_address.h
qemu_domain.c snapshot: Rename virDomainSnapshotObjPtr 2019-03-22 01:18:34 -05:00
qemu_domain.h snapshot: Rename virDomainSnapshotObjPtr 2019-03-22 01:18:34 -05:00
qemu_driver.c snapshot: Rename virDomainSnapshotObjPtr 2019-03-22 01:18:34 -05:00
qemu_driver.h
qemu_extdevice.c
qemu_extdevice.h
qemu_firmware.c qemuFirmwareFetchConfigs: Fix check for @privileged 2019-03-13 13:11:25 +01:00
qemu_firmware.h qemu_firmware: Introduce qemuFirmwareFillDomain() 2019-03-12 15:29:44 +01:00
qemu_hostdev.c
qemu_hostdev.h
qemu_hotplug.c qemu_hotplug: refactor qemuDomainDetachDiskLive and qemuDomainDetachDiskDevice 2019-03-25 12:34:18 -04:00
qemu_hotplug.h
qemu_hotplugpriv.h
qemu_interface.c
qemu_interface.h
qemu_migration_cookie.c
qemu_migration_cookie.h
qemu_migration_params.c
qemu_migration_params.h
qemu_migration_paramspriv.h
qemu_migration.c snapshot: Break out virDomainSnapshotObjList into its own file 2019-03-15 11:43:09 -05:00
qemu_migration.h
qemu_monitor_json.c qemuMonitorJSONDelDevice: Return -2 on DeviceNotFound error 2019-03-15 13:45:34 +01:00
qemu_monitor_json.h
qemu_monitor_priv.h
qemu_monitor_text.c
qemu_monitor_text.h
qemu_monitor.c qemuMonitorJSONDelDevice: Return -2 on DeviceNotFound error 2019-03-15 13:45:34 +01:00
qemu_monitor.h
qemu_parse_command.c
qemu_parse_command.h
qemu_process.c snapshot: Rename virDomainSnapshotObjPtr 2019-03-22 01:18:34 -05:00
qemu_process.h snapshot: Rename virDomainSnapshotObjPtr 2019-03-22 01:18:34 -05:00
qemu_processpriv.h
qemu_qapi.c
qemu_qapi.h
qemu_security.c
qemu_security.h
qemu_tpm.c
qemu_tpm.h
qemu.conf
test_libvirtd_qemu.aug.in
THREADS.txt