]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: SVM: Pass through shadow stack MSRs as appropriate
authorJohn Allen <john.allen@amd.com>
Fri, 19 Sep 2025 22:32:45 +0000 (15:32 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 16:28:27 +0000 (09:28 -0700)
commit38c46bdbf99812a07a8a7ef48718f0a03acd8a8a
tree2a955a0cfd24f61ab74827f55df615c57c1f3a8f
parentc7586aa3bed4969cc7345940e5a331efd614f41d
KVM: SVM: Pass through shadow stack MSRs as appropriate

Pass through XSAVE managed CET MSRs on SVM when KVM supports shadow
stack. These cannot be intercepted without also intercepting XSAVE which
would likely cause unacceptable performance overhead.
MSR_IA32_INT_SSP_TAB is not managed by XSAVE, so it is intercepted.

Reviewed-by: Chao Gao <chao.gao@intel.com>
Signed-off-by: John Allen <john.allen@amd.com>
Link: https://lore.kernel.org/r/20250919223258.1604852-39-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c