]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SVM: Move core EFER.SVME enablement to kernel
authorSean Christopherson <seanjc@google.com>
Sat, 14 Feb 2026 01:26:53 +0000 (17:26 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 4 Mar 2026 16:52:45 +0000 (08:52 -0800)
commit32d76cdfa1222c88262da5b12e0b2bba444c96fa
tree413c0a05a72060cb48a69a0ad4348964610b9740
parent920da4f75519a3fa3fe2fc25458445b561653610
KVM: SVM: Move core EFER.SVME enablement to kernel

Move the innermost EFER.SVME logic out of KVM and into to core x86 to land
the SVM support alongside VMX support.  This will allow providing a more
unified API from the kernel to KVM, and will allow moving the bulk of the
emergency disabling insanity out of KVM without having a weird split
between kernel and KVM for SVM vs. VMX.

No functional change intended.

Tested-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Tested-by: Sagi Shahar <sagis@google.com>
Link: https://patch.msgid.link/20260214012702.2368778-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/virt.h
arch/x86/kvm/svm/svm.c
arch/x86/virt/hw.c