This patch series represents a third attempt at better integration of the vfio code with qemu's handling of guest IOMMUs. David posted two previous series, I am posting now his rework after last posting.
This also contains a working VFIO driver for QEMU which depends on MSIX rework and IRQFD patches (which are not in upstream yet) and won't work as isbut I am pretty sure there is still enough to discuss :) Thanks! Alexey Kardashevskiy (4): vfio: Add guest side IOMMU support spapr vfio: add vfio_container_spapr_get_info() spapr vfio: add spapr-pci-vfio-host-bridge to support vfio spapr vfio: enable for spapr David Gibson (4): pci: Introduce helper to retrieve a PCI device's DMA address space memory: Sanity check that no listeners remain on a destroyed AddressSpace vfio: Introduce VFIO address spaces vfio: Create VFIOAddressSpace objects as needed hw/misc/vfio.c | 300 +++++++++++++++++++++++++++++++++++++++----- hw/pci/pci.c | 9 +- hw/ppc/spapr_iommu.c | 176 ++++++++++++++++++++++---- hw/ppc/spapr_pci.c | 209 +++++++++++++++++++++++++++--- include/hw/misc/vfio.h | 11 ++ include/hw/pci-host/spapr.h | 12 ++ include/hw/pci/pci.h | 1 + include/hw/ppc/spapr.h | 19 +++ memory.c | 7 ++ target-ppc/kvm.c | 33 +++++ target-ppc/kvm_ppc.h | 12 ++ trace-events | 4 + 12 files changed, 724 insertions(+), 69 deletions(-) create mode 100644 include/hw/misc/vfio.h -- 1.8.3.2