From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuEml-0000Gh-2E for qemu-devel@nongnu.org; Tue, 10 Jun 2014 01:40:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuEmZ-0007Kk-Qf for qemu-devel@nongnu.org; Tue, 10 Jun 2014 01:39:51 -0400 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:42721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuEmZ-0007Jp-2U for qemu-devel@nongnu.org; Tue, 10 Jun 2014 01:39:39 -0400 Received: from /spool/local by e23smtp07.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Jun 2014 15:39:31 +1000 From: Alexey Kardashevskiy Date: Tue, 10 Jun 2014 15:39:20 +1000 Message-Id: <1402378764-1870-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v9 0/4] vfio on spapr-ppc64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Alex Williamson , qemu-ppc@nongnu.org, Alexander Graf , Gavin Shan 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. Please comment. Thanks! Changes: v9: * fixed comments about VFIO_IOMMU_DISABLE * added checking stub for container fd ioctls v8: * added placeholder for KVM_CAP_SPAPR_TCE_VFIO capability * added generic helper to call ioctl on container's fd. 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_ioctl() spapr_pci_vfio: Add spapr-pci-vfio-host-bridge to support vfio vfio: Enable for SPAPR hw/misc/vfio.c | 78 +++++++++++++++++++++++++++++++++ hw/ppc/Makefile.objs | 3 ++ hw/ppc/spapr_iommu.c | 7 ++- hw/ppc/spapr_pci.c | 2 +- hw/ppc/spapr_pci_vfio.c | 102 ++++++++++++++++++++++++++++++++++++++++++++ hw/ppc/spapr_vio.c | 2 +- include/hw/misc/vfio.h | 9 ++++ include/hw/pci-host/spapr.h | 11 +++++ include/hw/ppc/spapr.h | 4 +- target-ppc/kvm.c | 7 ++- target-ppc/kvm_ppc.h | 6 ++- 11 files changed, 222 insertions(+), 9 deletions(-) create mode 100644 hw/ppc/spapr_pci_vfio.c create mode 100644 include/hw/misc/vfio.h -- 2.0.0