Re: [PATCH v3 1/6] KVM: SVM: Move x2AVIC MSR interception helper to avic.c
From: Naveen N Rao
Date: Fri Sep 19 2025 - 05:39:27 EST
On Thu, Sep 18, 2025 at 05:21:31PM -0700, Sean Christopherson wrote:
> 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.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> ---
> arch/x86/kvm/svm/avic.c | 57 ++++++++++++++++++++++++++++++++++++++---
> arch/x86/kvm/svm/svm.c | 49 -----------------------------------
> arch/x86/kvm/svm/svm.h | 1 -
> 3 files changed, 54 insertions(+), 53 deletions(-)
Reviewed-by: Naveen N Rao (AMD) <naveen@xxxxxxxxxx>
- Naveen