]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_hotplug: Allow asynchronous detach
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 23 May 2018 16:01:16 +0000 (18:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 28 May 2018 11:08:52 +0000 (13:08 +0200)
commit5c81c342a7cdeb2dde8ea3562a65f752f89e2c0a
tree6b064da912897ca9b70d8c455a281b878db2af4e
parenta7837f92cc724f00a20a7459fa536f830e341398
qemu_hotplug: Allow asynchronous detach

The virDomainDetachDeviceAlias API is designed so that it only
sends detach request to qemu. It's user's responsibility to wait
for DEVICE_DELETED event, not libvirt's. Add @async flag to
qemuDomainDetach*Device() functions so that caller can chose if
detach is semi-synchronous (old virDomainDetachDeviceFlags()) or
fully asynchronous (new virDomainDetachDeviceFlags()).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_hotplug.h
tests/qemuhotplugtest.c