QAPI patches for 2025-08-09
The following changes since commit a74434580e1051bff12ab5eee5586058295c497f:
Merge tag 'pull-loongarch-20250808' of https://github.com/gaosong715/qemu into staging (2025-08-08 09:49:06 -0400)
are available in the Git repository at:
https://repo.or.cz/qemu/armbru.git tags/pull-qapi-2025-08-09
for you to fetch changes up to 79f57adce686d0027608af4be363cde2409e5740:
docs/devel/qapi-code-gen: Update cross-reference syntax (2025-08-09 07:20:24 +0200)
----------------------------------------------------------------
QAPI patches for 2025-08-09
----------------------------------------------------------------
Markus Armbruster (3):
docs/devel/qapi-code-gen: Add two cross-references we missed docs/devel/qapi-code-gen: Fix typos in QAPI schema language grammar docs/devel/qapi-code-gen: Update cross-reference syntax
docs/devel/qapi-code-gen.rst | 19 ++++++++++++------- docs/devel/qapi-domain.rst | 1 + 2 files changed, 13 insertions(+), 7 deletions(-)
Signature · 1 line
2.49.0
[PULL 2/3] docs/devel/qapi-code-gen: Fix typos in QAPI schema language grammar
Message-ID: <[email protected]>
--- docs/devel/qapi-code-gen.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/qapi-code-gen.rst +2 -2
@@ -786,8 +786,8 @@ Configuring the schema Syntax:: COND = STRING - | { 'all: [ COND, ... ] } - | { 'any: [ COND, ... ] } + | { 'all': [ COND, ... ] } + | { 'any': [ COND, ... ] } | { 'not': COND } All definitions take an optional 'if' member. Its value must be a
Signature · 1 line
2.49.0
[PULL 1/3] docs/devel/qapi-code-gen: Add two cross-references we missed
In reply to Markus ArmbrusterMissed in commit 9c66762a601 (docs/qapi-code-gen: add cross-references).
Message-ID: <[email protected]>
--- docs/devel/qapi-code-gen.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/qapi-code-gen.rst +2 -2
@@ -646,9 +646,9 @@ Member 'event' names the event. This is the event name used in the Client JSON Protocol. Member 'data' defines the event-specific data. It defaults to an -empty MEMBERS object. +empty MEMBERS_ object. -If 'data' is a MEMBERS object, then MEMBERS defines event-specific +If 'data' is a MEMBERS_ object, then MEMBERS defines event-specific data just like a struct type's 'data' defines struct type members. If 'data' is a STRING, then STRING names a complex type whose members
Signature · 1 line
2.49.0
[PULL 3/3] docs/devel/qapi-code-gen: Update cross-reference syntax
In reply to Markus ArmbrusterThe new QAPI code generator creates a cross-reference target for each definition documentation. Enabled for the QEMU QMP Reference manual in commit a377f39f38f, and for the QEMU Storage Daemon QMP Reference Manual and the QEMU Guest Agent Protocol Reference in commit a6af5443440. We've put these targets to use since, but neglected to update doc comment markup documentation. Do that now.
Message-ID: <[email protected]>
--- docs/devel/qapi-code-gen.rst | 11 ++++++++--- docs/devel/qapi-domain.rst | 1 + 2 files changed, 9 insertions(+), 3 deletions(-)
docs/devel/qapi-code-gen.rst +8 -3
@@ -943,9 +943,14 @@ The usual ****strong****, *\*emphasized\** and ````literal```` markup should be used. If you need a single literal ``*``, you will need to backslash-escape it. -Use ``@foo`` to reference a name in the schema. This is an rST -extension. It is rendered the same way as ````foo````, but carries -additional meaning. +Use ```foo``` to reference a definition in the schema. This generates +a link to the definition. In the event that such a cross-reference is +ambiguous, you can use `QAPI cross-reference roles +<QAPI-domain-cross-references>` to disambiguate. + +Use @foo to reference a member description within the current +definition. This is an rST extension. It is currently rendered the +same way as ````foo````, but carries additional meaning. Example::
docs/devel/qapi-domain.rst +1 -0
@@ -375,6 +375,7 @@ Will allow you to add arbitrary field lists in QAPI directives:: :see also: Lorem ipsum, dolor sit amet ... +.. _QAPI-domain-cross-references: Cross-references ================
Signature · 1 line
2.49.0
Stefan Hajnoczi
AppliedApplied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes.