Skip to contentSkip to conversation

qapi: convert intro sections fixup

PATCH Superseded John Snow 2 participants 5 messages Sep 29 – Oct 8

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

John Snow

author
#0 lore raw

PATCH 1/1 qapi: convert intro sections fixup

"We" (Me, I, Myself) missed two last spots during bulk conversion of the intro section syntax.

Some definitions are still intentionally left without an intro
section: BlockdevSnapshotSync is the only case I am presently aware of.

The remaining two were genuinely just missed; convert them now.

---
 qapi/machine-s390x.json |  4 ++--
 qapi/qom.json           | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)
qapi/machine-s390x.json +2 -2
index 8d8cbe2fb75..9ae559bbc2d 100644
@@ -150,8 +150,8 @@
 
 ##
 # @DummyBootCertificates:
-#
-# Not used by QMP; hack to let us use BootCertificatesList internally.
+#     Not used by QMP; hack to let us use BootCertificatesList
+#     internally.
 #
 # Since: 11.2
 ##
qapi/qom.json +7 -7
index e03ede34421..2d0d0e47fbb 100644
@@ -1039,13 +1039,13 @@
 
 ##
 # @SevSnpGuestProperties:
-#
-# Properties for sev-snp-guest objects.  Most of these are direct
-# arguments for the KVM_SNP_* interfaces documented in the Linux
-# kernel source under
-# Documentation/arch/x86/amd-memory-encryption.rst, which are in turn
-# closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware commands
-# documented in the SEV-SNP Firmware ABI Specification (Rev 0.9).
+#     Properties for sev-snp-guest objects.  Most of these are direct
+#     arguments for the KVM_SNP_* interfaces documented in the Linux
+#     kernel source under
+#     Documentation/arch/x86/amd-memory-encryption.rst, which are in
+#     turn closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware
+#     commands documented in the SEV-SNP Firmware ABI Specification
+#     (Rev 0.9).
 #
 # More usage information is also available in the QEMU source tree
 # under docs/amd-memory-encryption.
Signature · 1 line
2.55.0
#1 lore raw
Quoted 6 lines · John Snow

"We" (Me, I, Myself) missed two last spots during bulk conversion of the intro section syntax.

Some definitions are still intentionally left without an intro
section: BlockdevSnapshotSync is the only case I am presently aware of.

There are quite a few more, but BlockdevSnapshotSync is the only one followed by a plain section.

Quoted 39 lines

The remaining two were genuinely just missed; convert them now.

---
 qapi/machine-s390x.json |  4 ++--
 qapi/qom.json           | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)
qapi/machine-s390x.json +2 -2
index 8d8cbe2fb75..9ae559bbc2d 100644
@@ -150,8 +150,8 @@
 
 ##
 # @DummyBootCertificates:
-#
-# Not used by QMP; hack to let us use BootCertificatesList internally.
+#     Not used by QMP; hack to let us use BootCertificatesList
+#     internally.
 #
 # Since: 11.2
 ##
qapi/qom.json +0 -7
index e03ede34421..2d0d0e47fbb 100644
@@ -1039,13 +1039,13 @@
 
 ##
 # @SevSnpGuestProperties:
-#
-# Properties for sev-snp-guest objects.  Most of these are direct
-# arguments for the KVM_SNP_* interfaces documented in the Linux
-# kernel source under
-# Documentation/arch/x86/amd-memory-encryption.rst, which are in turn
-# closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware commands
-# documented in the SEV-SNP Firmware ABI Specification (Rev 0.9).

qapi/qom.json line 1051

Quoted 10 lines
qapi/qom.json +7 -0
+#     Properties for sev-snp-guest objects.  Most of these are direct
+#     arguments for the KVM_SNP_* interfaces documented in the Linux
+#     kernel source under
+#     Documentation/arch/x86/amd-memory-encryption.rst, which are in
+#     turn closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware
+#     commands documented in the SEV-SNP Firmware ABI Specification
+#     (Rev 0.9).
 #
 # More usage information is also available in the QEMU source tree
 # under docs/amd-memory-encryption.

Hmm, shouldn't we split this one?

author
#2 lore raw
Quoted 56 lines · Markus Armbruster
Quoted 6 lines · John Snow

"We" (Me, I, Myself) missed two last spots during bulk conversion of the intro section syntax.

Some definitions are still intentionally left without an intro
section: BlockdevSnapshotSync is the only case I am presently aware of.

There are quite a few more, but BlockdevSnapshotSync is the only one followed by a plain section.

Quoted 43 lines

The remaining two were genuinely just missed; convert them now.

---
 qapi/machine-s390x.json |  4 ++--
 qapi/qom.json           | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)
qapi/machine-s390x.json +2 -2
index 8d8cbe2fb75..9ae559bbc2d 100644
@@ -150,8 +150,8 @@
 
 ##
 # @DummyBootCertificates:
-#
-# Not used by QMP; hack to let us use BootCertificatesList internally.
+#     Not used by QMP; hack to let us use BootCertificatesList
+#     internally.
 #
 # Since: 11.2
 ##
qapi/qom.json +4 -7
index e03ede34421..2d0d0e47fbb 100644
@@ -1039,13 +1039,13 @@
 
 ##
 # @SevSnpGuestProperties:
-#
-# Properties for sev-snp-guest objects.  Most of these are direct
-# arguments for the KVM_SNP_* interfaces documented in the Linux
-# kernel source under
-# Documentation/arch/x86/amd-memory-encryption.rst, which are in turn
-# closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware commands
-# documented in the SEV-SNP Firmware ABI Specification (Rev 0.9).
+#     Properties for sev-snp-guest objects.  Most of these are direct
+#     arguments for the KVM_SNP_* interfaces documented in the Linux
+#     kernel source under
+#     Documentation/arch/x86/amd-memory-encryption.rst, which are in
Quoted 8 lines

qapi/qom.json line 1051

Quoted 6 lines
qapi/qom.json +3 -0
+#     turn closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware
+#     commands documented in the SEV-SNP Firmware ABI Specification
+#     (Rev 0.9).
 #
 # More usage information is also available in the QEMU source tree
 # under docs/amd-memory-encryption.

Hmm, shouldn't we split this one?

With fresh eyes in the morning, yes. I was thinking this was dev info at the time, but I see now it's *usage* info, so... yes. Hang on.

author
#3 lore raw
In reply to Markus Armbruster
Quoted 56 lines · Markus Armbruster
Quoted 6 lines · John Snow

"We" (Me, I, Myself) missed two last spots during bulk conversion of the intro section syntax.

Some definitions are still intentionally left without an intro
section: BlockdevSnapshotSync is the only case I am presently aware of.

There are quite a few more, but BlockdevSnapshotSync is the only one followed by a plain section.

Quoted 43 lines

The remaining two were genuinely just missed; convert them now.

---
 qapi/machine-s390x.json |  4 ++--
 qapi/qom.json           | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)
qapi/machine-s390x.json +2 -2
index 8d8cbe2fb75..9ae559bbc2d 100644
@@ -150,8 +150,8 @@
 
 ##
 # @DummyBootCertificates:
-#
-# Not used by QMP; hack to let us use BootCertificatesList internally.
+#     Not used by QMP; hack to let us use BootCertificatesList
+#     internally.
 #
 # Since: 11.2
 ##
qapi/qom.json +4 -7
index e03ede34421..2d0d0e47fbb 100644
@@ -1039,13 +1039,13 @@
 
 ##
 # @SevSnpGuestProperties:
-#
-# Properties for sev-snp-guest objects.  Most of these are direct
-# arguments for the KVM_SNP_* interfaces documented in the Linux
-# kernel source under
-# Documentation/arch/x86/amd-memory-encryption.rst, which are in turn
-# closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware commands
-# documented in the SEV-SNP Firmware ABI Specification (Rev 0.9).
+#     Properties for sev-snp-guest objects.  Most of these are direct
+#     arguments for the KVM_SNP_* interfaces documented in the Linux
+#     kernel source under
+#     Documentation/arch/x86/amd-memory-encryption.rst, which are in
Quoted 8 lines

qapi/qom.json line 1051

Quoted 6 lines
qapi/qom.json +3 -0
+#     turn closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware
+#     commands documented in the SEV-SNP Firmware ABI Specification
+#     (Rev 0.9).
 #
 # More usage information is also available in the QEMU source tree
 # under docs/amd-memory-encryption.

Hmm, shouldn't we split this one?

Looping back to stuff that got missed:

Split how? I think I have to rephrase this a bit, because when it gets inlined, it (might) be lacking the context of what specifically it refers to, i.e. "Most of these" might become ambiguous.

#4 lore raw
Quoted 66 lines · John Snow
Quoted 56 lines · Markus Armbruster
Quoted 6 lines · John Snow

"We" (Me, I, Myself) missed two last spots during bulk conversion of the intro section syntax.

Some definitions are still intentionally left without an intro
section: BlockdevSnapshotSync is the only case I am presently aware of.

There are quite a few more, but BlockdevSnapshotSync is the only one followed by a plain section.

Quoted 43 lines

The remaining two were genuinely just missed; convert them now.

---
 qapi/machine-s390x.json |  4 ++--
 qapi/qom.json           | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)
qapi/machine-s390x.json +2 -2
index 8d8cbe2fb75..9ae559bbc2d 100644
@@ -150,8 +150,8 @@
 
 ##
 # @DummyBootCertificates:
-#
-# Not used by QMP; hack to let us use BootCertificatesList internally.
+#     Not used by QMP; hack to let us use BootCertificatesList
+#     internally.
 #
 # Since: 11.2
 ##
qapi/qom.json +4 -7
index e03ede34421..2d0d0e47fbb 100644
@@ -1039,13 +1039,13 @@
 
 ##
 # @SevSnpGuestProperties:
-#
-# Properties for sev-snp-guest objects.  Most of these are direct
-# arguments for the KVM_SNP_* interfaces documented in the Linux
-# kernel source under
-# Documentation/arch/x86/amd-memory-encryption.rst, which are in turn
-# closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware commands
-# documented in the SEV-SNP Firmware ABI Specification (Rev 0.9).
+#     Properties for sev-snp-guest objects.  Most of these are direct
+#     arguments for the KVM_SNP_* interfaces documented in the Linux
+#     kernel source under
+#     Documentation/arch/x86/amd-memory-encryption.rst, which are in
Quoted 8 lines

qapi/qom.json line 1051

Quoted 6 lines
qapi/qom.json +3 -0
+#     turn closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware
+#     commands documented in the SEV-SNP Firmware ABI Specification
+#     (Rev 0.9).
 #
 # More usage information is also available in the QEMU source tree
 # under docs/amd-memory-encryption.

Hmm, shouldn't we split this one?

Quoted 5 lines

Looping back to stuff that got missed:

Split how? I think I have to rephrase this a bit, because when it gets inlined, it (might) be lacking the context of what specifically it refers to, i.e. "Most of these" might become ambiguous.

Yes.

Could s/these/the properties/ suffice for now?

##
# @SevSnpGuestProperties:
# Properties for sev-snp-guest objects.
#

  #     Most of the properties are direct arguments for the KVM_SNP_*
  #     interfaces documented in the Linux kernel source under
  #     Documentation/arch/x86/amd-memory-encryption.rst, which are in
  #     turn closely coupled with the SNP_INIT/SNP_LAUNCH_* firmware
  #     commands documented in the SEV-SNP Firmware ABI Specification
  #     (Rev 0.9).