[PATCH v16 40/51] KVM: SVM: Enable shadow stack virtualization for SVM

Sean Christopherson
2025-09-19T22:34:17Z

From: John Allen <john.allen@amd.com>

Remove the explicit clearing of shadow stack CPU capabilities.

Reviewed-by: Chao Gao <chao.gao@intel.com>
Signed-off-by: John Allen <john.allen@amd.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
---
arch/x86/kvm/svm/svm.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
index d48bf20c865b..54ca0ec5ea57 100644
--- a/arch/x86/kvm/svm/svm.c
+++ b/arch/x86/kvm/svm/svm.c
@@ -5262,10 +5262,7 @@ static __init void svm_set_cpu_caps(void)
kvm_set_cpu_caps();

kvm_caps.supported_perf_cap = 0;
- kvm_caps.supported_xss = 0;

- /* KVM doesn't yet support CET virtualization for SVM. */
- kvm_cpu_cap_clear(X86_FEATURE_SHSTK);
kvm_cpu_cap_clear(X86_FEATURE_IBT);

/* CPUID 0x80000001 and 0x8000000A (SVM features) */
--
2.51.0.470.ga7dc726c21-goog