From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK7DY-0000PD-3Z for qemu-devel@nongnu.org; Tue, 28 Jul 2015 11:55:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZK7DU-0008C4-F5 for qemu-devel@nongnu.org; Tue, 28 Jul 2015 11:55:00 -0400 Received: from smtp.citrix.com ([66.165.176.89]:48043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK7DU-00089G-Ag for qemu-devel@nongnu.org; Tue, 28 Jul 2015 11:54:56 -0400 From: Anthony PERARD Date: Tue, 28 Jul 2015 16:54:45 +0100 Message-ID: <1438098885-4339-4-git-send-email-anthony.perard@citrix.com> In-Reply-To: <1438098885-4339-1-git-send-email-anthony.perard@citrix.com> References: <1438098885-4339-1-git-send-email-anthony.perard@citrix.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH RFC 3/3] migration: Add configuration section to vmstate with xen. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU-devel Cc: Juan Quintela , Xen Devel , Anthony PERARD , Stefano Stabellini , Anthony PERARD , Amit Shah From: Anthony PERARD This adds the configuration section in the vmstate saved by xen_save_devices_state. Signed-off-by: Anthony PERARD --- migration/savevm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/migration/savevm.c b/migration/savevm.c index 6071215..b3f605c 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -961,6 +961,11 @@ static int qemu_save_device_state(QEMUFile *f) cpu_synchronize_all_states(); + if (!savevm_state.skip_configuration) { + qemu_put_byte(f, QEMU_VM_CONFIGURATION); + vmstate_save_state(f, &vmstate_configuration, &savevm_state, 0); + } + QTAILQ_FOREACH(se, &savevm_state.handlers, entry) { if (se->is_ram) { continue; -- Anthony PERARD