]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Store blockjob data in the status XML
authorPeter Krempa <pkrempa@redhat.com>
Fri, 30 Nov 2018 09:36:22 +0000 (10:36 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 18 Jul 2019 15:59:34 +0000 (17:59 +0200)
commitd3158852fa2c7b75f39e2f9b6ad8e91d1df11517
tree5c9a0aa60eb357f861610357f67d0498df92e78c
parent61e9066a6908c7b11c8285f1e01efcb070016eb8
qemu: domain: Store blockjob data in the status XML

We need to store the block job state in the status XML so that we can
properly recover any data when reconnecting after startup and also in
the end to be able to do any transition of the backing chain that
happened while libvirt was not connected to the monitor.

First step is to note the name, type, state and corresponding disk into
the status XML.

We also need to make sure that a broken blockjob does not make libvirt
lose the VM, thus many of the errors just mark the job as invalid.
Later on we'll cancel all invalid jobs.

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