]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Use lapic_in_kernel() to query in-kernel APIC in APICv helper
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 23:05:48 +0000 (23:05 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jun 2022 10:21:25 +0000 (06:21 -0400)
commiteb9ec4279b4f8305c5df7bfd5c079086657d23f7
tree851b334053b21767ae6a922aaad65f4a2a93d137
parent47e22df2f25f748756dcb6a7ae879ac10dfb9057
KVM: x86: Use lapic_in_kernel() to query in-kernel APIC in APICv helper

Use lapic_in_kernel() in kvm_vcpu_apicv_active() to take advantage of the
kvm_has_noapic_vcpu static branch.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220614230548.3852141-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.h