[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/6] Postcopy: Fix TP!=HP zero case
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PULL 4/6] Postcopy: Fix TP!=HP zero case |
Date: |
Thu, 12 Nov 2015 18:20:14 +0100 |
From: "Dr. David Alan Gilbert" <address@hidden>
Where the target page size is different from the host page
we special case it, but I messed up on the zero case check.
Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
migration/ram.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/ram.c b/migration/ram.c
index d8d5a50..7f32696 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -2274,6 +2274,7 @@ static int ram_load_postcopy(QEMUFile *f)
/* Temporary page that is later 'placed' */
void *postcopy_host_page = postcopy_get_tmp_page(mis);
void *last_host = NULL;
+ bool all_zero = false;
while (!ret && !(flags & RAM_SAVE_FLAG_EOS)) {
ram_addr_t addr;
@@ -2281,7 +2282,6 @@ static int ram_load_postcopy(QEMUFile *f)
void *page_buffer = NULL;
void *place_source = NULL;
uint8_t ch;
- bool all_zero = false;
addr = qemu_get_be64(f);
flags = addr & ~TARGET_PAGE_MASK;
--
2.5.0
- [Qemu-devel] [PULL 0/6] Migration pull request, Juan Quintela, 2015/11/12
- [Qemu-devel] [PULL 1/6] migration: print ram_addr_t as RAM_ADDR_FMT not %zx, Juan Quintela, 2015/11/12
- [Qemu-devel] [PULL 3/6] Finish non-postcopiable iterative devices before package, Juan Quintela, 2015/11/12
- [Qemu-devel] [PULL 4/6] Postcopy: Fix TP!=HP zero case,
Juan Quintela <=
- [Qemu-devel] [PULL 2/6] migration: Make 32bit linux compile with RDMA, Juan Quintela, 2015/11/12
- [Qemu-devel] [PULL 5/6] migrate-start-postcopy: Improve text, Juan Quintela, 2015/11/12
- [Qemu-devel] [PULL 6/6] migration_init: Fix lock initialisation/make it explicit, Juan Quintela, 2015/11/12
- Re: [Qemu-devel] [PULL 0/6] Migration pull request, Peter Maydell, 2015/11/12