From patchwork Tue Oct 30 08:32:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Isaku Yamahata X-Patchwork-Id: 195331 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3F7952C007D for ; Tue, 30 Oct 2012 20:00:49 +1100 (EST) Received: from localhost ([::1]:48675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT7I0-0006dO-HP for incoming@patchwork.ozlabs.org; Tue, 30 Oct 2012 04:35:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT7GN-0004kC-8J for qemu-devel@nongnu.org; Tue, 30 Oct 2012 04:33:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TT7GD-0000Zq-2h for qemu-devel@nongnu.org; Tue, 30 Oct 2012 04:33:31 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:44745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT7GC-0000YL-QF for qemu-devel@nongnu.org; Tue, 30 Oct 2012 04:33:21 -0400 Received: from ps.local.valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by mail.valinux.co.jp (Postfix) with SMTP id BDA5C181C8; Tue, 30 Oct 2012 17:33:13 +0900 (JST) Received: (nullmailer pid 29461 invoked by uid 1000); Tue, 30 Oct 2012 08:33:13 -0000 From: Isaku Yamahata To: qemu-devel@nongnu.org, kvm@vger.kernel.org Date: Tue, 30 Oct 2012 17:32:58 +0900 Message-Id: <882ec814f429f86bcf235c3273cb8393cbcd4f1a.1351582535.git.yamahata@valinux.co.jp> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-Virus-Scanned: clamav-milter 0.95.2 at va-mail.local.valinux.co.jp X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 210.128.90.3 Cc: benoit.hudzia@gmail.com, aarcange@redhat.com, aliguori@us.ibm.com, quintela@redhat.com, stefanha@gmail.com, t.hirofuchi@aist.go.jp, dlaor@redhat.com, satoshi.itoh@aist.go.jp, mdroth@linux.vnet.ibm.com, yoshikawa.takuya@oss.ntt.co.jp, owasserm@redhat.com, avi@redhat.com, pbonzini@redhat.com, chegu_vinod@hp.com Subject: [Qemu-devel] [PATCH v3 22/35] savevm: add new section that is used by postcopy X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This is used by postcopy to tell the total length of QEMU_VM_SECTION_FULL and QEMU_VM_SUBSECTION from outgoing to incoming. Signed-off-by: Isaku Yamahata --- savevm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/savevm.c b/savevm.c index 93c51ab..c93b6eb 100644 --- a/savevm.c +++ b/savevm.c @@ -1614,6 +1614,10 @@ static void vmstate_save(QEMUFile *f, SaveStateEntry *se) #define QEMU_VM_SECTION_FULL 0x04 #define QEMU_VM_SUBSECTION 0x05 +/* This section is used by postcopy to tell postcopy enabled session. + If the destination side doesn't know, it sees unknown section and abort. */ +#define QEMU_VM_POSTCOPY 0x10 + bool qemu_savevm_state_blocked(Error **errp) { SaveStateEntry *se;