summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2017-04-07 10:50:41 +0200
committerRadim Krčmář <rkrcmar@redhat.com>2017-04-12 20:17:15 +0200
commit900ab14ca93dce3f95fdb2bd9c4b654d4d5f2571 (patch)
tree0f0812c33af71e599e983310d67d696a1448b1fe /arch/x86/kvm
parentb5e7cf52e102d267646af0ea3dc10a4fd4e51b7d (diff)
downloadlinux-900ab14ca93dce3f95fdb2bd9c4b654d4d5f2571.tar.gz
linux-900ab14ca93dce3f95fdb2bd9c4b654d4d5f2571.tar.bz2
linux-900ab14ca93dce3f95fdb2bd9c4b654d4d5f2571.zip
KVM: x86: use irqchip_kernel() to check for pic+ioapic
Although the current check is not wrong, this check explicitly includes the pic. Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/irq_comm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/irq_comm.c b/arch/x86/kvm/irq_comm.c
index d71f7a7fd5c9..4517a4c2ac3a 100644
--- a/arch/x86/kvm/irq_comm.c
+++ b/arch/x86/kvm/irq_comm.c
@@ -232,7 +232,7 @@ void kvm_free_irq_source_id(struct kvm *kvm, int irq_source_id)
goto unlock;
}
clear_bit(irq_source_id, &kvm->arch.irq_sources_bitmap);
- if (!ioapic_in_kernel(kvm))
+ if (!irqchip_kernel(kvm))
goto unlock;
kvm_ioapic_clear_all(kvm->arch.vioapic, irq_source_id);