vfio-pci: Don't use kvm_irqchip_in_kernel
commitd281084d3e51f03999d12a506491a0c6f31b40e8
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 10 Dec 2012 18:30:03 +0000 (10 11:30 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 10 Dec 2012 18:30:03 +0000 (10 11:30 -0700)
tree3ec28807482b18a2dbb6abf611d1afd1ee849c1b
parent1c97e303d4ea80a2691334b0febe87a50660f99d
vfio-pci: Don't use kvm_irqchip_in_kernel

kvm_irqchip_in_kernel() has an architecture specific meaning, so
we shouldn't be using it to determine whether to enabled KVM INTx
bypass.  kvm_irqfds_enabled() seems most appropriate.  Also use this
to protect our other call to kvm_check_extension() as that explodes
when KVM isn't enabled.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: qemu-stable@nongnu.org
hw/vfio_pci.c