summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/lapic.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-06-15 02:05:46 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-20 13:21:23 +0300
commitae801e1303e939ad5ebd9f390bdcc57275ada33b (patch)
tree01602dc57628dab99ad2a6f5623ef19355c9affc /arch/x86/kvm/lapic.c
parentd39850f57d2102c6b46feb21237bc23bc42de4f7 (diff)
downloadlinux-ae801e1303e939ad5ebd9f390bdcc57275ada33b.tar.xz
KVM: x86: Check for in-kernel xAPIC when querying APICv for directed yield
Use kvm_vcpu_apicv_active() to check if APICv is active when seeing if a vCPU is a candidate for directed yield due to a pending ACPIv interrupt. This will allow moving apicv_active into kvm_lapic without introducing a potential NULL pointer deref (kvm_vcpu_apicv_active() effectively adds a pre-check on the vCPU having an in-kernel APIC). No functional change intended. Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20220614230548.3852141-4-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
0 files changed, 0 insertions, 0 deletions