[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 07/10] multifd: Add some padding
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PULL 07/10] multifd: Add some padding |
Date: |
Wed, 13 Mar 2019 12:51:18 +0100 |
Add some padding.
MultifdInit_t is padded to 64 bytes.
MultiFDPacket_t is padded to 320bytes (64 * 5).
Signed-off-by: Juan Quintela <address@hidden>
---
migration/ram.c | 3 +++
1 file changed, 3 insertions(+)
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;
--
2.20.1
- [Qemu-devel] [PULL 00/10] Migration patches, Juan Quintela, 2019/03/13
- [Qemu-devel] [PULL 07/10] multifd: Add some padding,
Juan Quintela <=
- [Qemu-devel] [PULL 06/10] multifd: Change default packet size, Juan Quintela, 2019/03/13
- [Qemu-devel] [PULL 09/10] tests: Add migration multifd test, Juan Quintela, 2019/03/13
- [Qemu-devel] [PULL 01/10] multifd: Only send pages when packet are not empty, Juan Quintela, 2019/03/13
- [Qemu-devel] [PULL 05/10] multifd: Be flexible about packet size, Juan Quintela, 2019/03/13
- [Qemu-devel] [PULL 08/10] multifd: Drop x-, Juan Quintela, 2019/03/13
- [Qemu-devel] [PULL 10/10] migration: add support for a "tls-authz" migration parameter, Juan Quintela, 2019/03/13
- [Qemu-devel] [PULL 03/10] multifd: Create new next_packet_size field, Juan Quintela, 2019/03/13
- [Qemu-devel] [PULL 04/10] multifd: Drop x-multifd-page-count parameter, Juan Quintela, 2019/03/13
- [Qemu-devel] [PULL 02/10] multifd: Rename "size" member to pages_alloc, Juan Quintela, 2019/03/13
- Re: [Qemu-devel] [PULL 00/10] Migration patches, Peter Maydell, 2019/03/14