]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SVM: Move x2AVIC MSR interception helper to avic.c
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 21:59:29 +0000 (14:59 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 15:56:46 +0000 (08:56 -0700)
commiteb44ea6a7aace13becd8d99905284ad272b3bd98
treeea8d5b79c88db7aa84a6f4c833a28702359f62ff
parent44bfe1f0490d5620c7962ab7384797672b4c4293
KVM: SVM: Move x2AVIC MSR interception helper to avic.c

Move svm_set_x2apic_msr_interception() to avic.c as it's only relevant
when x2AVIC is enabled/supported and only called by AVIC code.  In
addition to scoping AVIC code to avic.c, this will allow burying the
global x2avic_enabled variable in avic.

Opportunistically rename the helper to explicitly scope it to "avic".

No functional change intended.

Reviewed-by: Naveen N Rao (AMD) <naveen@kernel.org>
Tested-by: Naveen N Rao (AMD) <naveen@kernel.org>
Link: https://lore.kernel.org/r/20250919215934.1590410-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h