Skip to contentSkip to conversation

qapi: Doc fixes

PATCH In review Markus Armbruster 2 participants 5 messages Sep 11

lore
Share & tools
lore
#0 lore raw

cover qapi: Doc fixes

John, this trivially conflicts with your work. Feel free to leave resolving the conflicts to me.

Machine core maintainers, feel free to ignore this mini-series entirely.

Markus Armbruster (2):
qapi/machine: Drop misleading (for OptsVisitor) doc qapi/compat: Belatedly update description of CompatPolicy

 qapi/compat.json  | 2 +-
 qapi/machine.json | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.55.0
#1 lore raw

PATCH 1/2 qapi/machine: Drop misleading (for OptsVisitor) doc

The QMP Reference Manual describes NumaOptions and NumaNodeOptions as "(for OptsVisitor)". This makes no sense; the OptsVisitor is a purely internal thing.

When commit 0042109a6a (NUMA: convert -numa option to use OptsVisitor) added these QAPI types, both "(for OptsVisitor)" were correct and merely schema comments. They have since become wrong (both types are part of QMP according to query-qmp-schema) and reference documentation.

Delete both instances.

---
 qapi/machine.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
qapi/machine.json +2 -2
index 2d63c1bac3..2fd4861616 100644
@@ -470,7 +470,7 @@
 ##
 # @NumaOptions:
 #
-# A discriminated record of NUMA options.  (for OptsVisitor)
+# A discriminated record of NUMA options.
 #
 # @type: NUMA option type
 #
@@ -489,7 +489,7 @@
 ##
 # @NumaNodeOptions:
 #
-# Create a guest NUMA node.  (for OptsVisitor)
+# Create a guest NUMA node.
 #
 # @nodeid: NUMA node ID (increase by 1 from 0 if omitted)
 #
Signature · 1 line
2.55.0
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] qapi/machine: Drop misleading (for OptsVisitor) doc

Quoted 10 lines · Markus Armbruster

The QMP Reference Manual describes NumaOptions and NumaNodeOptions as "(for OptsVisitor)". This makes no sense; the OptsVisitor is a purely internal thing.

When commit 0042109a6a (NUMA: convert -numa option to use OptsVisitor) added these QAPI types, both "(for OptsVisitor)" were correct and merely schema comments. They have since become wrong (both types are part of QMP according to query-qmp-schema) and reference documentation.

Quoted 6 lines

Delete both instances.

---
 qapi/machine.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
#3 lore raw

PATCH 2/2 qapi/compat: Belatedly update description of CompatPolicy

In reply to Markus Armbruster
Fixes 57df0dff1a (qapi: Extend -compat to set policy for unstable

interfaces)

---
 qapi/compat.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/compat.json +1 -1
index 90b8d51cf2..e4728424de 100644
@@ -40,7 +40,7 @@
 ##
 # @CompatPolicy:
 #
-# Policy for handling deprecated management interfaces.
+# Policy for handling deprecated and unstable management interfaces.
 #
 # This is intended for testing users of the management interfaces.
 #
Signature · 1 line
2.55.0
Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] qapi/compat: Belatedly update description of CompatPolicy

Quoted 6 lines · Markus Armbruster
Fixes 57df0dff1a (qapi: Extend -compat to set policy for unstable

interfaces)

---
 qapi/compat.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|