summaryrefslogtreecommitdiffstats
path: root/include/qemu
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2022-05-17 13:12:05 +0200
committerKevin Wolf2022-06-24 17:07:06 +0200
commit58cbfbdf73d1d20ba9506b1260a4cb321adad47d (patch)
tree94b589e8b8b329ce53aea28b69f6a0d2db58b809 /include/qemu
parentblock: block_dirty_bitmap_merge(): fix error path (diff)
downloadqemu-58cbfbdf73d1d20ba9506b1260a4cb321adad47d.tar.gz
qemu-58cbfbdf73d1d20ba9506b1260a4cb321adad47d.tar.xz
qemu-58cbfbdf73d1d20ba9506b1260a4cb321adad47d.zip
block: improve block_dirty_bitmap_merge(): don't allocate extra bitmap
We don't need extra bitmap. All we need is to backup the original bitmap when we do first merge. So, drop extra temporary bitmap and work directly with target and backup. Still to keep old semantics, that on failure target is unchanged and user don't need to restore, we need a local_backup variable and do restore ourselves on failure path. Signed-off-by: Vladimir Sementsov-Ogievskiy <v.sementsov-og@mail.ru> Message-Id: <20220517111206.23585-3-v.sementsov-og@mail.ru> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/qemu')
0 files changed, 0 insertions, 0 deletions