Skip to contentSkip to conversation

qapi: Minor doc and markup fixes

PATCH In review Markus Armbruster 2 participants 14 messages Oct 28

lore
Share & tools
lore
#0 lore raw

cover qapi: Minor doc and markup fixes

PATCH 3+4 conflict with "[PATCH 0/8] qapi: last minute improvements/changes to -compat insecure-types" Daniel just posted. I'm posting anyway to get some eyes on this. I can take care of the conflicts.

Markus Armbruster (4):
qapi/acpi-hest: Fix markup of heading
qapi: Fix inaccurate comment on pragma member-name-exceptions qapi/compat: Fix inaccurate CompatPolicy introduction qapi/compat: Fix "only syntactic aspects of QMP" note

 qapi/acpi-hest.json |  3 ++-
 qapi/compat.json    | 17 +++++++++--------
 qapi/pragma.json    |  2 +-
 3 files changed, 12 insertions(+), 10 deletions(-)
Signature · 1 line
2.55.0
#1 lore raw

PATCH 1/4 qapi/acpi-hest: Fix markup of heading

The docs generated for qapi/acpi-hest.json shows text "== GHESv2 CPER Error Injection" 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 ddd8f3baa27d ("qapi/acpi-hest: add an interface to do generic CPER error injection")
---
 qapi/acpi-hest.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
qapi/acpi-hest.json +2 -1
index 8db804df19..505f68e053 100644
@@ -3,7 +3,8 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 ##
-# == GHESv2 CPER Error Injection
+# GHESv2 CPER Error Injection
+# ===========================
 #
 # Defined since ACPI Specification 6.1, section 18.3.2.8 Generic
 # Hardware Error Source version 2.  See:
Signature · 1 line
2.55.0
Reviewed-by on v1 1/4
#2 lore raw

Re: [PATCH 1/4] qapi/acpi-hest: Fix markup of heading

Quoted 11 lines · Markus Armbruster

The docs generated for qapi/acpi-hest.json shows text "== GHESv2 CPER Error Injection" 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 ddd8f3baa27d ("qapi/acpi-hest: add an interface to do generic CPER error injection")
---
 qapi/acpi-hest.json | 3 ++-
 1 file changed, 2 insertions(+), 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 :|
#3 lore raw

PATCH 1/4 qapi/acpi-hest: Fix markup of heading

In reply to Markus Armbruster

The docs generated for qapi/acpi-hest.json shows text "== GHESv2 CPER Error Injection" 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 ddd8f3baa27d ("qapi/acpi-hest: add an interface to do generic CPER error injection")
---
 qapi/acpi-hest.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
qapi/acpi-hest.json +2 -1
index 8db804df19..505f68e053 100644
@@ -3,7 +3,8 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 ##
-# == GHESv2 CPER Error Injection
+# GHESv2 CPER Error Injection
+# ===========================
 #
 # Defined since ACPI Specification 6.1, section 18.3.2.8 Generic
 # Hardware Error Source version 2.  See:
Signature · 1 line
2.55.0
#4 lore raw

PATCH 2/4 qapi: Fix inaccurate comment on pragma member-name-exceptions

In reply to Markus Armbruster
---
 qapi/pragma.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/pragma.json +1 -1
index 342cedc42e..73807abc6a 100644
@@ -80,7 +80,7 @@
         'XDbgBlockGraph',
         'YankInstanceType',
         'blockdev-reopen' ],
-    # Externally visible types whose member names may use uppercase
+    # Externally visible types whose member names may use uppercase or '_'
     'member-name-exceptions': [     # visible in:
         'ACPISlotType',             # query-acpi-ospm-status
         'AcpiTableOptions',         # -acpitable
Signature · 1 line
2.55.0
Reviewed-by on v1 2/4
#5 lore raw

Re: [PATCH 2/4] qapi: Fix inaccurate comment on pragma member-name-exceptions

Quoted 4 lines · Markus Armbruster
---
 qapi/pragma.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 :|
#6 lore raw

PATCH 2/4 qapi: Fix inaccurate comment on pragma member-name-exceptions

In reply to Markus Armbruster
---
 qapi/pragma.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/pragma.json +1 -1
index 342cedc42e..73807abc6a 100644
@@ -80,7 +80,7 @@
         'XDbgBlockGraph',
         'YankInstanceType',
         'blockdev-reopen' ],
-    # Externally visible types whose member names may use uppercase
+    # Externally visible types whose member names may use uppercase or '_'
     'member-name-exceptions': [     # visible in:
         'ACPISlotType',             # query-acpi-ospm-status
         'AcpiTableOptions',         # -acpitable
Signature · 1 line
2.55.0
#7 lore raw

PATCH 3/4 qapi/compat: Fix inaccurate CompatPolicy introduction

In reply to Markus Armbruster

"Policy for handling deprecated management interfaces" was initially accurate, but we neglected to update it when we added policy for unstable and insecure interfaces. Change it to "problematic management interfaces".

---
 qapi/compat.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/compat.json +1 -1
index 0f90ea1f52..f6bc93904f 100644
@@ -53,7 +53,7 @@
 
 ##
 # @CompatPolicy:
-#     Policy for handling deprecated management interfaces.
+#     Policy for handling problematic management interfaces.
 #
 #     This is intended for testing users of the management interfaces.
 #
Signature · 1 line
2.55.0
#8 lore raw

cover qapi: Minor doc and markup fixes

In reply to Markus Armbruster

PATCH 3+4 conflict with "[PATCH 0/8] qapi: last minute improvements/changes to -compat insecure-types" Daniel just posted. I'm posting anyway to get some eyes on this. I can take care of the conflicts.

Markus Armbruster (4):
qapi/acpi-hest: Fix markup of heading
qapi: Fix inaccurate comment on pragma member-name-exceptions qapi/compat: Fix inaccurate CompatPolicy introduction qapi/compat: Fix "only syntactic aspects of QMP" note

 qapi/acpi-hest.json |  3 ++-
 qapi/compat.json    | 17 +++++++++--------
 qapi/pragma.json    |  2 +-
 3 files changed, 12 insertions(+), 10 deletions(-)
Signature · 1 line
2.55.0
#9 lore raw

PATCH 3/4 qapi/compat: Fix inaccurate CompatPolicy introduction

In reply to Markus Armbruster

"Policy for handling deprecated management interfaces" was initially accurate, but we neglected to update it when we added policy for unstable and insecure interfaces. Change it to "problematic management interfaces".

---
 qapi/compat.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/compat.json +1 -1
index 0f90ea1f52..f6bc93904f 100644
@@ -53,7 +53,7 @@
 
 ##
 # @CompatPolicy:
-#     Policy for handling deprecated management interfaces.
+#     Policy for handling problematic management interfaces.
 #
 #     This is intended for testing users of the management interfaces.
 #
Signature · 1 line
2.55.0
Reviewed-by on v1 3/4
#10 lore raw

Re: [PATCH 3/4] qapi/compat: Fix inaccurate CompatPolicy introduction

Quoted 9 lines · Markus Armbruster

"Policy for handling deprecated management interfaces" was initially accurate, but we neglected to update it when we added policy for unstable and insecure interfaces. Change it to "problematic management 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 :|
#11 lore raw

PATCH 4/4 qapi/compat: Fix "only syntactic aspects of QMP" note

In reply to Markus Armbruster

"Covers only syntactic aspects of QMP" was initially accurate, but we we neglected to update it when we added @insecure-types. Do that now.

While there, move the limitation notes below the enum value descriptions to avoid forward references, and mark up an existing reference properly.

---
 qapi/compat.json | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
qapi/compat.json +8 -7
index f6bc93904f..d1fb74abf7 100644
@@ -57,13 +57,6 @@
 #
 #     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.
-#
 # @deprecated-input: how to handle deprecated input (default 'accept')
 #
 # @deprecated-output: how to handle deprecated output (default
@@ -78,6 +71,14 @@
 # @insecure-types: how to handle types that are not declared secure
 #     (default 'accept') (since 11.2)
 #
+# Limitation: @deprecated-input, @deprecated-output, @unstable-input,
+# and @unstable-output cover 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.
+#
 # Since: 6.0
 ##
 { 'struct': 'CompatPolicy',
Signature · 1 line
2.55.0
Reviewed-by on v1 4/4
#12 lore raw

Re: [PATCH 4/4] qapi/compat: Fix "only syntactic aspects of QMP" note

Quoted 11 lines · Markus Armbruster

"Covers only syntactic aspects of QMP" was initially accurate, but we we neglected to update it when we added @insecure-types. Do that now.

While there, move the limitation notes below the enum value descriptions to avoid forward references, and mark up an existing reference properly.

---
 qapi/compat.json | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 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 :|
#13 lore raw

PATCH 4/4 qapi/compat: Fix "only syntactic aspects of QMP" note

In reply to Markus Armbruster

"Covers only syntactic aspects of QMP" was initially accurate, but we we neglected to update it when we added @insecure-types. Do that now.

While there, move the limitation notes below the enum value descriptions to avoid forward references, and mark up an existing reference properly.

---
 qapi/compat.json | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
qapi/compat.json +8 -7
index f6bc93904f..d1fb74abf7 100644
@@ -57,13 +57,6 @@
 #
 #     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.
-#
 # @deprecated-input: how to handle deprecated input (default 'accept')
 #
 # @deprecated-output: how to handle deprecated output (default
@@ -78,6 +71,14 @@
 # @insecure-types: how to handle types that are not declared secure
 #     (default 'accept') (since 11.2)
 #
+# Limitation: @deprecated-input, @deprecated-output, @unstable-input,
+# and @unstable-output cover 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.
+#
 # Since: 6.0
 ##
 { 'struct': 'CompatPolicy',
Signature · 1 line
2.55.0