qemu: domain: Store blockjob data in the status XML
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 <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>
Reviewed-by: Ján Tomko <4cab11cfb98d3c937327354a78eb07dbb6ee2bc6@redhat.com>

andreabolognani/libvirt,nertpinx/libvirt,jfehlig/libvirt,jardasgit/libvirt,zippy2/libvirt,libvirt/libvirt,fabianfreyer/libvirt,zippy2/libvirt,jfehlig/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,eskultety/libvirt,crobinso/libvirt,libvirt/libvirt,eskultety/libvirt,eskultety/libvirt,jardasgit/libvirt,jardasgit/libvirt,olafhering/libvirt,crobinso/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,nertpinx/libvirt,jardasgit/libvirt,zippy2/libvirt,eskultety/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,olafhering/libvirt,libvirt/libvirt,olafhering/libvirt,nertpinx/libvirt,crobinso/libvirt,jfehlig/libvirt,andreabolognani/libvirt,jfehlig/libvirt,olafhering/libvirt,zippy2/libvirt,eskultety/libvirt,crobinso/libvirt,nertpinx/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,libvirt/libvirt