From: Pavel Fedin <p.fedin@samsung.com>
To: 'Eric Blake' <eblake@redhat.com>, qemu-devel@nongnu.org
Cc: 'Amit Shah' <amit.shah@redhat.com>,
'Juan Quintela' <quintela@redhat.com>,
'Luiz Capitulino' <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] migration: Introduce MIGRATION_STATUS_FINISHING
Date: Tue, 27 Oct 2015 10:08:26 +0300 [thread overview]
Message-ID: <00b801d11086$47049600$d50dc200$@samsung.com> (raw)
In-Reply-To: <562E5D60.7060501@redhat.com>
Hello!
> 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).
Yes, i know this, my host uses libvirt v1.2.9.3 (i backport necessary patches to it) and it barfed. I didn't check master though...
> 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.
You know, actually, this is a thing only for qemu's internal use, we don't need a new state at all. Instead, we could introduce a 'bool cpus_stopped' to MigrationState structure and test for it in migration_in_finishing(), like:
--- cut ---
bool migration_in_finishing(MigrationState *s)
{
return s->cpus_stopped;
}
--- cut ---
What do you think about this solution? It is much less complicated than...
> 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
With this kind of approach we would not be able to migrate ITS without this option. Because it's not external clients being interested in this state at the moment, but qemu itself.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
next prev parent reply other threads:[~2015-10-27 7:08 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
2015-10-27 7:08 ` Pavel Fedin [this message]
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='00b801d11086$47049600$d50dc200$@samsung.com' \
--to=p.fedin@samsung.com \
--cc=amit.shah@redhat.com \
--cc=eblake@redhat.com \
--cc=lcapitulino@redhat.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).