]> xenbits.xensource.com Git - qemu-upstream-4.3-testing.git/commit
vfio-pci: Don't use kvm_irqchip_in_kernel
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 10 Dec 2012 18:30:03 +0000 (11:30 -0700)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 14 Jan 2013 21:45:06 +0000 (15:45 -0600)
commit37e1428cc7968675a3fbb4048e869c8080023f5a
tree3e0d21fc1fd7ac23f20d27d5e2cb512a91bc4830
parent518799a3e796cc39dd2d22c56b67d7456506d74a
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
(cherry picked from commit d281084d3e51f03999d12a506491a0c6f31b40e8)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/vfio_pci.c