[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/30] multifd: Allocate uint64_t instead of ram_addr_t
From: |
Juan Quintela |
Subject: |
[PULL 02/30] multifd: Allocate uint64_t instead of ram_addr_t |
Date: |
Tue, 14 Jan 2020 13:52:26 +0100 |
We receive that value over the network, and ram_addr_t depends of
architecture. Just make enough space for 64bit.
Signed-off-by: Juan Quintela <address@hidden>
Reviewed-by: Daniel P. Berrangé <address@hidden>
---
migration/ram.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/ram.c b/migration/ram.c
index b9147bcca3..d003538f06 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -1236,7 +1236,7 @@ int multifd_save_setup(void)
p->id = i;
p->pages = multifd_pages_init(page_count);
p->packet_len = sizeof(MultiFDPacket_t)
- + sizeof(ram_addr_t) * page_count;
+ + sizeof(uint64_t) * page_count;
p->packet = g_malloc0(p->packet_len);
p->packet->magic = cpu_to_be32(MULTIFD_MAGIC);
p->packet->version = cpu_to_be32(MULTIFD_VERSION);
--
2.24.1
- [PULL 00/30] Migration pull patches (take 4), Juan Quintela, 2020/01/14
- [PULL 01/30] multifd: Initialize local variable, Juan Quintela, 2020/01/14
- [PULL 02/30] multifd: Allocate uint64_t instead of ram_addr_t,
Juan Quintela <=
- [PULL 03/30] migration-test: Add migration multifd test, Juan Quintela, 2020/01/14
- [PULL 04/30] migration: Make sure that we don't call write() in case of error, Juan Quintela, 2020/01/14
- [PULL 05/30] migration-test: introduce functions to handle string parameters, Juan Quintela, 2020/01/14
- [PULL 06/30] migration-test: ppc64: fix FORTH test program, Juan Quintela, 2020/01/14
- [PULL 07/30] runstate: ignore finishmigrate -> prelaunch transition, Juan Quintela, 2020/01/14
- [PULL 08/30] ram.c: remove unneeded labels, Juan Quintela, 2020/01/14
- [PULL 09/30] migration: Rate limit inside host pages, Juan Quintela, 2020/01/14
- [PULL 10/30] migration: Fix incorrect integer->float conversion caught by clang, Juan Quintela, 2020/01/14
- [PULL 11/30] migration: Fix the re-run check of the migrate-incoming command, Juan Quintela, 2020/01/14
- [PULL 12/30] misc: use QEMU_IS_ALIGNED, Juan Quintela, 2020/01/14