aboutsummaryrefslogtreecommitdiff
path: root/migration/multifd.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2021-11-22 13:41:06 +0100
committerJuan Quintela <quintela@redhat.com>2022-01-28 15:38:23 +0100
commitcf2d4aa8a276f8540eef593141b7933487fa32b2 (patch)
tree5dd9412aedebb6515074f7934dd34794b7a6c6e3 /migration/multifd.h
parent815956f03902980c771da64b17f7f791c1cb57b0 (diff)
downloadqemu-cf2d4aa8a276f8540eef593141b7933487fa32b2.zip
qemu-cf2d4aa8a276f8540eef593141b7933487fa32b2.tar.gz
qemu-cf2d4aa8a276f8540eef593141b7933487fa32b2.tar.bz2
multifd: Use normal pages array on the recv side
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> --- Rename num_normal_pages to total_normal_pages (peter)
Diffstat (limited to 'migration/multifd.h')
-rw-r--r--migration/multifd.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/migration/multifd.h b/migration/multifd.h
index 7823199..850889c 100644
--- a/migration/multifd.h
+++ b/migration/multifd.h
@@ -151,12 +151,16 @@ typedef struct {
uint32_t next_packet_size;
/* packets sent through this channel */
uint64_t num_packets;
- /* pages sent through this channel */
- uint64_t num_pages;
+ /* non zero pages recv through this channel */
+ uint64_t total_normal_pages;
/* syncs main thread and channels */
QemuSemaphore sem_sync;
/* buffers to recv */
struct iovec *iov;
+ /* Pages that are not zero */
+ ram_addr_t *normal;
+ /* num of non zero pages */
+ uint32_t normal_num;
/* used for de-compression methods */
void *data;
} MultiFDRecvParams;