All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: "Marc-André Lureau" <mlureau@redhat.com>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 15/30] qmp-commands: move 'query-migrate-parameters' doc to schema
Date: Thu, 22 Sep 2016 13:19:13 +0200	[thread overview]
Message-ID: <87h998kwr2.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <1403625254.632846.1474533952810.JavaMail.zimbra@redhat.com> ("Marc-André Lureau"'s message of "Thu, 22 Sep 2016 04:45:52 -0400 (EDT)")

Marc-André Lureau <mlureau@redhat.com> writes:

> Hi
>
> ----- Original Message -----
>> Marc-André Lureau <mlureau@redhat.com> writes:
>> 
>> > Hi
>> >
>> > ----- Original Message -----
>> >> On 09/13/2016 08:01 AM, Marc-André Lureau wrote:
>> >> > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
>> >> > ---
>> >> >  docs/qmp-commands.txt | 29 -----------------------------
>> >> >  qapi-schema.json      | 13 +++++++++++++
>> >> >  2 files changed, 13 insertions(+), 29 deletions(-)
>> >> > 
>> >> 
>> >> > +++ b/qapi-schema.json
>> >> > @@ -1011,6 +1011,19 @@
>> >> >  # Returns: @MigrationParameters
>> >> >  #
>> >> >  # Since: 2.4
>> >> > +#
>> >> > +# Example:
>> >> > +#
>> >> > +# -> { "execute": "query-migrate-parameters" }
>> >> > +# <- { "return": {
>> >> > +#          "decompress-threads": 2,
>> >> > +#          "cpu-throttle-increment": 10,
>> >> > +#          "compress-threads": 8,
>> >> > +#          "compress-level": 1,
>> >> > +#          "cpu-throttle-initial": 20
>> >> > +#       }
>> >> > +#    }
>> >> > +#
>> >> >  ##
>> >> >  { 'command': 'query-migrate-parameters',
>> >> >    'returns': 'MigrationParameters' }
>> >> 
>> >> The example lacks 'cpu-throttle-increment', 'tls-creds', and
>> >> 'tls-hostname'; do we want to take this opportunity to touch it up?
>> >
>> > I suggest to put a [...] in the returned example, as this example could
>> > grow again, and there isn't much to learn from that query.
>> >  
>> >> Meanwhile, I have a series that touches this code, and will obviously
>> >> create a merge conflict for whoever gets in second:
>> >> https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg01946.html
>> >
>> > Yes, the more we wait to review the series, the more conflicts we will get.
>> > There is still over 100 patches to go, I'll send the next 30.
>> 
>> We suggested restructuring the series, and you liked the idea with the
>> alternative step (3b), not (3a).  Would it make sense to repost the
>> beginning of the multi-part monster in that form before moving on to the
>> next part?
>
>  3. Merge qmp-commands.txt into QAPI schema comments, step by step
>
>    (b) If you delete qmp-commands.txt section as you cover them in the
>    QAPI schema, command documentation regresses temporarily.  Tolerable,
>    but needs to be explained in commit messages.  Your choice.
>
> Isn't that what this series is doing? it moves the remaining doc from qmp-commands.txt to the schema.

Misunderstanding?  Step (3b) is one step of a reordered series.  Let me
repeat the order I proposed:

1. Fix existing issues in QAPI schema comments

2. Generate documentation from it (not a replacement for
   qmp-commands.txt, yet)

3. Merge qmp-commands.txt into QAPI schema comments, step by step

   (a) If you only update the QAPI schema comments, qmp-commands.txt
   stays intact throughout this work.

   (b) If you delete qmp-commands.txt section as you cover them in the
   QAPI schema, command documentation regresses temporarily.  Tolerable,
   but needs to be explained in commit messages.  Your choice.

4. Generated documentation now contains everything qmp-commands.txt
   contains; delete qmp-commands.txt

This way, the first part contains everything that's really interesting:
step 1, 2 and some of 3a or 3b, depending on which alternative you pick.
The remaining parts are just more of 3a or 3b, plus the trivial step 4
in the last one.

I proposed this to get the interesting review of step 2 out of the way
early, and before we tire ourselves out on the not-so-interesting but
necessary review of step 3.

  reply	other threads:[~2016-09-22 11:19 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13 13:01 [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 1/5) Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 01/30] qmp-commands: move 'add_client' doc to schema Marc-André Lureau
2016-09-20 17:47   ` Eric Blake
2016-09-13 13:01 ` [Qemu-devel] [PATCH 02/30] qmp-commands: move 'query-name' " Marc-André Lureau
2016-09-20 18:05   ` Eric Blake
2016-09-13 13:01 ` [Qemu-devel] [PATCH 03/30] qmp-commands: move 'query-kvm' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 04/30] qmp-commands: move 'query-status' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 05/30] qmp-commands: move 'query-uuid' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 06/30] qmp-commands: move 'query-chardev' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 07/30] qmp-commands: move 'query-chardev-backends' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 08/30] qmp-commands: move 'ringbuf-write' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 09/30] qmp-commands: move 'ringbuf-read' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 10/30] qmp-commands: move 'query-events' " Marc-André Lureau
2016-09-20 18:14   ` Eric Blake
2016-09-13 13:01 ` [Qemu-devel] [PATCH 11/30] qmp-commands: move 'query-migrate' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 12/30] qmp-commands: move 'migrate-set-capabilities' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 13/30] qmp-commands: move 'query-migrate-capabilities' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 14/30] qmp-commands: move 'migrate-set-parameters' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 15/30] qmp-commands: move 'query-migrate-parameters' " Marc-André Lureau
2016-09-21 19:31   ` Eric Blake
2016-09-21 20:01     ` Marc-André Lureau
2016-09-22  8:40       ` Markus Armbruster
2016-09-22  8:45         ` Marc-André Lureau
2016-09-22 11:19           ` Markus Armbruster [this message]
2016-09-22 11:54             ` Marc-André Lureau
2016-09-22 12:30               ` Markus Armbruster
2016-09-22 12:39                 ` Marc-André Lureau
2016-09-23  7:32                   ` Markus Armbruster
2016-09-23  8:03                     ` Marc-André Lureau
2016-09-22 12:57               ` Eric Blake
2016-09-13 13:01 ` [Qemu-devel] [PATCH 16/30] qmp-commands: move 'client_migrate_info' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 17/30] qmp-commands: move 'migrate-start-postcopy' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 18/30] qmp-commands: move 'query-mice' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 19/30] qmp-commands: move 'query-cpus' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 20/30] qmp-commands: move 'query-iothreads' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 21/30] qmp-commands: move 'query-vnc' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 22/30] qmp-commands: move 'query-spice' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 23/30] qmp-commands: move 'query-balloon' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 24/30] qmp-commands: move 'query-pci' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 25/30] qmp-commands: move 'quit' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 26/30] qmp-commands: move 'stop' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 27/30] qmp-commands: move 'system_reset' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 28/30] qmp-commands: move 'system_powerdown' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 29/30] qmp-commands: move 'cpu-add' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 30/30] qmp-commands: move 'memsave' " Marc-André Lureau
2016-09-21 19:43   ` Eric Blake
2016-09-13 14:02 ` [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 1/5) Markus Armbruster
2016-09-13 14:29   ` Marc-André Lureau

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=87h998kwr2.fsf@dusky.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=mlureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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.