Commit 8db428fd authored by John Allen's avatar John Allen Committed by Sean Christopherson
Browse files

KVM: SVM: Enable shadow stack virtualization for SVM



Remove the explicit clearing of shadow stack CPU capabilities.

Reviewed-by: default avatarChao Gao <chao.gao@intel.com>
Signed-off-by: default avatarJohn Allen <john.allen@amd.com>
Link: https://lore.kernel.org/r/20250919223258.1604852-41-seanjc@google.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent b5fa221f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -5263,10 +5263,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) */