]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Inline kvm_get_apic_mode() in lapic.h
authorSean Christopherson <seanjc@google.com>
Fri, 1 Nov 2024 18:35:50 +0000 (11:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:30:14 +0000 (04:30 -0800)
commit9d5034a35c3adc76a1c937fdf88e54cf70ac490d
treebe0dd21d8af27aba0cc1d17a64716b31618dbc3e
parent2356acd8aa1dd9dd1ec27b45585cd923acb02ba5
KVM: x86: Inline kvm_get_apic_mode() in lapic.h

[ Upstream commit adfec1f4591cf8c69664104eaf41e06b2e7b767e ]

Inline kvm_get_apic_mode() in lapic.h to avoid a CALL+RET as well as an
export.  The underlying kvm_apic_mode() helper is public information, i.e.
there is no state/information that needs to be hidden from vendor modules.

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-5-seanjc@google.com
Link: https://lore.kernel.org/r/20241101183555.1794700-5-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