qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Pavel Fedin <p.fedin@samsung.com>, qemu-devel@nongnu.org
Cc: 'Amit Shah' <amit.shah@redhat.com>,
	'Luiz Capitulino' <lcapitulino@redhat.com>,
	'Juan Quintela' <quintela@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] migration: Introduce MIGRATION_STATUS_FINISHING
Date: Mon, 26 Oct 2015 11:05:36 -0600	[thread overview]
Message-ID: <562E5D60.7060501@redhat.com> (raw)
In-Reply-To: <014501d10fec$8b2548b0$a16fda10$@samsung.com>

[-- Attachment #1: Type: text/plain, Size: 1933 bytes --]

On 10/26/2015 06:47 AM, Pavel Fedin wrote:
> This status is set after vm_stop_force_state(), and is telling us that all
> CPUs are stopped, and we are finishing up with the migration.
> 
> Also, call notifier_list_notify() when this status is set. This will be
> necessary for ITS live migration on ARM, which will have to dump its state
> into guest RAM at this point.
> 
> Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
> ---

Interface review only:

> +++ b/qapi-schema.json
> @@ -430,6 +430,8 @@
>  #
>  # @active: in the process of doing migration.
>  #
> +# @finishing: migration is being finished, CPUs have been stopped.
> +#

Missing a '(since 2.5)' notation.  Also, adding new user-visible states
has a tendency to break existing clients that aren't prepared for
unexpected states (although technically such bugs are in the client - in
the past, libvirt used to be one such client, although we've tried to
fix it to gracefully ignore unknown states).  Are we sure no other
existing state works for this?  I'm not opposed to the addition, just
wanting to make sure we have good reason for it.

One design idea for adding new states is making sure the new state will
not be exposed unless the client specifies some new option to enable the
state, so that old clients will never see the state and new clients have
expressed their interest in the state by opting-in to it with the new
option.

>  # @completed: migration is finished.
>  #
>  # @failed: some error occurred during migration process.
> @@ -439,7 +441,7 @@
>  ##
>  { 'enum': 'MigrationStatus',
>    'data': [ 'none', 'setup', 'cancelling', 'cancelled',
> -            'active', 'completed', 'failed' ] }
> +            'active', 'finishing', 'completed', 'failed' ] }
>  
>  ##
>  # @MigrationInfo
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  reply	other threads:[~2015-10-26 17:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-26 12:47 [Qemu-devel] [PATCH] migration: Introduce MIGRATION_STATUS_FINISHING Pavel Fedin
2015-10-26 17:05 ` Eric Blake [this message]
2015-10-27  7:08   ` Pavel Fedin
2015-10-27 13:11     ` Eric Blake
2015-10-27 13:25       ` Pavel Fedin

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=562E5D60.7060501@redhat.com \
    --to=eblake@redhat.com \
    --cc=amit.shah@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=p.fedin@samsung.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.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).