From d6f45eba2bb1dbf48c05adcf3e14040b913d2085 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Mon, 2 May 2022 16:53:12 +0200 Subject: multifd: Create page_count fields into both MultiFD{Recv,Send}Params We were recalculating it left and right. We plan to change that values on next patches. Signed-off-by: Juan Quintela Reviewed-by: Leonardo Bras --- migration/multifd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'migration/multifd.h') diff --git a/migration/multifd.h b/migration/multifd.h index 86fb998..e2802a9 100644 --- a/migration/multifd.h +++ b/migration/multifd.h @@ -82,6 +82,8 @@ typedef struct { uint32_t packet_len; /* guest page size */ uint32_t page_size; + /* number of pages in a full packet */ + uint32_t page_count; /* multifd flags for sending ram */ int write_flags; @@ -147,6 +149,8 @@ typedef struct { uint32_t packet_len; /* guest page size */ uint32_t page_size; + /* number of pages in a full packet */ + uint32_t page_count; /* syncs main thread and channels */ QemuSemaphore sem_sync; -- cgit v1.1