This first patch extends the command line option `-writeconfig <file>' 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 <file>'.
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