All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: Wen Congyang <wency@cn.fujitsu.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] fix segfault on fd-migration starting
Date: Mon, 07 Nov 2011 12:22:30 +0100	[thread overview]
Message-ID: <m38vnsdvnt.fsf@neno.neno> (raw)
In-Reply-To: <4EB743CB.10403@cn.fujitsu.com> (Wen Congyang's message of "Mon, 07 Nov 2011 10:34:51 +0800")

Wen Congyang <wency@cn.fujitsu.com> 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 <wency@cn.fujitsu.com>
>
> ---
>  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.

      reply	other threads:[~2011-11-07 11:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07  2:34 [Qemu-devel] [PATCH] fix segfault on fd-migration starting Wen Congyang
2011-11-07 11:22 ` Juan Quintela [this message]

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=m38vnsdvnt.fsf@neno.neno \
    --to=quintela@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wency@cn.fujitsu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.