]> git.proxmox.com Git - mirror_qemu.git/commit
migration/multifd: Allow clearing of the file_bmap from multifd
authorFabiano Rosas <farosas@suse.de>
Mon, 11 Mar 2024 18:00:10 +0000 (18:00 +0000)
committerPeter Xu <peterx@redhat.com>
Mon, 11 Mar 2024 20:56:52 +0000 (16:56 -0400)
commitc3cdf3fb18e5ecf8a3b4dc7223ddbfc53c418eb8
tree5339705640fded940322e74150bac9010a10c3a7
parent44fe138edc0f08b8568fe4ee90be6a2a56c67daf
migration/multifd: Allow clearing of the file_bmap from multifd

We currently only need to clear the mapped-ram file bitmap from the
migration thread during save_zero_page.

We're about to add support for zero page detection on the multifd
thread, so allow ramblock_set_file_bmap_atomic() to also clear the
bits.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240311180015.3359271-3-hao.xiang@linux.dev
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/multifd.c
migration/ram.c
migration/ram.h