]> www.infradead.org Git - users/jedix/linux-maple.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)
committerSean Christopherson <seanjc@google.com>
Tue, 5 Nov 2024 04:57:45 +0000 (20:57 -0800)
commitd91060e342a66b52d9bd64f0b123b9c306293b76
tree9d5412601a23bfb7f9b3a58933444a8147aa4988
parent8166d25579120590ad0ec4ece02afd00a3c54f6a
KVM: x86: Get vcpu->arch.apic_base directly and drop kvm_get_apic_base()

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>
arch/x86/kvm/lapic.h
arch/x86/kvm/x86.c