From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: qemu-devel@nongnu.org
Cc: xen-devel@lists.xensource.com,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
jan.kiszka@siemens.com, avi@redhat.com,
Anthony PERARD <anthony.perard@citrix.com>
Subject: [Qemu-devel] [PATCH v3 1/6] vl.c: do not save the RAM state when Xen is enabled
Date: Thu, 19 Jan 2012 11:56:16 +0000 [thread overview]
Message-ID: <1326974181-32511-1-git-send-email-stefano.stabellini@eu.citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1201191134350.3150@kaball-desktop>
From: Anthony PERARD <anthony.perard@citrix.com>
In the Xen case, the guest RAM is not handle by QEMU, and it is saved by
Xen tools.
So, we just avoid to register the RAM save state handler.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
vl.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/vl.c b/vl.c
index ba55b35..6f0435b 100644
--- a/vl.c
+++ b/vl.c
@@ -3270,8 +3270,10 @@ int main(int argc, char **argv, char **envp)
default_drive(default_sdcard, snapshot, machine->use_scsi,
IF_SD, 0, SD_OPTS);
- register_savevm_live(NULL, "ram", 0, 4, NULL, ram_save_live, NULL,
- ram_load, NULL);
+ if (!xen_enabled()) {
+ register_savevm_live(NULL, "ram", 0, 4, NULL, ram_save_live, NULL,
+ ram_load, NULL);
+ }
if (nb_numa_nodes > 0) {
int i;
--
1.7.2.5
next prev parent reply other threads:[~2012-01-19 11:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-19 11:55 [Qemu-devel] [PATCH v3 0/6] save/restore on Xen Stefano Stabellini
2012-01-19 11:56 ` Stefano Stabellini [this message]
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 2/6] xen mapcache: check if memory region has moved Stefano Stabellini
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 3/6] Set runstate to INMIGRATE earlier Stefano Stabellini
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 4/6] cirrus_vga: do not reset videoram on resume Stefano Stabellini
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 5/6] xen: record physmap changes to xenstore Stefano Stabellini
2012-01-19 12:24 ` [Qemu-devel] [Xen-devel] " Ian Campbell
2012-01-19 13:08 ` Stefano Stabellini
2012-01-19 14:04 ` Ian Campbell
2012-01-19 14:16 ` Stefano Stabellini
2012-01-25 11:45 ` Avi Kivity
2012-01-25 11:55 ` Stefano Stabellini
2012-01-25 12:00 ` Avi Kivity
2012-01-19 11:56 ` [Qemu-devel] [PATCH v3 6/6] xen: change memory access behavior during migration Stefano Stabellini
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=1326974181-32511-1-git-send-email-stefano.stabellini@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--cc=anthony.perard@citrix.com \
--cc=avi@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=qemu-devel@nongnu.org \
--cc=xen-devel@lists.xensource.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).