]> www.infradead.org Git - users/dwmw2/qemu.git/commit
migration/multifd: Move pages accounting into multifd_send_zero_page_detect()
authorFabiano Rosas <farosas@suse.de>
Tue, 27 Aug 2024 17:45:55 +0000 (14:45 -0300)
committerFabiano Rosas <farosas@suse.de>
Tue, 3 Sep 2024 19:24:35 +0000 (16:24 -0300)
commit5aff71767c7c695fce2975a6bc020b23d173cdcd
tree5398bcd9fee0846b79b003090fe1f66711f827d9
parent9f0e10890109601f375b687736b65e8fac734b55
migration/multifd: Move pages accounting into multifd_send_zero_page_detect()

All references to pages are being removed from the multifd worker
threads in order to allow multifd to deal with different payload
types.

multifd_send_zero_page_detect() is called by all multifd migration
paths that deal with pages and is the last spot where zero pages and
normal page amounts are adjusted. Move the pages accounting into that
function.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/multifd-zero-page.c
migration/multifd.c