* [PATCH 0/1] qom: Really add 'confidential-guest-reset' feature
@ 2026-11-24 15:43 Markus Armbruster
2026-11-24 15:43 ` [PATCH 1/1] " Markus Armbruster
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Markus Armbruster @ 2026-11-24 15:43 UTC (permalink / raw)
To: qemu-devel; +Cc: anisinha, berrange, pbonzini
Feature 'confidential-guest-reset' was added two releases ago broken.
Nobody noticed so far. My patch fixes it, but I wonder whether we
should just drop the feature entirely.
Either way, is it worth doing for 11.2? I'm leaning towards yes.
Opinions?
Markus Armbruster (1):
qom: Really add 'confidential-guest-reset' feature
qapi/qom.json | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
--
2.55.0
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH 1/1] qom: Really add 'confidential-guest-reset' feature 2026-11-24 15:43 [PATCH 0/1] qom: Really add 'confidential-guest-reset' feature Markus Armbruster @ 2026-11-24 15:43 ` Markus Armbruster 2026-11-26 9:08 ` Daniel P. Berrangé 2026-11-26 8:12 ` [PATCH 0/1] " Markus Armbruster 2026-11-27 10:00 ` Markus Armbruster 2 siblings, 1 reply; 7+ messages in thread From: Markus Armbruster @ 2026-11-24 15:43 UTC (permalink / raw) To: qemu-devel; +Cc: anisinha, berrange, pbonzini 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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] qom: Really add 'confidential-guest-reset' feature 2026-11-24 15:43 ` [PATCH 1/1] " Markus Armbruster @ 2026-11-26 9:08 ` Daniel P. Berrangé 2026-11-26 10:11 ` Ani Sinha 0 siblings, 1 reply; 7+ messages in thread From: Daniel P. Berrangé @ 2026-11-26 9:08 UTC (permalink / raw) To: Markus Armbruster; +Cc: qemu-devel, anisinha, pbonzini On Tue, Nov 24, 2026 at 04:43:10PM +0100, Markus Armbruster wrote: > 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(-) Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> I presume that we ultimately either want to fix the generator, or at least have it emit a warning if a feature is set on something that is used as a base struct, but obviously not for 11.2 freeze. > > 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 > With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :| ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] qom: Really add 'confidential-guest-reset' feature 2026-11-26 9:08 ` Daniel P. Berrangé @ 2026-11-26 10:11 ` Ani Sinha 0 siblings, 0 replies; 7+ messages in thread From: Ani Sinha @ 2026-11-26 10:11 UTC (permalink / raw) To: "Daniel P. Berrangé" Cc: Markus Armbruster, qemu-devel, Paolo Bonzini > On 26 Nov 2026, at 2:38 PM, Daniel P. Berrangé <berrange@redhat.com> wrote: > > On Tue, Nov 24, 2026 at 04:43:10PM +0100, Markus Armbruster wrote: >> 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(-) > > Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Acked-by: Ani Sinha <anisinha@redhat.com> > > > I presume that we ultimately either want to fix the generator, > or at least have it emit a warning if a feature is set on > something that is used as a base struct, but obviously not > for 11.2 freeze. > >> >> 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 >> > > With regards, > Daniel > -- > |: https://berrange.com ~~ https://hachyderm.io/@berrange :| > |: https://libvirt.org ~~ https://entangle-photo.org :| > |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :| ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/1] qom: Really add 'confidential-guest-reset' feature 2026-11-24 15:43 [PATCH 0/1] qom: Really add 'confidential-guest-reset' feature Markus Armbruster 2026-11-24 15:43 ` [PATCH 1/1] " Markus Armbruster @ 2026-11-26 8:12 ` Markus Armbruster 2026-11-26 10:09 ` Ani Sinha 2026-11-27 10:00 ` Markus Armbruster 2 siblings, 1 reply; 7+ messages in thread From: Markus Armbruster @ 2026-11-26 8:12 UTC (permalink / raw) To: qemu-devel; +Cc: anisinha, berrange, pbonzini Ping for 11.2.0-rc3 Markus Armbruster <armbru@redhat.com> writes: > Feature 'confidential-guest-reset' was added two releases ago broken. > Nobody noticed so far. My patch fixes it, but I wonder whether we > should just drop the feature entirely. > > Either way, is it worth doing for 11.2? I'm leaning towards yes. > > Opinions? > > > Markus Armbruster (1): > qom: Really add 'confidential-guest-reset' feature > > qapi/qom.json | 24 +++++++++++++++--------- > 1 file changed, 15 insertions(+), 9 deletions(-) ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/1] qom: Really add 'confidential-guest-reset' feature 2026-11-26 8:12 ` [PATCH 0/1] " Markus Armbruster @ 2026-11-26 10:09 ` Ani Sinha 0 siblings, 0 replies; 7+ messages in thread From: Ani Sinha @ 2026-11-26 10:09 UTC (permalink / raw) To: Markus Armbruster; +Cc: qemu-devel, Daniel Berrange, Paolo Bonzini > On 26 Nov 2026, at 1:42 PM, Markus Armbruster <armbru@redhat.com> wrote: > > Ping for 11.2.0-rc3 > > Markus Armbruster <armbru@redhat.com> writes: > >> Feature 'confidential-guest-reset' was added two releases ago broken. >> Nobody noticed so far. My patch fixes it, but I wonder whether we >> should just drop the feature entirely. >> >> Either way, is it worth doing for 11.2? I'm leaning towards yes. Let’s just fix what is broken. I suppose libvirt side has not been changed to look for this QEMU feature. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/1] qom: Really add 'confidential-guest-reset' feature 2026-11-24 15:43 [PATCH 0/1] qom: Really add 'confidential-guest-reset' feature Markus Armbruster 2026-11-24 15:43 ` [PATCH 1/1] " Markus Armbruster 2026-11-26 8:12 ` [PATCH 0/1] " Markus Armbruster @ 2026-11-27 10:00 ` Markus Armbruster 2 siblings, 0 replies; 7+ messages in thread From: Markus Armbruster @ 2026-11-27 10:00 UTC (permalink / raw) To: qemu-devel; +Cc: anisinha, berrange, pbonzini Markus Armbruster <armbru@redhat.com> writes: > Feature 'confidential-guest-reset' was added two releases ago broken. > Nobody noticed so far. My patch fixes it, but I wonder whether we > should just drop the feature entirely. > > Either way, is it worth doing for 11.2? I'm leaning towards yes. > > Opinions? Queued for 11.2. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-11-27 10:00 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-24 15:43 [PATCH 0/1] qom: Really add 'confidential-guest-reset' feature Markus Armbruster 2026-11-24 15:43 ` [PATCH 1/1] " Markus Armbruster 2026-11-26 9:08 ` 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
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.