]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Get vcpu->arch.apic_base directly and drop kvm_get_apic_base()
authorSean Christopherson <seanjc@google.com>
Fri, 1 Nov 2024 18:35:49 +0000 (11:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:30:14 +0000 (04:30 -0800)
commit2356acd8aa1dd9dd1ec27b45585cd923acb02ba5
treeacd5b5fca3217d769f4714fb53ab3fba7f974bec
parent2627661c31ba53dd3b813d852f2d56dec78ab028
KVM: x86: Get vcpu->arch.apic_base directly and drop kvm_get_apic_base()

[ Upstream commit d91060e342a66b52d9bd64f0b123b9c306293b76 ]

Access KVM's emulated APIC base MSR value directly instead of bouncing
through a helper, as there is no reason to add a layer of indirection, and
there are other MSRs with a "set" but no "get", e.g. EFER.

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-4-seanjc@google.com
Link: https://lore.kernel.org/r/20241101183555.1794700-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Stable-dep-of: 04bc93cf49d1 ("KVM: nVMX: Defer SVI update to vmcs01 on EOI when L2 is active w/o VID")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/lapic.h
arch/x86/kvm/x86.c