summary refs log tree commit diff stats
path: root/migration/multifd.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2022-05-02 16:45:35 +0200
committerJuan Quintela <quintela@redhat.com>2022-12-15 10:30:37 +0100
commitddec20f858800cfe3ff7f56aec486dab0585e8b1 (patch)
tree05f760e075d10080b08d248d98a47109d16320ff /migration/multifd.h
parent5204b499a6cae4dfd9fe762d5e6e82224892383b (diff)
downloadfocaccia-qemu-ddec20f858800cfe3ff7f56aec486dab0585e8b1.tar.gz
focaccia-qemu-ddec20f858800cfe3ff7f56aec486dab0585e8b1.zip
multifd: Create page_size fields into both MultiFD{Recv,Send}Params
We were calling qemu_target_page_size() left and right.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Leonardo Bras <leobras@redhat.com>
Diffstat (limited to 'migration/multifd.h')
-rw-r--r--migration/multifd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/migration/multifd.h b/migration/multifd.h
index 519f498643..86fb9982b3 100644
--- a/migration/multifd.h
+++ b/migration/multifd.h
@@ -80,6 +80,8 @@ typedef struct {
     bool registered_yank;
     /* packet allocated len */
     uint32_t packet_len;
+    /* guest page size */
+    uint32_t page_size;
     /* multifd flags for sending ram */
     int write_flags;
 
@@ -143,6 +145,8 @@ typedef struct {
     QIOChannel *c;
     /* packet allocated len */
     uint32_t packet_len;
+    /* guest page size */
+    uint32_t page_size;
 
     /* syncs main thread and channels */
     QemuSemaphore sem_sync;