From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Cc: anisinha@redhat.com, berrange@redhat.com, pbonzini@redhat.com
Subject: [PATCH 1/1] qom: Really add 'confidential-guest-reset' feature
Date: Tue, 24 Nov 2026 16:43:10 +0100 [thread overview]
Message-ID: <20261124154310.2569390-2-armbru@redhat.com> (raw)
In-Reply-To: <20261124154310.2569390-1-armbru@redhat.com>
Commit a9b328611143 added feature 'confidential-guest-reset' to
SevCommonProperties and to TdxGuestProperties. The commit message
states the intent as "control plane should be able to detect if the
hypervisor supports x86 confidential guest resets."
Management applications ("control plane") would check whether the
relevant argument type of QMP command object-add has the feature. The
relevant types are SevGuestProperties, SevSnpGuestProperties, and
TdxGuestProperties.
Only TdxGuestProperties has the feature. The other two have base type
SevCommonProperties, but a type only inherits its base's members, and
not its features or conditions.
Fix by moving the feature from SevCommonProperties to
SevGuestProperties and SevSnpGuestProperties.
Fixes: a9b328611143 ("qom: add 'confidential-guest-reset' property for x86 confidential vms")
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
qapi/qom.json | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/qapi/qom.json b/qapi/qom.json
index 32a59269361..b8237a94be0 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -1004,11 +1004,6 @@
# only supported on SEV-ES and SEV-SNP guests
# (default: false) (since 11.1)
#
-# Features:
-#
-# @confidential-guest-reset: If present, the hypervisor supports
-# confidential guest resets (since 11.0).
-#
# Since: 9.1
##
{ 'struct': 'SevCommonProperties',
@@ -1016,8 +1011,7 @@
'*cbitpos': 'uint32',
'reduced-phys-bits': 'uint32',
'*kernel-hashes': 'bool',
- '*debug-swap': 'bool' },
- 'features': ['confidential-guest-reset']}
+ '*debug-swap': 'bool' } }
##
# @SevGuestProperties:
@@ -1042,6 +1036,11 @@
# that require it. If set to 'off', QEMU will require
# KVM_SEV_INIT2 unconditionally. (default: off) (since 9.1)
#
+# Features:
+#
+# @confidential-guest-reset: If present, the hypervisor supports
+# confidential guest resets (since 11.0).
+#
# Since: 2.12
##
{ 'struct': 'SevGuestProperties',
@@ -1050,7 +1049,8 @@
'*session-file': 'str',
'*policy': 'uint32',
'*handle': 'uint32',
- '*legacy-vm-type': 'OnOffAuto' } }
+ '*legacy-vm-type': 'OnOffAuto' },
+ 'features': [ 'confidential-guest-reset' ] }
##
# @SevSnpGuestProperties:
@@ -1101,6 +1101,11 @@
# @tsc-frequency: set secure TSC frequency. Only valid if Secure TSC
# is enabled (default: zero) (since 11.1)
#
+# Features:
+#
+# @confidential-guest-reset: If present, the hypervisor supports
+# confidential guest resets (since 11.0).
+#
# Since: 9.1
##
{ 'struct': 'SevSnpGuestProperties',
@@ -1114,7 +1119,8 @@
'*host-data': 'str',
'*vcek-disabled': 'bool',
'*secure-tsc': 'bool',
- '*tsc-frequency': 'uint32' } }
+ '*tsc-frequency': 'uint32' },
+ 'features': [ 'confidential-guest-reset' ] }
##
# @TdxGuestProperties:
--
2.55.0
next prev parent reply other threads:[~2026-11-24 15:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 15:43 [PATCH 0/1] qom: Really add 'confidential-guest-reset' feature Markus Armbruster
2026-11-24 15:43 ` Markus Armbruster [this message]
2026-11-26 9:08 ` [PATCH 1/1] " Daniel P. Berrangé
2026-11-26 10:11 ` Ani Sinha
2026-11-26 8:12 ` [PATCH 0/1] " Markus Armbruster
2026-11-26 10:09 ` Ani Sinha
2026-11-27 10:00 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124154310.2569390-2-armbru@redhat.com \
--to=armbru@redhat.com \
--cc=anisinha@redhat.com \
--cc=berrange@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.