Re: [Qemu-devel] [PATCH for-1.3] vfio-pci: Fix KVM disabled path

2012-11-30 Thread Alex Williamson
On Fri, 2012-11-30 at 18:57 +, Peter Maydell wrote: > On 27 November 2012 19:45, Alex Williamson wrote: > > kvm_check_extension() explodes when KVM isn't enabled so we need to > > first test whether KVM is enabled. Use kvm_irqchip_in_kernel() for > > this since it matches the test we do befor

Re: [Qemu-devel] [PATCH for-1.3] vfio-pci: Fix KVM disabled path

2012-11-30 Thread Peter Maydell
On 27 November 2012 19:45, Alex Williamson wrote: > kvm_check_extension() explodes when KVM isn't enabled so we need to > first test whether KVM is enabled. Use kvm_irqchip_in_kernel() for > this since it matches the test we do before using this result. > --- a/hw/vfio_pci.c > +++ b/hw/vfio_pci.

[Qemu-devel] [PATCH for-1.3] vfio-pci: Fix KVM disabled path

2012-11-27 Thread Alex Williamson
kvm_check_extension() explodes when KVM isn't enabled so we need to first test whether KVM is enabled. Use kvm_irqchip_in_kernel() for this since it matches the test we do before using this result. Signed-off-by: Alex Williamson --- hw/vfio_pci.c |3 ++- 1 file changed, 2 insertions(+), 1 d