qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony PERARD <anthony.perard@citrix.com>
To: QEMU-devel <qemu-devel@nongnu.org>
Cc: Juan Quintela <quintela@redhat.com>,
	Xen Devel <xen-devel@lists.xen.org>,
	Anthony PERARD <anthony.perard@gmail.com>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	Anthony PERARD <anthony.perard@citrix.com>,
	Amit Shah <amit.shah@redhat.com>
Subject: [Qemu-devel] [PATCH RFC 1/3] migration: Fix regretion for xenfv machine.
Date: Tue, 28 Jul 2015 16:54:43 +0100	[thread overview]
Message-ID: <1438098885-4339-2-git-send-email-anthony.perard@citrix.com> (raw)
In-Reply-To: <1438098885-4339-1-git-send-email-anthony.perard@citrix.com>

From: Anthony PERARD <anthony.perard@gmail.com>

This fix migration from the same QEMU version and from previous QEMU
version.

>From the global state section, we don't need runstate with Xen. Right now,
the way the Xen toolstack knows when QEMU is ready is when QEMU reach
"running" runstate.

The configuration sectin and the section footers are not going to be
present in previous version of QEMU with xenfv machine, so we skip them.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
Tested migration from QEMU 2.2.1 to master.
---
 hw/i386/pc_piix.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index a896624..b18758d 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -455,6 +455,9 @@ static void pc_xen_hvm_init(MachineState *machine)
     if (bus != NULL) {
         pci_create_simple(bus, -1, "xen-platform");
     }
+    global_state_set_optional();
+    savevm_skip_configuration();
+    savevm_skip_section_footers();
 }
 #endif
 
-- 
Anthony PERARD

  reply	other threads:[~2015-07-28 15:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28 15:54 [Qemu-devel] [PATCH RFC 0/3] Migration regressions with Xen Anthony PERARD
2015-07-28 15:54 ` Anthony PERARD [this message]
2015-07-28 15:54 ` [Qemu-devel] [PATCH RFC 2/3] migration: Fix global state " Anthony PERARD
2015-07-28 15:54 ` [Qemu-devel] [PATCH RFC 3/3] migration: Add configuration section to vmstate with xen Anthony PERARD
2015-07-29 17:54 ` [Qemu-devel] [PATCH for-2.4 0/3] Migration regressions with Xen Anthony PERARD
2015-07-30 11:06   ` Juan Quintela
2015-07-30 11:24     ` Stefano Stabellini
2015-07-31  9:59       ` Stefano Stabellini
2015-08-03  5:44         ` Amit Shah
2015-08-03  8:36           ` Dr. David Alan Gilbert
2015-08-03  9:37           ` Stefano Stabellini
2015-08-03 12:45             ` Amit Shah

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=1438098885-4339-2-git-send-email-anthony.perard@citrix.com \
    --to=anthony.perard@citrix.com \
    --cc=amit.shah@redhat.com \
    --cc=anthony.perard@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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).