public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: SEV: Add support for the ALLOWED_SEV_FEATURES feature
@ 2024-08-02  1:57 Kim Phillips
  2024-08-02  1:57 ` [PATCH 1/2] x86/cpufeatures: Add "Allowed SEV Features" Feature Kim Phillips
  2024-08-02  1:57 ` [PATCH 2/2] KVM: SEV: Configure "ALLOWED_SEV_FEATURES" VMCB Field Kim Phillips
  0 siblings, 2 replies; 10+ messages in thread
From: Kim Phillips @ 2024-08-02  1:57 UTC (permalink / raw)
  To: kvm, linux-kernel, x86
  Cc: Tom Lendacky, Michael Roth, Ashish Kalra, Nikunj A Dadhania,
	Borislav Petkov, Dave Hansen, Sean Christopherson, Paolo Bonzini,
	Ingo Molnar, H. Peter Anvin, Thomas Gleixner, Kim Phillips

AMD EPYC 5th generation processors have introduced a feature that allows
the hypervisor to control the SEV_FEATURES that are set for or by a
guest. The ALLOWED_SEV_FEATURES can be used by the hypervisor to enforce
that SEV-ES and SEV-SNP guests cannot enable features that the
hypervisor does not want to be enabled.

Patch 1 adds support to detect the feature.

Patch 2 configures the ALLOWED_SEV_FEATURES field in the VMCB
according to the features the hypervisor supports.

Based on tip/master commit a2767e7f31ad ("Merge branch into tip/master: 'x86/timers'")

Kishon Vijay Abraham I (2):
  x86/cpufeatures: Add "Allowed SEV Features" Feature
  KVM: SEV: Configure "ALLOWED_SEV_FEATURES" VMCB Field

 arch/x86/include/asm/cpufeatures.h | 1 +
 arch/x86/include/asm/svm.h         | 6 +++++-
 arch/x86/kvm/svm/sev.c             | 5 +++++
 3 files changed, 11 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-08-20 16:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-02  1:57 [PATCH 0/2] KVM: SEV: Add support for the ALLOWED_SEV_FEATURES feature Kim Phillips
2024-08-02  1:57 ` [PATCH 1/2] x86/cpufeatures: Add "Allowed SEV Features" Feature Kim Phillips
2024-08-07 16:06   ` Thomas Gleixner
2024-08-02  1:57 ` [PATCH 2/2] KVM: SEV: Configure "ALLOWED_SEV_FEATURES" VMCB Field Kim Phillips
2024-08-09  9:34   ` Nikunj A. Dadhania
2024-08-16 22:59   ` Sean Christopherson
2024-08-19 21:38     ` Kim Phillips
2024-08-19 22:23       ` Sean Christopherson
2024-08-20 15:26         ` Kim Phillips
2024-08-20 16:12           ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox