diff mbox

[2/2] spapr: fix migration of older pseries

Message ID 20160215101514.32327.78919.stgit@bahia.huguette.org (mailing list archive)
State New, archived
Headers show

Commit Message

Greg Kurz Feb. 15, 2016, 10:15 a.m. UTC
Use the config_section machine property to fix migration
of older pseries started with an older QEMU (version < 2.4
for both).

Older machines started with QEMU 2.4 are not affected by
this change since they send the configuration section
unconditionally.

Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
---
 hw/ppc/spapr.c |    1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 5bd8fd3ef842..cd6681acb87b 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -2446,6 +2446,7 @@  static void spapr_machine_2_3_instance_options(MachineState *machine)
     spapr_machine_2_4_instance_options(machine);
     savevm_skip_section_footers();
     global_state_set_optional();
+    machine->config_section = false;
 }
 
 static void spapr_machine_2_3_class_options(MachineClass *mc)