]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainBlockPivot: Handle merging of bitmaps when pivoting an active block-commit
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Mar 2020 13:14:28 +0000 (14:14 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 Mar 2020 16:33:09 +0000 (17:33 +0100)
commit8502b4b0595ac040f22e1ec8c2ab6375506c14a3
tree16a595f4244dbec7cb59d8ca576c548ac1449d34
parent2b9091f089279a7bac523095a2ccd146fa20800b
qemuDomainBlockPivot: Handle merging of bitmaps when pivoting an active block-commit

Active layer block commit makes the 'base' image the new top image of
the disk after it finishes. This means that all bitmap operations need
to be handled prior to this happening as we'd lose writes otherwise.

The ideal place is to handle it when pivoting to the new image as only
guest-writes would be happening after this point.

Use qemuBlockBitmapsHandleCommitFinish to calculate the merging
transaction.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_driver.c