]> git.proxmox.com Git - mirror_qemu.git/commit
migration/multifd: Implement zero page transmission on the multifd thread.
authorHao Xiang <hao.xiang@bytedance.com>
Mon, 11 Mar 2024 18:00:12 +0000 (18:00 +0000)
committerPeter Xu <peterx@redhat.com>
Mon, 11 Mar 2024 20:57:09 +0000 (16:57 -0400)
commit303e6f54f9657be76ee060006ee2d4cacff263a0
tree4d7d96ccc9ae988077f477aa7e543479aeef5eee
parent5fdbb1dfccfd59661c95cae760b8e276c5b8e65c
migration/multifd: Implement zero page transmission on the multifd thread.

1. Add zero_pages field in MultiFDPacket_t.
2. Implements the zero page detection and handling on the multifd
threads for non-compression, zlib and zstd compression backends.
3. Added a new value 'multifd' in ZeroPageDetection enumeration.
4. Adds zero page counters and updates multifd send/receive tracing
format to track the newly added counters.

Signed-off-by: Hao Xiang <hao.xiang@bytedance.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240311180015.3359271-5-hao.xiang@linux.dev
Signed-off-by: Peter Xu <peterx@redhat.com>
hw/core/qdev-properties-system.c
migration/meson.build
migration/multifd-zero-page.c [new file with mode: 0644]
migration/multifd-zlib.c
migration/multifd-zstd.c
migration/multifd.c
migration/multifd.h
migration/ram.c
migration/trace-events
qapi/migration.json