]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: blockjob: Add modern block job event handler
authorPeter Krempa <pkrempa@redhat.com>
Fri, 7 Dec 2018 09:21:22 +0000 (10:21 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 18 Jul 2019 15:59:34 +0000 (17:59 +0200)
commitc412383796c631b6dcd6b07262468c3580d4c1e5
treefe4b99eaddd124a076810fc42620120c7fbc1470
parentcbf4e3af7028b5096f414ff39410332379b0b8a7
qemu: blockjob: Add modern block job event handler

Add the infrastructure to handle block job events in the -blockdev era.

Some complexity is required as qemu does not bother to notify whether
the job was concluded successfully or failed. Thus it's necessary to
re-query the monitor.

To minimize the possibility of stuck jobs save the state into the XML
prior to handling everything so that the reconnect code can potentially
continue with the cleanup.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_blockjob.c