[PATCH v4 5/5] KVM: SVM: Enable shadow stack virtualization for SVM

From: John Allen

Date: Mon Sep 08 2025 - 16:19:46 EST


Remove the explicit clearing of shadow stack CPU capabilities.

Reviewed-by: Chao Gao <chao.gao@xxxxxxxxx>
Signed-off-by: John Allen <john.allen@xxxxxxx>
---
v4:
- Don't remove clearing of IBT feature.
---
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 b18573b530aa..304531d6c8b0 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.47.3