]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: SVM: Update "APICv in x2APIC without x2AVIC" in avic.c, not svm.c
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 21:59:30 +0000 (14:59 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 15:56:46 +0000 (08:56 -0700)
commita9095e4fc4368052593c84472a8d374fefd3df71
tree4494ca7de20faf918372f63e25826c0b00c7e68d
parenteb44ea6a7aace13becd8d99905284ad272b3bd98
KVM: SVM: Update "APICv in x2APIC without x2AVIC" in avic.c, not svm.c

Set the "allow_apicv_in_x2apic_without_x2apic_virtualization" flag as part
of avic_hardware_setup() instead of handling in svm_hardware_setup(), and
make x2avic_enabled local to avic.c (setting the flag was the only use in
svm.c).

Tag avic_hardware_setup() with __init as necessary (it should have been
tagged __init long ago).

No functional change intended (aside from the side effects of tagging
avic_hardware_setup() with __init).

Acked-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-4-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