From patchwork Tue Oct 30 08:32:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v3,22/35] savevm: add new section that is used by postcopy Date: Mon, 29 Oct 2012 22:32:58 -0000 From: Isaku Yamahata X-Patchwork-Id: 195331 Message-Id: <882ec814f429f86bcf235c3273cb8393cbcd4f1a.1351582535.git.yamahata@valinux.co.jp> To: qemu-devel@nongnu.org, kvm@vger.kernel.org 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 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;