]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-options.hx
migration: allow machine to enforce configuration section migration
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Thu, 18 Feb 2016 11:32:25 +0000 (12:32 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 28 Feb 2016 05:19:02 +0000 (16:19 +1100)
commit902c053d834e3b802ec736f170edf226d4a841ff
treee77adab9d6e3ba2a16899aafd0fa347013b57756
parent09b5e30da5b19f44768a5429f603caaede216757
migration: allow machine to enforce configuration section migration

Migration of pseries-2.3 doesn't have configuration section. Unfortunately,
QEMU 2.4/2.4.1/2.5 are buggy and always stream and expect the configuration
section, and break migration both ways.

This patch introduces a property which allows to enforce a configuration
section for machines who don't have one.

It can be set at startup:

-machine enforce-config-section=on

or later from the QEMU monitor:

qom-set /machine enforce-config-section on

It is up to the tooling to set or unset this property according to the
version of the QEMU at the other end of the pipe.

Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/core/machine.c
include/hw/boards.h
migration/savevm.c
qemu-options.hx