This allows sharing the same PHB for both emulated and VFIO devices. This used to be a part of the Dynamic DMA window patchset. Since it was moved out and reworked quite a lot, all reviewed-by's got outdated.
This is based on dgibson/spapr-next sha1 f91ffef. Please comment. Thanks. Changes: v2: * fixed bus_offset * moved DMA setup to a spapr_phb_dma_reset() helper - DDW patches would add it anyway * verified that migration still works Alexey Kardashevskiy (2): spapr_pci_vfio: Remove redundant spapr-pci-vfio-host-bridge spapr_pci: Remove constraints about VFIO-PCI devices hw/ppc/Makefile.objs | 5 +- hw/ppc/spapr_pci.c | 195 +++++++++++++++++++++++++++----------------- hw/ppc/spapr_pci_vfio.c | 147 +++++++++++++-------------------- hw/vfio/common.c | 22 ++--- include/hw/pci-host/spapr.h | 23 +++--- include/hw/vfio/vfio.h | 3 +- 6 files changed, 195 insertions(+), 200 deletions(-) -- 2.4.0.rc3.8.gfb3e7d5