From: Luiz Capitulino <lcapitulino@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: pbonzini@redhat.com, aliguori@us.ibm.com, quintela@redhat.com,
qemu-devel@nongnu.org, jan.kiszka@siemens.com
Subject: Re: [Qemu-devel] [PATCH 4/4] qapi: Convert migrate
Date: Fri, 9 Mar 2012 15:33:52 -0300 [thread overview]
Message-ID: <20120309153352.6af406ea@doriath.home> (raw)
In-Reply-To: <4F5A4B6D.8080606@redhat.com>
On Fri, 09 Mar 2012 11:26:53 -0700
Eric Blake <eblake@redhat.com> wrote:
> On 03/09/2012 11:13 AM, Luiz Capitulino wrote:
> > The migrate command is one of those commands where HMP and QMP completely
> > mix up together. This made the conversion to the QAPI (which separates the
> > command into QMP and HMP parts) a bit difficult.
> >
> > The first important change to be noticed is that this commit completes the
> > removal of the Monitor object from migration code, started by the previous
> > commit.
> >
> > Another important and tricky change is about supporting the non-detached
> > mode. That's, if the user doesn't pass '-d' the migrate command will lock
>
> As a native speaker, I can state that it is unusual or even wrong to see
> a contraction immediately before a comma. I would do:
Oh, that rule is new to me. Thanks for letting me know!
>
> s/That's,/That is,/
>
> > the monitor and will only release it when migration is finished.
> >
> > To support that in the new HMP command (hmp_migrate()), it is necessary
> > to create a timer which runs every second and checks if the migration is
> > still active. If it's, the timer callback will re-schedule itself to run
>
> Another instance of the same grammar problem:
>
> s/it's/it is/
>
> > one second in the future. If the migration has already finished, the
> > monitor lock is relased and the user can use it normally.
>
> s/relased/released/
>
> >
> > All these changes should be transparent to the user.
> >
>
> > +++ b/qapi-schema.json
> > @@ -1631,3 +1631,24 @@
> > { 'command': 'qom-list-types',
> > 'data': { '*implements': 'str', '*abstract': 'bool' },
> > 'returns': [ 'ObjectTypeInfo' ] }
> > +
> > +##
> > +# @migrate
> > +#
> > +# Migrates the current running guest to another Virtual Machine.
> > +#
> > +# @uri: the Uniform Resource Identifier of the destination VM
> > +#
> > +# @blk: #optional do block migration (full disk copy)
> > +#
> > +# @inc: #optional incremental disk copy migration
> > +#
> > +# @detach: this argument exists only for compatibility reasons and should not
> > +# be used.
>
> Libvirt is currently using it, but it appears that libvirt always sets
> it to true. Does this mean the argument is ignored no matter whether
> you pass true or false? Or does this value have a default if omitted,
> and it is safe to explicitly pass the default (I assume the default is
> true), and that it is wrong to pass an explicit value that contradicts
> the default (that is, I'm assuming passing an explicit 'detach':'false'
> is wrong)?
'detach' is completely ignored in QMP, it's never read.
next prev parent reply other threads:[~2012-03-09 18:33 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-09 18:13 [Qemu-devel] [PATCH v2 0/4] qapi: Convert migrate Luiz Capitulino
2012-03-09 18:13 ` [Qemu-devel] [PATCH 1/4] QError: Introduce new errors for the migration command Luiz Capitulino
2012-03-09 18:13 ` [Qemu-devel] [PATCH 2/4] Error: Introduce error_copy() Luiz Capitulino
2012-03-09 18:13 ` [Qemu-devel] [PATCH 3/4] Purge migration of (almost) everything to do with monitors Luiz Capitulino
2012-03-09 18:20 ` Jan Kiszka
2012-03-09 18:30 ` Luiz Capitulino
2012-03-09 19:05 ` Jan Kiszka
2012-03-09 19:12 ` Anthony Liguori
2012-03-09 19:48 ` Luiz Capitulino
2012-03-09 19:57 ` Luiz Capitulino
2012-03-12 14:51 ` Kevin Wolf
2012-03-12 15:01 ` Luiz Capitulino
2012-03-09 18:31 ` Anthony Liguori
2012-03-09 18:45 ` Eric Blake
2012-03-09 18:53 ` Anthony Liguori
2012-03-09 19:42 ` Eric Blake
2012-03-09 19:48 ` Eric Blake
2012-03-09 18:59 ` Jan Kiszka
2012-03-09 18:13 ` [Qemu-devel] [PATCH 4/4] qapi: Convert migrate Luiz Capitulino
2012-03-09 18:26 ` Eric Blake
2012-03-09 18:33 ` Luiz Capitulino [this message]
2012-03-09 18:35 ` Anthony Liguori
2012-03-09 18:37 ` Luiz Capitulino
2012-03-09 22:51 ` Alon Levy
2012-03-12 13:21 ` Luiz Capitulino
2012-03-12 13:49 ` Alon Levy
2012-03-12 14:01 ` Luiz Capitulino
2012-03-12 14:23 ` Alon Levy
2012-03-12 14:34 ` Luiz Capitulino
-- strict thread matches above, loose matches on Subject: below --
2012-03-12 19:58 [Qemu-devel] [PATCH v3 0/4] " Luiz Capitulino
2012-03-12 19:59 ` [Qemu-devel] [PATCH 4/4] " Luiz Capitulino
2012-03-16 19:26 [Qemu-devel] [PULL 0/4]: QMP queue Luiz Capitulino
2012-03-16 19:26 ` [Qemu-devel] [PATCH 4/4] qapi: Convert migrate Luiz Capitulino
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=20120309153352.6af406ea@doriath.home \
--to=lcapitulino@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=eblake@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=pbonzini@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).