From: Anthony PERARD <anthony.perard@citrix.com>
To: QEMU-devel <qemu-devel@nongnu.org>
Cc: Anthony PERARD <anthony.perard@citrix.com>,
Xen Devel <xen-devel@lists.xensource.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: [Qemu-devel] [PATCH V2 0/5] Have a working migration with Xen
Date: Fri, 9 Dec 2011 21:54:00 +0000 [thread overview]
Message-ID: <1323467645-24271-1-git-send-email-anthony.perard@citrix.com> (raw)
Hi all,
This patch series provide some fix to have migration working with Xen. The main
issue with Xen is that the guest RAM is not handle by QEMU.
So, first of all, the RAM will not be saved in the QEMU state file.
- For this, we can also unregister the ram_save_live function later in xen code
instead of having this extra "if xen" but I'm not sure of wish one would be
the best choice.
Then, during the initialisation that append before the migration, QEMU should
not try to allocate again the VRAM of the vga emulation, because it's already
there. (The guest RAM is restored before calling QEMU)
And last but not least, in QEMU with Xen, a call to set_memory (with different
address for start_addr and phys_offset) actually move the the memory, and the
only way to have a pointer to this memory is to ask a ptr with the new addr.
So, there is a patch that check for the right guest address to map.
There is probably a better way to do some of this.
Change since v1:
- rename xen_addr_actually_is to xen_phys_offset_to_gaddr.
- give phys_offset_to_gaddr as a pointer to map_cache_init
(no more global var in xen-all.c).
- call xen_phys_offset_to_gaddr only if the first try fail.
- also change a comment in the last patch.
Regards,
Anthony PERARD (5):
vl.c: Do not save RAM state when Xen is used.
xen mapcache: Check if a memory space has moved.
Introduce premigrate RunState.
xen: Change memory access behavior during migration.
vga-cirrus: Workaround during restore when using Xen.
hw/cirrus_vga.c | 16 +++++++++++++---
qapi-schema.json | 2 +-
vl.c | 10 ++++++++--
xen-all.c | 31 ++++++++++++++++++++++++++++++-
xen-mapcache.c | 22 +++++++++++++++++++---
xen-mapcache.h | 9 +++++++--
6 files changed, 78 insertions(+), 12 deletions(-)
--
Anthony PERARD
next reply other threads:[~2011-12-09 21:54 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 21:54 Anthony PERARD [this message]
2011-12-09 21:54 ` [Qemu-devel] [PATCH V2 1/5] vl.c: Do not save RAM state when Xen is used Anthony PERARD
2011-12-15 15:12 ` Anthony Liguori
2011-12-18 17:44 ` Avi Kivity
2011-12-20 16:46 ` Anthony PERARD
2011-12-09 21:54 ` [Qemu-devel] [PATCH V2 2/5] xen mapcache: Check if a memory space has moved Anthony PERARD
2011-12-12 12:53 ` Stefano Stabellini
2011-12-09 21:54 ` [Qemu-devel] [PATCH V2 3/5] Introduce premigrate RunState Anthony PERARD
2011-12-15 15:14 ` Anthony Liguori
2011-12-15 16:31 ` Luiz Capitulino
2011-12-19 17:27 ` Anthony PERARD
2012-01-03 19:05 ` Luiz Capitulino
2012-01-05 12:26 ` Anthony PERARD
2011-12-09 21:54 ` [Qemu-devel] [PATCH V2 4/5] xen: Change memory access behavior during migration Anthony PERARD
2011-12-12 12:55 ` Stefano Stabellini
2011-12-09 21:54 ` [Qemu-devel] [PATCH V2 5/5] vga-cirrus: Workaround during restore when using Xen Anthony PERARD
2011-12-10 10:45 ` Jan Kiszka
2011-12-12 13:18 ` Stefano Stabellini
2011-12-12 14:03 ` Jan Kiszka
2011-12-12 14:41 ` Stefano Stabellini
2011-12-12 15:03 ` Jan Kiszka
2011-12-12 15:32 ` Stefano Stabellini
2011-12-13 11:55 ` [Qemu-devel] early_savevm (was: [PATCH V2 5/5] vga-cirrus: Workaround during restore when using Xen.) Stefano Stabellini
2011-12-13 12:35 ` [Qemu-devel] early_savevm Jan Kiszka
2011-12-13 13:59 ` Stefano Stabellini
2011-12-18 17:43 ` Avi Kivity
2012-01-11 17:55 ` Anthony Liguori
2011-12-18 17:41 ` [Qemu-devel] [PATCH V2 5/5] vga-cirrus: Workaround during restore when using Xen Avi Kivity
2012-01-04 16:38 ` Stefano Stabellini
2012-01-04 17:23 ` Avi Kivity
2012-01-05 12:30 ` Stefano Stabellini
2012-01-05 12:50 ` Avi Kivity
2012-01-05 13:17 ` Stefano Stabellini
2012-01-05 13:32 ` Avi Kivity
2012-01-05 14:34 ` Stefano Stabellini
2012-01-05 15:19 ` Avi Kivity
2012-01-05 15:53 ` Stefano Stabellini
2012-01-05 16:33 ` Avi Kivity
2012-01-05 17:21 ` Stefano Stabellini
2012-01-05 17:50 ` Avi Kivity
2012-01-05 18:49 ` Jan Kiszka
2012-01-06 10:50 ` Stefano Stabellini
2012-01-06 13:30 ` Jan Kiszka
2012-01-06 14:40 ` Stefano Stabellini
2012-01-08 10:39 ` Avi Kivity
2012-01-09 15:25 ` Stefano Stabellini
2012-01-09 15:28 ` Jan Kiszka
2012-01-09 15:36 ` Avi Kivity
2012-01-06 15:58 ` Peter Maydell
2012-01-06 16:50 ` Jan Kiszka
2012-01-06 12:19 ` Avi Kivity
2012-01-06 12:22 ` Jan Kiszka
2012-01-06 12:47 ` Avi Kivity
2011-12-12 12:58 ` Stefano Stabellini
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=1323467645-24271-1-git-send-email-anthony.perard@citrix.com \
--to=anthony.perard@citrix.com \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.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).