From: Greg Kurz <gkurz@linux.vnet.ibm.com>
To: Juan Quintela <quintela@redhat.com>
Cc: Laurent Vivier <lvivier@redhat.com>,
qemu-devel@nongnu.org,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
qemu-ppc@nongnu.org, Amit Shah <amit.shah@redhat.com>,
David Gibson <david@gibson.dropbear.id.au>
Subject: [Qemu-devel] [PATCH v2 2/3] spapr: fix migration of older pseries
Date: Wed, 17 Feb 2016 17:06:22 +0100 [thread overview]
Message-ID: <20160217160522.840.70479.stgit@bahia.huguette.org> (raw)
In-Reply-To: <20160217160344.840.69108.stgit@bahia.huguette.org>
Use the require-config-section machine property to fix migration of older
pseries (version < 2.4) started with an older QEMU (version < 2.4).
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>
---
v2: - added comment to explain the migration breakage
- updated changelog
---
hw/ppc/spapr.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 5bd8fd3ef842..256d90de8b2c 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -2446,6 +2446,16 @@ 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();
+ /* QEMU 2.4 added a configuration section to the migration stream. A
+ * call to savevm_skip_configuration() should have been added here
+ * since pseries-2.3 came with QEMU 2.3. This did not occur.
+ * The consequence is that pseries-2.3 will now always submit a
+ * configuration section by default and cannot be migrated back to
+ * QEMU 2.3.
+ * The require-config-section property allows pseries-2.3 to be migrated
+ * from QEMU 2.3 though.
+ */
+ machine->require_config_section = false;
}
static void spapr_machine_2_3_class_options(MachineClass *mc)
next prev parent reply other threads:[~2016-02-17 16:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-17 16:03 [Qemu-devel] [PATCH v2 0/3] Fix migration of old pseries Greg Kurz
2016-02-17 16:05 ` [Qemu-devel] [PATCH v2 1/3] migration: allow configuration section to be optional Greg Kurz
2016-02-17 16:06 ` Greg Kurz [this message]
2016-02-17 16:06 ` [Qemu-devel] [PATCH v2 3/3] migration: allow to suppress configuration section submission Greg Kurz
2016-02-18 2:50 ` David Gibson
2016-02-18 6:36 ` Amit Shah
2016-02-18 9:24 ` Greg Kurz
2016-02-18 10:25 ` Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160217160522.840.70479.stgit@bahia.huguette.org \
--to=gkurz@linux.vnet.ibm.com \
--cc=amit.shah@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=dgilbert@redhat.com \
--cc=lvivier@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).