From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdwbm-0007Dx-O3 for qemu-devel@nongnu.org; Wed, 15 Feb 2017 05:14:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdwbi-0004w1-QO for qemu-devel@nongnu.org; Wed, 15 Feb 2017 05:14:46 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:35464) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cdwbi-0004v3-H1 for qemu-devel@nongnu.org; Wed, 15 Feb 2017 05:14:42 -0500 Received: by mail-wm0-x22b.google.com with SMTP id v186so37931957wmd.0 for ; Wed, 15 Feb 2017 02:14:41 -0800 (PST) From: Eduardo Otubo Date: Wed, 15 Feb 2017 11:14:25 +0100 Message-Id: <20170215101427.23736-1-eduardo.otubo@profitbricks.com> Subject: [Qemu-devel] [PATCH 0/2] add writeconfig command on monitor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: dgilbert@redhat.com, armbru@redhat.com, Eduardo Otubo This first patch extends the command line option `-writeconfig ' to a command on HMP and QMP monitors. This is useful when live migrating after a series of device hot plug events. One can just generate an updated config file for the vm, transport it to the target host and start the vm with `-readconfig '. The second patch re-includes the reference of the memory object on the config file generated. Eduardo Otubo (2): qmp/hmp: add writeconfig object_add not registering option hmp-commands.hx | 14 ++++++++++++++ hmp.c | 10 +++++++++- hmp.h | 1 + qapi-schema.json | 20 ++++++++++++++++++++ ui/console.c | 14 ++++++++++++++ 5 files changed, 58 insertions(+), 1 deletion(-) -- 2.11.0