Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 900ab14c authored by David Hildenbrand's avatar David Hildenbrand Committed by Radim Krčmář
Browse files

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: default avatarDavid Hildenbrand <david@redhat.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent b5e7cf52
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -232,7 +232,7 @@ void kvm_free_irq_source_id(struct kvm *kvm, int irq_source_id)
		goto unlock;
		goto unlock;
	}
	}
	clear_bit(irq_source_id, &kvm->arch.irq_sources_bitmap);
	clear_bit(irq_source_id, &kvm->arch.irq_sources_bitmap);
	if (!ioapic_in_kernel(kvm))
	if (!irqchip_kernel(kvm))
		goto unlock;
		goto unlock;


	kvm_ioapic_clear_all(kvm->arch.vioapic, irq_source_id);
	kvm_ioapic_clear_all(kvm->arch.vioapic, irq_source_id);