Yet another try with VFIO on SPAPR (server PPC64). This adds VFIO support on SPAPR for the existing VFIO-SPAPR-TCE driver in the upstream kernel.
Individual patches have more detailed commit logs. While patch #1 is questionable, others are pretty much ready to but I do not know via which maintainer tree - Alex or Alex? :) Please comment. Thanks! Changes: v7: * cleaned and rebased on agraf/ppc-next tree (which is on its way to upstream) v6: * initial set was split into 3 v5: * rebase on top of the current upstream v4: * addressed all comments from Alex Williamson * moved spapr-pci-phb-vfio-phb to new file * split spapr-pci-phb-vfio to many smaller patches Alexey Kardashevskiy (4): spapr_iommu: Make in-kernel TCE table optional vfio: Add vfio_container_spapr_get_info() spapr_pci_vfio: Add spapr-pci-vfio-host-bridge to support vfio vfio: Enable for spapr hw/misc/vfio.c | 64 +++++++++++++++++++++++++++++++ hw/ppc/Makefile.objs | 3 ++ hw/ppc/spapr_iommu.c | 6 ++- hw/ppc/spapr_pci.c | 2 +- hw/ppc/spapr_pci_vfio.c | 93 +++++++++++++++++++++++++++++++++++++++++++++ hw/ppc/spapr_vio.c | 2 +- include/hw/misc/vfio.h | 11 ++++++ include/hw/pci-host/spapr.h | 11 ++++++ include/hw/ppc/spapr.h | 4 +- 9 files changed, 191 insertions(+), 5 deletions(-) create mode 100644 hw/ppc/spapr_pci_vfio.c create mode 100644 include/hw/misc/vfio.h -- 2.0.0