diff options
| author | Hao Xiang <hao.xiang@bytedance.com> | 2024-03-11 18:00:12 +0000 |
|---|---|---|
| committer | Peter Xu <peterx@redhat.com> | 2024-03-11 16:57:09 -0400 |
| commit | 303e6f54f9657be76ee060006ee2d4cacff263a0 (patch) | |
| tree | 4d7d96ccc9ae988077f477aa7e543479aeef5eee /migration/ram.c | |
| parent | 5fdbb1dfccfd59661c95cae760b8e276c5b8e65c (diff) | |
| download | focaccia-qemu-303e6f54f9657be76ee060006ee2d4cacff263a0.tar.gz focaccia-qemu-303e6f54f9657be76ee060006ee2d4cacff263a0.zip | |
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>
Diffstat (limited to 'migration/ram.c')
| -rw-r--r-- | migration/ram.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/migration/ram.c b/migration/ram.c index 260529f264..c26435adc7 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1288,7 +1288,6 @@ static int ram_save_multifd_page(RAMBlock *block, ram_addr_t offset) if (!multifd_queue_page(block, offset)) { return -1; } - stat64_add(&mig_stats.normal_pages, 1); return 1; } |