]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Rewrite bitmap handling for block commit
authorPeter Krempa <pkrempa@redhat.com>
Fri, 17 Apr 2020 07:51:40 +0000 (09:51 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jun 2020 14:04:30 +0000 (16:04 +0200)
commit20a7abc2d2d8a378103abf105fa0c617218ec023
tree77d39497c401d7bf4fefb481c2fedfa54144c828
parentb630cf4c0d8446a301fd23e87c9e8d60d547b5e8
qemu: Rewrite bitmap handling for block commit

Reuse qemuBlockGetBitmapMergeActions which allows removing the ad-hoc
implementation of bitmap merging for block commit. The new approach is
way simpler and more robust and also allows us to get rid of the
disabling of bitmaps done prior to the start as we actually do want to
update the bitmaps in the base.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_block.c
src/qemu/qemu_block.h
src/qemu/qemu_blockjob.c
src/qemu/qemu_driver.c
tests/qemublocktest.c
tests/qemublocktestdata/bitmapblockcommit/empty