KVM: SVM: Simplify MSR interception logic for IA32_XSS MSR
authorChao Gao <chao.gao@intel.com>
Thu, 12 Jun 2025 08:19:47 +0000 (01:19 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 25 Jun 2025 16:47:28 +0000 (09:47 -0700)
commit05186d7a8e5b8a31be93728089c9c3fee4dab0a2
tree1f27a17905d8881ab63ec9fdfa8cb6d30d4df7bd
parent3f06b8927afa3cede5c2e70ee76659d4801e4667
KVM: SVM: Simplify MSR interception logic for IA32_XSS MSR

Use svm_set_intercept_for_msr() directly to configure IA32_XSS MSR
interception, ensuring consistency with other cases where MSRs are
intercepted depending on guest caps and CPUIDs.

No functional change intended.

Signed-off-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Link: https://lore.kernel.org/r/20250612081947.94081-3-chao.gao@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c