Skip to contentSkip to conversation

QAPI patches for 2025-07-29

GIT PULL Applied Markus Armbruster 2 participants 7 messages Jul 29, 2025

lore
Share & tools
lore
#0 lore raw

The following changes since commit 92c05be4dfb59a71033d4c57dac944b29f7dabf0:

Merge tag 'pull-qga-2025-07-28' of https://repo.or.cz/qemu/armbru into staging (2025-07-28 09:31:19 -0400)

are available in the Git repository at:

https://repo.or.cz/qemu/armbru.git tags/pull-qapi-2025-07-29

for you to fetch changes up to a95b3c0ad857055198cdb272bca2af975092d060:

MAINTAINERS: Cover docs/devel/qapi-domain.rst properly (2025-07-29 14:51:39 +0200)

----------------------------------------------------------------
QAPI patches for 2025-07-29

----------------------------------------------------------------
Markus Armbruster (5):
qapi: Add more cross-references
qapi/accelerator: Fix markup of heading tests/qapi-schema: Bury dead test case doc-non-first-section docs/qapi-domain: Fix typos
MAINTAINERS: Cover docs/devel/qapi-domain.rst properly

 MAINTAINERS                                  | 1 +
 docs/devel/qapi-domain.rst                   | 4 ++--
 qapi/accelerator.json                        | 4 +++-
 qapi/dump.json                               | 2 +-
 qapi/machine.json                            | 2 +-
 qapi/migration.json                          | 4 ++--
 qapi/misc-i386.json                          | 2 +-
 qapi/run-state.json                          | 2 +-
 qapi/sockets.json                            | 2 +-
 tests/qapi-schema/doc-non-first-section.err  | 1 -
 tests/qapi-schema/doc-non-first-section.json | 6 ------
 tests/qapi-schema/doc-non-first-section.out  | 0
 12 files changed, 13 insertions(+), 17 deletions(-)
 delete mode 100644 tests/qapi-schema/doc-non-first-section.err
 delete mode 100644 tests/qapi-schema/doc-non-first-section.json
 delete mode 100644 tests/qapi-schema/doc-non-first-section.out
Signature · 1 line
2.49.0
#1 lore raw

[PULL 3/5] tests/qapi-schema: Bury dead test case doc-non-first-section

The test passed when it was added. However, the commit adding it neglected to make Meson aware of it, so it never ran automatically. The test stopped making sense when we changed headings markup, and ceased to pass then. It should've been removed then. Do that now.

Fixes 6c10778826a8 (docs/sphinx: remove special parsing for freeform sections)

Message-ID: <[email protected]>

---
 tests/qapi-schema/doc-non-first-section.err  | 1 -
 tests/qapi-schema/doc-non-first-section.json | 6 ------
 tests/qapi-schema/doc-non-first-section.out  | 0
 3 files changed, 7 deletions(-)
 delete mode 100644 tests/qapi-schema/doc-non-first-section.err
 delete mode 100644 tests/qapi-schema/doc-non-first-section.json
 delete mode 100644 tests/qapi-schema/doc-non-first-section.out
tests/qapi-schema/doc-non-first-section.err deleted +0 -1
deleted file mode 100644
index eeced2bca7..0000000000
@@ -1 +0,0 @@
-doc-non-first-section.json:5:1: '=' heading must come first in a comment block
tests/qapi-schema/doc-non-first-section.json deleted +0 -6
deleted file mode 100644
index 1590876061..0000000000
@@ -1,6 +0,0 @@
-# = section must be first line
-
-##
-#
-# = Not first
-##
tests/qapi-schema/doc-non-first-section.out deleted +0 -0
deleted file mode 100644
index e69de29bb2..0000000000
Signature · 1 line
2.49.0
#2 lore raw

[PULL 5/5] MAINTAINERS: Cover docs/devel/qapi-domain.rst properly

In reply to Markus Armbruster

Section QAPI already covers it, and that's fine. It's missing from "Sphinx documentation configuration and build machinery". Add it there.

Message-ID: <[email protected]>

[Improved commit message]
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 37879ab64e..069d77f2f8 100644
@@ -4433,6 +4433,7 @@ F: docs/requirements.txt
 F: docs/sphinx/
 F: docs/_templates/
 F: docs/devel/docs.rst
+F: docs/devel/qapi-domain.rst
 
 Rust build system integration
 M: Manos Pitsidianakis <[email protected]>
Signature · 1 line
2.49.0
#3 lore raw

[PULL 4/5] docs/qapi-domain: Fix typos

In reply to Markus Armbruster

Message-ID: <[email protected]>

---
 docs/devel/qapi-domain.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/qapi-domain.rst +2 -2
index b71890f660..fe540d1e40 100644
@@ -9,7 +9,7 @@ in Sphinx is provided by the QAPI Domain, located in
 `Python Domain
 <https://www.sphinx-doc.org/en/master/usage/domains/python.html>`_
 included with Sphinx, but provides special directives and roles
-speciically for annotating and documenting QAPI definitions
+for annotating and documenting QAPI definitions
 specifically.
 
 A `Domain
@@ -101,7 +101,7 @@ without types. The QAPI domain uses this class for features, returns,
 and enum values.
 
 TypedField:
-  * Creates a grouped, typed field. Multiple adjacent entres will be
+  * Creates a grouped, typed field. Multiple adjacent entries will be
     merged into one section, and the content will form a bulleted list.
   * *Must* take at least one argument, but supports up to two -
     nominally, a name and a type.
Signature · 1 line
2.49.0
#4 lore raw

[PULL 1/5] qapi: Add more cross-references

In reply to Markus Armbruster

We recently (merge commit 504632dcc631) enclosed command and type names in backquotes, so they become links in generated HTML. Take care of a few we missed.

Message-ID: <[email protected]>

---
 qapi/dump.json      | 2 +-
 qapi/machine.json   | 2 +-
 qapi/migration.json | 4 ++--
 qapi/misc-i386.json | 2 +-
 qapi/run-state.json | 2 +-
 qapi/sockets.json   | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)
qapi/dump.json +1 -1
index 32c8c1f06e..726b520870 100644
@@ -79,7 +79,7 @@
 #
 # @detach: if true, QMP will return immediately rather than waiting
 #     for the dump to finish.  The user can track progress using
-#     "query-dump".  (since 2.6).
+#     `query-dump`.  (since 2.6).
 #
 # @begin: if specified, the starting physical address.
 #
qapi/machine.json +1 -1
index 6f59f70ca6..038eab281c 100644
@@ -2087,7 +2087,7 @@
 #
 # @deprecated-props: an optional list of properties that are flagged as
 #     deprecated by the CPU vendor.  The list depends on the
-#     CpuModelExpansionType: "static" properties are a subset of the
+#     `CpuModelExpansionType`: "static" properties are a subset of the
 #     enabled-properties for the expanded model; "full" properties are
 #     a set of properties that are deprecated across all models for
 #     the architecture.  (since: 10.1 -- since 9.1 on s390x --).
qapi/migration.json +2 -2
index e08a99bb82..2387c21e9c 100644
@@ -641,7 +641,7 @@
 #
 #     This mode supports VFIO devices provided the user first puts the
 #     guest in the suspended runstate, such as by issuing
-#     guest-suspend-ram to the QEMU guest agent.
+#     `guest-suspend-ram` to the QEMU guest agent.
 #
 #     Best performance is achieved when the memory backend is shared
 #     and the @x-ignore-shared migration capability is set, but this
@@ -1704,7 +1704,7 @@
 #
 # .. admonition:: Notes
 #
-#     1. The 'query-migrate' command should be used to check
+#     1. The `query-migrate` command should be used to check
 #        migration's progress and final result (this information is
 #        provided by the 'status' member).
 #
qapi/misc-i386.json +1 -1
index c8c91a241c..d1ce8caf25 100644
@@ -8,7 +8,7 @@
 #
 # Reset the RTC interrupt reinjection backlog.  Can be used if another
 # mechanism to synchronize guest time is in effect, for example QEMU
-# guest agent's guest-set-time command.
+# guest agent's `guest-set-time` command.
 #
 # Use of this command is only applicable for x86 machines with an RTC,
 # and on other machines will silently return without performing any
qapi/run-state.json +1 -1
index 54ba5c9a3f..4757947ca6 100644
@@ -20,7 +20,7 @@
 # @inmigrate: guest is paused waiting for an incoming migration.  Note
 #     that this state does not tell whether the machine will start at
 #     the end of the migration.  This depends on the command-line -S
-#     option and any invocation of 'stop' or 'cont' that has happened
+#     option and any invocation of `stop` or `cont` that has happened
 #     since QEMU was started.
 #
 # @internal-error: An internal error that prevents further guest
qapi/sockets.json +1 -1
index 82046b0b3a..32fac51728 100644
@@ -143,7 +143,7 @@
 #
 # @str: decimal is for file descriptor number, otherwise it's a file
 #     descriptor name.  Named file descriptors are permitted in
-#     monitor commands, in combination with the 'getfd' command.
+#     monitor commands, in combination with the `getfd` command.
 #     Decimal file descriptors are permitted at startup or other
 #     contexts where no monitor context is active.
 #
Signature · 1 line
2.49.0
#5 lore raw

[PULL 2/5] qapi/accelerator: Fix markup of heading

In reply to Markus Armbruster

The docs generated for qapi/accelerator.json shows text "= Accelerators" instead of a heading. This is because the patch that added the heading crossed with the commit that changed heading markup (commit 6c10778826a "docs/sphinx: remove special parsing for freeform sections"). Fix the markup.

Fixes 18da42ee4273 (qapi/accel: Move definitions related to accelerators in their own file)

Message-ID: <[email protected]>

---
 qapi/accelerator.json | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
qapi/accelerator.json +3 -1
index 28d5ff4c49..fb28c8d920 100644
@@ -4,7 +4,9 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 ##
-# = Accelerators
+# ************
+# Accelerators
+# ************
 ##
 
 { 'include': 'common.json' }
Signature · 1 line
2.49.0