qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/3] Postcopy: Fix TP!=HP zero case


From: Dr. David Alan Gilbert (git)
Subject: [Qemu-devel] [PATCH 2/3] Postcopy: Fix TP!=HP zero case
Date: Wed, 11 Nov 2015 14:02:28 +0000

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>
---
 migration/ram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/migration/ram.c b/migration/ram.c
index 62cf42b..4266687 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -2273,6 +2273,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;
@@ -2280,7 +2281,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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]