From: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>
To: qemu-devel@nongnu.org, quintela@redhat.com, amit.shah@redhat.com
Cc: bharata@linux.vnet.ibm.com
Subject: [Qemu-devel] [PATCH 2/3] Postcopy: Fix TP!=HP zero case
Date: Wed, 11 Nov 2015 14:02:28 +0000 [thread overview]
Message-ID: <1447250549-10291-3-git-send-email-dgilbert@redhat.com> (raw)
In-Reply-To: <1447250549-10291-1-git-send-email-dgilbert@redhat.com>
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
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 <dgilbert@redhat.com>
---
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
next prev parent reply other threads:[~2015-11-11 14:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-11 14:02 [Qemu-devel] [PATCH 0/3] Postcopy minor fixes Dr. David Alan Gilbert (git)
2015-11-11 14:02 ` [Qemu-devel] [PATCH 1/3] Finish non-postcopiable iterative devices before package Dr. David Alan Gilbert (git)
2015-11-11 15:14 ` Juan Quintela
2015-11-11 14:02 ` Dr. David Alan Gilbert (git) [this message]
2015-11-11 15:11 ` [Qemu-devel] [PATCH 2/3] Postcopy: Fix TP!=HP zero case Juan Quintela
2015-11-11 14:02 ` [Qemu-devel] [PATCH 3/3] migrate-start-postcopy: Improve text Dr. David Alan Gilbert (git)
2015-11-11 15:07 ` Juan Quintela
2015-11-11 16:34 ` Eric Blake
2015-11-11 20:59 ` [Qemu-devel] [PATCH 0/3] Postcopy minor fixes Christian Borntraeger
2015-11-12 8:59 ` Dr. David Alan Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1447250549-10291-3-git-send-email-dgilbert@redhat.com \
--to=dgilbert@redhat.com \
--cc=amit.shah@redhat.com \
--cc=bharata@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).