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 qemu.conf: add vnc_tls_x509_secret_uuid 2019-01-22 12:18:28 +01:00
Makefile.inc.am qemu: Introduce basic skeleton for parsing firmware description 2019-03-12 15:29:44 +01:00
MIGRATION.txt
qemu_agent.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
qemu_agent.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_alias.c
qemu_alias.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_block.c
qemu_block.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_blockjob.c util: Replace virStorageSourceFree with virObjectUnref 2019-02-18 10:31:21 +01:00
qemu_blockjob.h qemu: improve compile-time check of qemuBlockjobState mapping 2019-01-23 16:20:25 -06:00
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_capabilities: Introduce virQEMUCapsGetCPUModelInfo 2019-03-05 14:47:49 +01:00
qemu_cgroup.c Remove remaining references to kqemu 2019-02-19 08:33:50 +01:00
qemu_cgroup.h qemu: cgroup: Change qemu[Setup|Teardown]DiskCgroup to take virStorageSource 2019-01-30 17:20:38 +01:00
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 util: string: Use VIR_AUTOSTRINGLIST instead of VIR_AUTOPTR(virString) 2019-03-04 13:04:20 +01:00
qemu_conf.h qemu.conf: add vnc_tls_x509_secret_uuid 2019-01-22 12:18:28 +01:00
qemu_domain_address.c conf: Add a new 'xenbus' controller type 2019-03-13 12:06:52 -06:00
qemu_domain_address.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
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 Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_extdevice.c Require a semicolon for VIR_LOG_INIT calls 2019-02-03 17:46:29 -05:00
qemu_extdevice.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
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: Filter non SCSI hostdevs in qemuHostdevPrepareSCSIDevices 2019-01-11 08:52:10 -05:00
qemu_hostdev.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_hotplug.c qemu_hotplug: refactor qemuDomainDetachDiskLive and qemuDomainDetachDiskDevice 2019-03-25 12:34:18 -04:00
qemu_hotplug.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_hotplugpriv.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_interface.c Use NULLSTR_EMPTY 2019-02-14 14:09:38 +01:00
qemu_interface.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_migration_cookie.c qemu: Use VIR_XPATH_NODE_AUTORESTORE when XPath context is modified 2019-03-04 13:04:20 +01:00
qemu_migration_cookie.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_migration_params.c qemu: Don't set migration caps when changing postcopy bandwidth 2019-03-06 13:57:25 +01:00
qemu_migration_params.h util: Use a semicolon for all VIR_DEFINE_AUTOPTR_FUNC 2019-02-08 06:57:23 -05:00
qemu_migration_paramspriv.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_migration.c snapshot: Break out virDomainSnapshotObjList into its own file 2019-03-15 11:43:09 -05:00
qemu_migration.h qemu: Implement VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPY 2019-02-07 16:25:59 +01:00
qemu_monitor_json.c qemuMonitorJSONDelDevice: Return -2 on DeviceNotFound error 2019-03-15 13:45:34 +01:00
qemu_monitor_json.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_monitor_priv.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_monitor_text.c
qemu_monitor_text.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_monitor.c qemuMonitorJSONDelDevice: Return -2 on DeviceNotFound error 2019-03-15 13:45:34 +01:00
qemu_monitor.h Require a semicolon to VIR_ENUM_DECL calls 2019-02-03 17:46:29 -05:00
qemu_parse_command.c qemu: Replace virDomainChrSourceDefFree with virObjectUnref 2019-02-25 14:38:30 +01:00
qemu_parse_command.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
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_process: Enter QMP command mode when starting QEMU Process 2019-02-19 18:44:49 +01:00
qemu_qapi.c
qemu_qapi.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu_security.c qemu: security: Replace and remove qemuSecurity[Set|Restore]DiskLabel 2019-01-30 17:20:38 +01:00
qemu_security.h qemu: security: Replace and remove qemuSecurity[Set|Restore]DiskLabel 2019-01-30 17:20:38 +01:00
qemu_tpm.c Require a semicolon for VIR_LOG_INIT calls 2019-02-03 17:46:29 -05:00
qemu_tpm.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemu.conf Remove remaining references to kqemu 2019-02-19 08:33:50 +01:00
test_libvirtd_qemu.aug.in Remove remaining references to kqemu 2019-02-19 08:33:50 +01:00
THREADS.txt