From: Markus Armbruster <armbru@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: qemu-devel@nongnu.org,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Fabiano Rosas" <farosas@suse.de>,
"Hanna Reitz" <hreitz@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@mailo.com>,
"Kevin Wolf" <kwolf@redhat.com>,
"Vladimir Sementsov-Ogievskiy" <vsementsov@yandex-team.ru>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Zhao Liu" <zhao1.liu@intel.com>,
"Jason Wang" <jasowangio@gmail.com>,
"Eric Blake" <eblake@redhat.com>,
qemu-block@nongnu.org, "Igor Mammedov" <imammedo@redhat.com>,
"Ani Sinha" <anisinha@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Peter Xu" <peterx@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>,
"Daniel P. Berrangé" <berrange@redhat.com>
Subject: Re: [PATCH v2 09/10] qapi: split intro sections for data structs
Date: Wed, 23 Sep 2026 12:48:18 +0200 [thread overview]
Message-ID: <87bj9outu5.fsf@pond.sub.org> (raw)
In-Reply-To: <20260921205712.1862167-10-jsnow@redhat.com> (John Snow's message of "Mon, 21 Sep 2026 16:57:11 -0400")
John Snow <jsnow@redhat.com> writes:
> The structs of concern in this patch are those for which no other QAPI
> definition uses as a data type to describe its own arguments or as a
> branch of a union: i.e. they are not currently inlined and as such the
> precise semantics of their intro/details split is *currently* of less
> concern.
>
> Of course, they could be inlined in the future, so the semantics of
> this split are still worth investigating.
>
> Review notes: Similar notes as previous patches in this series with
> respect to how splits were determined, and why details were not
> physically relocated.
Help me out, please: which notes exactly?
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
> qapi/acpi.json | 3 +--
> qapi/block-core.json | 5 ++---
> qapi/compat.json | 3 +--
> qapi/machine.json | 9 ++++-----
> 4 files changed, 8 insertions(+), 12 deletions(-)
>
> diff --git a/qapi/acpi.json b/qapi/acpi.json
> index 291a04a7ea4..82e82d7cf89 100644
> --- a/qapi/acpi.json
> +++ b/qapi/acpi.json
> @@ -13,8 +13,7 @@
>
> ##
> # @AcpiTableOptions:
> -#
> -# Specify an ACPI table on the command line to load.
> +# Specify an ACPI table on the command line to load.
> #
> # At most one of @file and @data can be specified. The list of files
> # specified by any one of them is loaded and concatenated in order.
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index 13981d7e69d..741c8165c06 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -843,9 +843,8 @@
>
> ##
> # @BlockMeasureInfo:
> -#
> -# Image file size calculation information. This structure describes
> -# the size requirements for creating a new image file.
> +# Image file size calculation information. This structure
> +# describes the size requirements for creating a new image file.
> #
> # The size requirements depend on the new image file format. File
> # size always equals virtual disk size for the 'raw' format, even for
> diff --git a/qapi/compat.json b/qapi/compat.json
> index ef1853b9acd..b42d142ddcc 100644
> --- a/qapi/compat.json
> +++ b/qapi/compat.json
> @@ -37,8 +37,7 @@
>
> ##
> # @CompatPolicy:
> -#
> -# Policy for handling deprecated management interfaces.
> +# Policy for handling deprecated management interfaces.
> #
> # This is intended for testing users of the management interfaces.
> #
# Limitation: covers only syntactic aspects of QMP, i.e. stuff tagged
# with feature 'deprecated' or 'unstable'. We may want to extend it
# to cover semantic aspects and CLI.
#
# Limitation: deprecated-output policy @hide is not implemented for
# enumeration values. They behave the same as with policy @accept.
"This is intended for" caught my eyes. Inlining it feels problematic.
For starters, how will "this" be interpreted in the new context?
Fortunately, this won't be inlined any time soon: it's used just as
argument of -compat, and the CLI isn't QAPIfied.
Similar difficulties can arise whenever we inline more than just member
descriptions. Avoiding them now feels impractical; we'll have to read
the texts in the contexts where the inliner puts them. I see a lot of
proofreading and doc editing in our future.
> diff --git a/qapi/machine.json b/qapi/machine.json
> index 00a03e57b98..b18c6d94a38 100644
> --- a/qapi/machine.json
> +++ b/qapi/machine.json
> @@ -1629,9 +1629,9 @@
>
> ##
> # @SMPConfiguration:
> -#
> -# Schema for CPU topology configuration. A missing value lets QEMU
> -# figure out a suitable value based on the ones that are provided.
> +# Schema for CPU topology configuration. A missing value lets
> +# QEMU figure out a suitable value based on the ones that are
> +# provided.
> #
> # The members other than @cpus and @maxcpus define a topology of
> # containers.
> @@ -1890,8 +1890,7 @@
>
> ##
> # @CpuModelInfo:
> -#
> -# Virtual CPU model.
> +# Virtual CPU model.
> #
> # A CPU model consists of the name of a CPU definition, to which delta
> # changes are applied (e.g. features added/removed). Most magic
next prev parent reply other threads:[~2026-09-23 10:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 20:57 [PATCH v2 00/10] qapi: convert/split remaining QAPI/QMP intro sections John Snow
2026-09-21 20:57 ` [PATCH v2 02/10] qapi: convert/split intros for block-core.json commands John Snow
2026-09-23 8:50 ` Markus Armbruster
2026-09-25 17:15 ` John Snow
2026-09-26 5:57 ` Markus Armbruster
2026-09-21 20:57 ` [PATCH v2 04/10] qapi: convert/split intros for job.json commands John Snow
2026-09-23 9:20 ` Markus Armbruster
2026-09-23 19:35 ` John Snow
2026-09-21 20:57 ` [PATCH v2 06/10] qapi: convert/split intros for commands John Snow
2026-09-23 11:06 ` Markus Armbruster
2026-09-21 20:57 ` [PATCH v2 09/10] qapi: split intro sections for data structs John Snow
2026-09-23 10:48 ` Markus Armbruster [this message]
2026-09-23 21:17 ` John Snow
2026-09-21 20:57 ` [PATCH v2 10/10] qapi: split intro sections for inlinable structs John Snow
2026-09-23 9:59 ` Markus Armbruster
[not found] ` <20260921205712.1862167-4-jsnow@redhat.com>
2026-09-23 9:17 ` [PATCH v2 03/10] qapi: convert/split intros for block commands Markus Armbruster
2026-09-28 14:32 ` Eric Blake
2026-09-28 18:00 ` John Snow
[not found] ` <20260921205712.1862167-6-jsnow@redhat.com>
2026-09-23 9:21 ` [PATCH v2 05/10] qapi: convert/split intros for misc-i386.json commands 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=87bj9outu5.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=anisinha@redhat.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=farosas@suse.de \
--cc=hreitz@redhat.com \
--cc=imammedo@redhat.com \
--cc=jasowangio@gmail.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=philmd@mailo.com \
--cc=philmd@oss.qualcomm.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@yandex-team.ru \
--cc=zhao1.liu@intel.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.