]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: process: refresh block jobs on reconnect
authorPeter Krempa <pkrempa@redhat.com>
Thu, 18 Oct 2018 10:34:49 +0000 (12:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 17 Jan 2019 16:12:50 +0000 (17:12 +0100)
commit9ed9124d0d72fbc1dbaa4859fcfdc998ce060488
tree1df2150a7ebcfeab7648e1337c2015c1a8b792ee
parent5918df1e620ce688b285c24e7be5bb99df0da480
qemu: process: refresh block jobs on reconnect

Block job state was widely untracked by libvirt across restarts which
was allowed by a stateless block job finishing handler which discarded
disk state and redetected it. This is undesirable since we'll need to
track more information for individual blockjobs due to -blockdev
integration requirements.

In case of legacy blockjobs we can recover whether the job is present at
reconnect time by querying qemu. Adding tracking whether a job is
present will allow simplification of the non-shared-storage cancellation
code.

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