From: "Daniel P. Berrange" <berrange@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Luiz Capitulino <lcapitulino@redhat.com>,
qemu-devel@nongnu.org, Juan Quintela <quintela@redhat.com>
Subject: [Qemu-devel] Re: [PATCH 3/5] QMP: Introduce MIGRATION events
Date: Wed, 26 May 2010 16:15:42 +0100 [thread overview]
Message-ID: <20100526151542.GU18547@redhat.com> (raw)
In-Reply-To: <4BFD361E.8070708@codemonkey.ws>
On Wed, May 26, 2010 at 09:54:22AM -0500, Anthony Liguori wrote:
> On 05/26/2010 05:33 AM, Daniel P. Berrange wrote:
> >>>I'm not sure why you would need a notification of when migration
> >>>starts (since you know when you've started migration).
> >>>
> >>But you don't know if the other end "knows" that it has also started.
> >>
> >>started is needed only in incoming part, because .... we don't have a
> >>monitor to ask if migration has started.
> >>
> >If we ever want to get closer to allowing multiple monitors, or allowing
> >apps to issue QMP commands directly via libvirt, then we still need the
> >'migration started' event on the source, because something else can
> >have issued the 'migrate' command without the mgmt app knowing.
> >
>
> Migration started doesn't help multiple monitors. You need locking of
> some sort.
>
> Part of the problem is the QMP migrate command is implemented as a
> synchronous command. It really ought to be an asynchronous command.
> That tells you when the migration has actually completed without polling.
Handling asynchronous commands is alot more complicated and error
prone for client apps, than providing a asynchronous event notification
of the lifecycle stages. If you want to also query status while waiting
for the completion, it means you can have to deal with overlapping
command execute+return pairs within a single monitor connection.
AFAICT this requires a change to QMP to require a unique ID to be
sent with the {'execute'..} command and be sent back with the later
corresponding {'return'...} data, so you can actually correlate
reliably.
> On the destination side, we're really limited by the fact that we don't
> do live incoming migrations. The monitor doesn't get a chance to run at
> all with exec: migration, for instance.
If QEMU let you issue a monitor command for starting incoming
migration, instead of using -incoming this wouldn't such a bad
problem. eg you can launch QEMU in the desired config, with CPUs
stopped, do the normal QMP handshake + whatever else is required
then issue 'migrate_incoming URI' which blocked the caller for
the duration, to allow completion to be detected.
> For tcp: and unix:, a CONNECTED event absolutely makes sense (every
> socket server should emit a CONNECTED event). Unfortunately, after
> CONNECTED you lose the monitor until migration is complete. If
> something bad happens, you have to exit qemu so once the monitor
> returns, migration has completed successfully.
>
> If we introduce live incoming migration, we'll need to rethink things.
> I would actually suggest that we deprecate the incoming command if we do
> that and make incoming migration a monitor command. I would think it
> should have the same semantics as migrate (as an asynchronous command).
> A CONNECTED event still makes sense for tcp and unix protocols but I
> don't think events make sense for start stop vs. an asynchronous command
> completion.
Do you actually mean 'deprecate -incoming arg' here ?
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
next prev parent reply other threads:[~2010-05-26 15:16 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-25 14:21 [Qemu-devel] [PATCH v2 0/5] Add QMP migration events Juan Quintela
2010-05-25 14:21 ` [Qemu-devel] [PATCH 1/5] Exit if incoming migration fails Juan Quintela
2010-05-25 18:01 ` Luiz Capitulino
2010-05-25 18:37 ` [Qemu-devel] " Juan Quintela
2010-05-25 18:52 ` Anthony Liguori
2010-05-25 14:21 ` [Qemu-devel] [PATCH 2/5] Factorize common migration incoming code Juan Quintela
2010-05-25 14:21 ` [Qemu-devel] [PATCH 3/5] QMP: Introduce MIGRATION events Juan Quintela
2010-05-25 15:09 ` Anthony Liguori
2010-05-25 15:35 ` [Qemu-devel] " Juan Quintela
2010-05-25 15:52 ` Daniel P. Berrange
2010-05-25 15:57 ` Anthony Liguori
2010-05-25 16:04 ` Juan Quintela
2010-05-25 16:10 ` Anthony Liguori
2010-05-25 18:13 ` Luiz Capitulino
2010-05-25 16:04 ` Daniel P. Berrange
2010-05-25 16:04 ` Juan Quintela
2010-05-25 16:25 ` Daniel P. Berrange
2010-05-25 16:33 ` Anthony Liguori
2010-05-25 16:43 ` Juan Quintela
2010-05-26 10:33 ` Daniel P. Berrange
2010-05-26 14:54 ` Anthony Liguori
2010-05-26 15:15 ` Daniel P. Berrange [this message]
2010-05-26 16:55 ` Anthony Liguori
2010-05-27 13:48 ` Luiz Capitulino
2010-05-27 15:58 ` Juan Quintela
2010-05-27 16:07 ` Luiz Capitulino
2010-05-27 16:07 ` Anthony Liguori
2010-05-26 10:16 ` Daniel P. Berrange
2010-05-25 18:21 ` Luiz Capitulino
2010-05-25 18:38 ` Juan Quintela
2010-05-25 15:48 ` [Qemu-devel] " Daniel P. Berrange
2010-05-25 18:31 ` Luiz Capitulino
2010-05-25 18:51 ` Anthony Liguori
2010-05-26 13:14 ` Luiz Capitulino
2010-05-25 14:21 ` [Qemu-devel] [PATCH 4/5] QMP: Emit migration events on incoming migration Juan Quintela
2010-05-25 14:21 ` [Qemu-devel] [PATCH 5/5] QMP: Emit migration events on outgoing migration Juan Quintela
-- strict thread matches above, loose matches on Subject: below --
2010-05-24 8:25 [Qemu-devel] [PATCH 0/5] Add QMP migration events Juan Quintela
2010-05-24 8:25 ` [Qemu-devel] [PATCH 3/5] QMP: Introduce MIGRATION events Juan Quintela
2010-05-24 9:04 ` [Qemu-devel] " Paolo Bonzini
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=20100526151542.GU18547@redhat.com \
--to=berrange@redhat.com \
--cc=anthony@codemonkey.ws \
--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 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.