[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] fix segfault on fd-migration starting
From: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [PATCH] fix segfault on fd-migration starting |
Date: |
Mon, 07 Nov 2011 12:22:30 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Wen Congyang <address@hidden> wrote:
> We set s->mon to NULL in migrate_init. But we will use it
> to search fd when do fd-migration, and it will cause qemu
> crashed.
>
> Signed-off-by: Wen Congyang <address@hidden>
>
> ---
> migration.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/migration.c b/migration.c
> index 4b17566..d094381 100644
> --- a/migration.c
> +++ b/migration.c
> @@ -383,7 +383,7 @@ static MigrationState *migrate_init(Monitor *mon, int
> detach, int blk, int inc)
> s->bandwidth_limit = bandwidth_limit;
> s->blk = blk;
> s->shared = inc;
> - s->mon = NULL;
> + s->mon = mon;
> s->bandwidth_limit = bandwidth_limit;
> s->state = MIG_STATE_SETUP;
Problem is real.
Patch is wrong, because now we "resume" the monitor even when we are
doing detached migration. Looking into it.
Thanks, Juan.