]> xenbits.xensource.com Git - libvirt.git/commit
qemu: block: Add universal helper for merging dirty bitmaps for all scenarios
authorPeter Krempa <pkrempa@redhat.com>
Mon, 1 Jun 2020 10:05:49 +0000 (12:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jun 2020 14:04:30 +0000 (16:04 +0200)
commit4fa8654eced8b0362d3f3ff33eebb108fe833869
tree84dbc91914c5425327c990428eec5640987df9ee
parent2c5a3da365d9a33ff23458ca2a914f9d35ebd510
qemu: block: Add universal helper for merging dirty bitmaps for all scenarios

Add a function which allows merging bitmaps according to the new
semantics and will allow replacing all the specific ad-hoc functions
currently in use for 'backup', 'block commit', 'block copy' and will
also be usable in the future for 'block pull' and non-shared storage
migration.

The semantics are a bit quirky for the 'backup' case but these quirks
are documented and will prevent us from having two slightly different
algorithms.

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