From: Markus Armbruster <armbru@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: qemu-devel@nongnu.org, Konstantin Kostiuk <kkostiuk@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>,
Eric Blake <eblake@redhat.com>,
qemu-block@nongnu.org, Michael Roth <michael.roth@amd.com>,
Kevin Wolf <kwolf@redhat.com>
Subject: Re: [PATCH 11/11] docs: enable transmogrifier for QSD and QGA
Date: Thu, 13 Mar 2025 16:27:26 +0100 [thread overview]
Message-ID: <87ldt93q8x.fsf@pond.sub.org> (raw)
In-Reply-To: <CAFn=p-YBB-Qvmm4Tw2Kq4gNwLrjgY8-_sw7ZJAYnakQ7MDhc-Q@mail.gmail.com> (John Snow's message of "Thu, 13 Mar 2025 10:02:21 -0400")
John Snow <jsnow@redhat.com> writes:
> On Thu, Mar 13, 2025 at 2:54 AM Markus Armbruster <armbru@redhat.com> wrote:
>
>> John Snow <jsnow@redhat.com> writes:
>>
>> > This also creates the `qapi-qsd-index` and `qapi-qga-index` QMP indices.
>> >
>> > Signed-off-by: John Snow <jsnow@redhat.com>
>>
>> [...]
>>
>> > diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json
>> > index 995594aaf43..35ec0e7db31 100644
>> > --- a/qga/qapi-schema.json
>> > +++ b/qga/qapi-schema.json
>> > @@ -3,6 +3,9 @@
>> >
>> > ##
>> > # = QEMU guest agent protocol commands and structs
>> > +#
>> > +# For a concise listing of all commands, events, and types in the QEMU
>> > +# guest agent, please consult the `qapi-qga-index`.
>> > ##
>> >
>> > { 'pragma': { 'doc-required': true } }
>> > diff --git a/storage-daemon/qapi/qapi-schema.json b/storage-daemon/qapi/qapi-schema.json
>> > index f10c9494906..2a562ee32e5 100644
>> > --- a/storage-daemon/qapi/qapi-schema.json
>> > +++ b/storage-daemon/qapi/qapi-schema.json
>> > @@ -13,6 +13,14 @@
>> > # the array type in the main schema, even if it is unused outside of the
>> > # storage daemon.
>> >
>> > +##
>> > +# = QEMU storage daemon protocol commands and structs
>> > +#
>> > +# For a concise listing of all commands, events, and types in the QEMU
>> > +# storage daemon, please consult the `qapi-qsd-index`.
>> > +##
>> > +
>> > +
>> > { 'include': '../../qapi/pragma.json' }
>> >
>> > # Documentation generated with qapi-gen.py is in source order, with
>>
>> Compare qapi/qapi-schema.json:
>>
>> # = Introduction
>> #
>> # This document describes all commands currently supported by QMP.
>> #
>> # For locating a particular item, please see the `qapi-qmp-index`.
>> #
>>
>> Suggest to pick one phrasing and stick to it, unless there's a reason
>> for more than one.
>>
>
> Nope, just free-handing it. What's your favorite? ;)
Let me see...
Alright, I saw, and I hate what I saw. But addressing that should not
be coupled to this series. I'm going to take your patch as is, and
improve on top.
"But what exactly do you hate?" you might ask. Have a look at how the
three rendered manuals look like.
1. QMP (docs/manual/interop/qemu-qmp-ref.html)
QEMU QMP Reference Manual
*************************
Contents
^^^^^^^^
* QEMU QMP Reference Manual
* Introduction
* QMP errors
[More entries at this level, namely all the modules...]
Introduction
============
This document describes all commands currently supported by QMP.
For locating a particular item, please see the QMP Index.
Most of the time their usage is exactly the same as in the user
Monitor, this means that any other document which also describe
commands (the manpage, QEMU's manual, etc) can and should be
consulted.
QMP has two types of commands: regular and query commands. Regular
commands usually change the Virtual Machine's state someway, while
query commands just return information. The sections below are
divided accordingly.
It's important to observe that all communication examples are
formatted in a reader-friendly way, so that they're easier to
understand. However, in real protocol usage, they're emitted as a
single line.
Also, the following notation is used to denote data flow:
Example:
-> data issued by the Client
<- Server data response
Please refer to the QEMU Machine Protocol Specification for detailed
information on the Server command and response formats.
QMP errors
==========
[...]
The manual has a single top-level section, named like the manual. WTF?
The introduction reads fine, except it should be "all commands and
events".
2. QSD
QEMU Storage Daemon QMP Reference Manual
****************************************
Contents
^^^^^^^^
* QEMU Storage Daemon QMP Reference Manual
* QEMU storage daemon protocol commands and structs
* Common data types
[More entries at this level, namely all the modules...]
QEMU storage daemon protocol commands and structs
=================================================
For a concise listing of all commands, events, and types in the QEMU
storage daemon, please consult the QSD Index.
Common data types
=================
Same section structure WTF as above.
The introduction section is crap, starting with the title.
3. QGA
QEMU Guest Agent Protocol Reference
***********************************
Contents
^^^^^^^^
* QEMU Guest Agent Protocol Reference
* QEMU guest agent protocol commands and structs
QEMU guest agent protocol commands and structs
==============================================
For a concise listing of all commands, events, and types in the QEMU
guest agent, please consult the QGA Index.
Command guest-sync-delimited (Since: 1.1)
Echo back a unique integer value, and prepend to response a leading
sentinel byte (0xFF) the client can check scan for.
[...]
[More definitions...]
The section structure is completely useless. Why bury the contents two
levels deep, with meaningless section titles?
Again, the introduction section is crap, starting with the title.
next prev parent reply other threads:[~2025-03-13 15:27 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-13 4:43 [PATCH 00/11] docs/qapi: enable new guest-agent and storage-daemon docs John Snow
2025-03-13 4:43 ` [PATCH 01/11] docs/qapi_domain: isolate TYPE_CHECKING imports John Snow
2025-03-13 4:43 ` [PATCH 02/11] docs/qapi-domain: always store fully qualified name in signode John Snow
2025-03-13 4:43 ` [PATCH 03/11] docs/qapi_domain: add namespace support to FQN John Snow
2025-03-13 4:43 ` [PATCH 04/11] docs/qapi-domain: add :namespace: override option John Snow
2025-03-13 6:39 ` Markus Armbruster
2025-03-13 13:55 ` John Snow
2025-03-13 4:43 ` [PATCH 05/11] docs/qapi-domain: add qapi:namespace directive John Snow
2025-03-13 4:43 ` [PATCH 06/11] docs/qapidoc: add :namespace: option to qapi-doc directive John Snow
2025-03-13 4:43 ` [PATCH 07/11] docs/qapi_domain: add namespace support to cross-references John Snow
2025-03-13 6:47 ` Markus Armbruster
2025-03-13 13:58 ` John Snow
2025-03-13 14:40 ` Markus Armbruster
2025-03-13 15:10 ` John Snow
2025-03-13 15:57 ` Markus Armbruster
2025-03-13 16:57 ` John Snow
2025-03-13 18:30 ` Markus Armbruster
2025-03-13 18:59 ` John Snow
2025-03-14 7:08 ` Markus Armbruster
2025-03-14 7:20 ` Markus Armbruster
2025-03-13 4:43 ` [PATCH 08/11] docs/qapi-domain: add namespaced index support John Snow
2025-03-14 8:06 ` Markus Armbruster
2025-03-13 4:43 ` [PATCH 09/11] docs: add QAPI namespace "QMP" to qemu-qmp-ref John Snow
2025-03-14 7:27 ` Markus Armbruster
2025-03-13 4:43 ` [PATCH 10/11] docs: disambiguate references in qapi-domain.rst John Snow
2025-03-13 4:43 ` [PATCH 11/11] docs: enable transmogrifier for QSD and QGA John Snow
2025-03-13 6:54 ` Markus Armbruster
2025-03-13 14:02 ` John Snow
2025-03-13 15:27 ` Markus Armbruster [this message]
2025-03-14 9:21 ` [PATCH 00/11] docs/qapi: enable new guest-agent and storage-daemon docs Markus Armbruster
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=87ldt93q8x.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=jsnow@redhat.com \
--cc=kkostiuk@redhat.com \
--cc=kwolf@redhat.com \
--cc=michael.roth@amd.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-block@nongnu.org \
--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.