All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: peng.hao2@zte.com.cn
Cc: imammedo@redhat.com, dgilbert@redhat.com,
	marcandre.lureau@redhat.com, maxime.coquelin@redhat.com,
	wang.yechao255@zte.com.cn, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] 答复: Re: 答复: Re:  [PATCH] vhost: fix a migration failedbecause ofvhost region merge
Date: Sun, 23 Jul 2017 04:52:22 +0300	[thread overview]
Message-ID: <20170723044845-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <201707221349209626503@zte.com.cn>

On Sat, Jul 22, 2017 at 01:49:20PM +0800, peng.hao2@zte.com.cn wrote:
> some regions can not merge when just part of devices have realized.
> 
> when all devices are realized on destination, these regions  can be merged
>  again 
> 
>  and the used slots can satisfy the vhost slot limit as on source.
> 
> in the restore stage the vm is not in running state, so don't compute if more
> than 
> 
> vhost slot limit when vm is not running. when a last device is realized,
> 
> all regions are merged to the slot number as on source. then the state of vm 
> 
> changes to running.
> 
>  it satisfies the vhost slot limit on source, so it should satify on
> destination.

OK but the VM not running check is too hacky. E.g. it won't
trigger with memory hotplug if someone stops VM before
doing hotplug.

Looks like you want to check machine_init_done or something
like this.

-- 
MST

      reply	other threads:[~2017-07-23  1:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-22  5:49 [Qemu-devel] 答复: Re: 答复: Re: [PATCH] vhost: fix a migration failedbecause ofvhost region merge peng.hao2
2017-07-23  1:52 ` Michael S. Tsirkin [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=20170723044845-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=maxime.coquelin@redhat.com \
    --cc=peng.hao2@zte.com.cn \
    --cc=qemu-devel@nongnu.org \
    --cc=wang.yechao255@zte.com.cn \
    /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.