summaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2019-03-13 10:54:58 +0100
committerJuan Quintela <quintela@redhat.com>2019-03-25 18:13:44 +0100
commit5fbd8b4bbb959cc5534bf488505ce85455fa4271 (patch)
tree1dde24c7405d00ac3c5f5efef198df0fbc7c9137 /migration
parent4b0c72645c468827dbdf04594fcb274741fecbb1 (diff)
downloadqemu-5fbd8b4bbb959cc5534bf488505ce85455fa4271.zip
multifd: Add some padding
Add some padding. MultifdInit_t is padded to 64 bytes. MultiFDPacket_t is padded to 320bytes (64 * 5). Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/ram.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/migration/ram.c b/migration/ram.c
index 700c345ec5..d7f8fe45a8 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -591,6 +591,8 @@ typedef struct {
uint32_t version;
unsigned char uuid[16]; /* QemuUUID */
uint8_t id;
+ uint8_t unused1[7]; /* Reserved for future use */
+ uint64_t unused2[4]; /* Reserved for future use */
} __attribute__((packed)) MultiFDInit_t;
typedef struct {
@@ -603,6 +605,7 @@ typedef struct {
/* size of the next packet that contains pages */
uint32_t next_packet_size;
uint64_t packet_num;
+ uint64_t unused[4]; /* Reserved for future use */
char ramblock[256];
uint64_t offset[];
} __attribute__((packed)) MultiFDPacket_t;