[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/5] vl.c: Do not save RAM state when Xen is use
From: |
Stefano Stabellini |
Subject: |
Re: [Qemu-devel] [PATCH 1/5] vl.c: Do not save RAM state when Xen is used. |
Date: |
Thu, 24 Nov 2011 17:23:31 +0000 |
User-agent: |
Alpine 2.00 (DEB 1167 2008-08-23) |
On Thu, 24 Nov 2011, Anthony PERARD wrote:
> In Xen case, the guest RAM is not handle by QEMU, and it is saved by Xen
> tools.
> So, we just avoid to register the RAM save state handler.
Maybe we can unregister these handlers in the Xen specific
initialization code, before we start receiving save/restore requests,
otherwise we could have a nasty race condition.
> Signed-off-by: Anthony PERARD <address@hidden>
> ---
> vl.c | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index f5afed4..e7dced2 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -3273,8 +3273,10 @@ int main(int argc, char **argv, char **envp)
> default_drive(default_sdcard, snapshot, machine->use_scsi,
> IF_SD, 0, SD_OPTS);
>
> - register_savevm_live(NULL, "ram", 0, 4, NULL, ram_save_live, NULL,
> - ram_load, NULL);
> + if (!xen_enabled()) {
> + register_savevm_live(NULL, "ram", 0, 4, NULL, ram_save_live, NULL,
> + ram_load, NULL);
> + }
>
> if (nb_numa_nodes > 0) {
> int i;
> --
> Anthony PERARD
>
- [Qemu-devel] [PATCH 0/5] Have a working migration with Xen, Anthony PERARD, 2011/11/24
- [Qemu-devel] [PATCH 1/5] vl.c: Do not save RAM state when Xen is used., Anthony PERARD, 2011/11/24
- Re: [Qemu-devel] [PATCH 1/5] vl.c: Do not save RAM state when Xen is used.,
Stefano Stabellini <=
- [Qemu-devel] [PATCH 3/5] Introduce premigrate RunState., Anthony PERARD, 2011/11/24
- [Qemu-devel] [PATCH 2/5] xen mapcache: Check if a memory space has moved., Anthony PERARD, 2011/11/24
- [Qemu-devel] [PATCH 4/5] xen: Change memory access behavior during migration., Anthony PERARD, 2011/11/24
- [Qemu-devel] [PATCH 5/5] vga-cirrus: Workaround during restore when using Xen., Anthony PERARD, 2011/11/24