Re: [Qemu-devel] [RFC PATCH 02/14] spapr_pci: Switch EEH to vfio_eeh_op() interface

2015-09-23 Thread Alex Williamson
On Sat, 2015-09-19 at 17:18 +1000, David Gibson wrote: > This switches all EEH on VFIO operations in spapr_pci_vfio() from the old > broken vfio_container_ioctl() interface to the new vfio_eeh_op() interface. > > In order to obtain the VFIOGroup * handle that vfio_eeh_op() requires, we > add a hel

[Qemu-devel] [RFC PATCH 02/14] spapr_pci: Switch EEH to vfio_eeh_op() interface

2015-09-19 Thread David Gibson
This switches all EEH on VFIO operations in spapr_pci_vfio() from the old broken vfio_container_ioctl() interface to the new vfio_eeh_op() interface. In order to obtain the VFIOGroup * handle that vfio_eeh_op() requires, we add a helper function spapr_phb_check_vfio_group(). It gets the group fro