From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZ8Op-0007NN-Uv for qemu-devel@nongnu.org; Fri, 09 Dec 2011 16:54:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZ8Oo-0003p0-VL for qemu-devel@nongnu.org; Fri, 09 Dec 2011 16:54:35 -0500 Received: from smtp.citrix.com ([66.165.176.89]:19043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZ8Oo-0003ol-Qz for qemu-devel@nongnu.org; Fri, 09 Dec 2011 16:54:34 -0500 From: Anthony PERARD Date: Fri, 9 Dec 2011 21:54:01 +0000 Message-ID: <1323467645-24271-2-git-send-email-anthony.perard@citrix.com> In-Reply-To: <1323467645-24271-1-git-send-email-anthony.perard@citrix.com> References: <1323467645-24271-1-git-send-email-anthony.perard@citrix.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH V2 1/5] vl.c: Do not save RAM state when Xen is used. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU-devel Cc: Anthony PERARD , Xen Devel , Stefano Stabellini In 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 --- vl.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index f5afed4..e7dced2 100644 --- a/vl.c +++ b/vl.c @@ -3273,8 +3273,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; -- Anthony PERARD