]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Move kvm_set_apic_base() implementation to lapic.c (from x86.c)
authorSean Christopherson <seanjc@google.com>
Fri, 1 Nov 2024 18:35:51 +0000 (11:35 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 5 Nov 2024 04:57:46 +0000 (20:57 -0800)
commitc9c9acfcd5738fb292e670a582e4333a1187004c
treede9ea7becf99e9a6feebf88c4e0c3222667588d4
parentadfec1f4591cf8c69664104eaf41e06b2e7b767e
KVM: x86: Move kvm_set_apic_base() implementation to lapic.c (from x86.c)

Move kvm_set_apic_base() to lapic.c so that the bulk of KVM's local APIC
code resides in lapic.c, regardless of whether or not KVM is emulating the
local APIC in-kernel.  This will also allow making various helpers visible
only to lapic.c.

No functional change intended.

Reviewed-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20241009181742.1128779-6-seanjc@google.com
Link: https://lore.kernel.org/r/20241101183555.1794700-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/x86.c