Re: [PATCH kernel] powerpc/iommu/ioda2: Enable compile with IOV=on and IOMMU_API=off

2015-06-17 Thread David Gibson
On Mon, Jun 15, 2015 at 05:49:59PM +1000, Alexey Kardashevskiy wrote: > The pnv_pci_ioda2_unset_window() function is used to do the final > cleanup of a DMA window being released: > - via VFIO ioctl by the guest request; > - via unplugging a virtual PCI function. > However the function was under

Re: [PATCH kernel] powerpc/iommu/ioda2: Enable compile with IOV=on and IOMMU_API=off

2015-06-17 Thread David Gibson
On Mon, Jun 15, 2015 at 05:49:59PM +1000, Alexey Kardashevskiy wrote: The pnv_pci_ioda2_unset_window() function is used to do the final cleanup of a DMA window being released: - via VFIO ioctl by the guest request; - via unplugging a virtual PCI function. However the function was under #ifdef

Re: [PATCH kernel] powerpc/iommu/ioda2: Enable compile with IOV=on and IOMMU_API=off

2015-06-15 Thread David Gibson
On Mon, Jun 15, 2015 at 05:49:59PM +1000, Alexey Kardashevskiy wrote: > The pnv_pci_ioda2_unset_window() function is used to do the final > cleanup of a DMA window being released: > - via VFIO ioctl by the guest request; > - via unplugging a virtual PCI function. > However the function was under

[PATCH kernel] powerpc/iommu/ioda2: Enable compile with IOV=on and IOMMU_API=off

2015-06-15 Thread Alexey Kardashevskiy
The pnv_pci_ioda2_unset_window() function is used to do the final cleanup of a DMA window being released: - via VFIO ioctl by the guest request; - via unplugging a virtual PCI function. However the function was under #ifdef CONFIG_IOMMU_API and was missing. This moves the helper outside of

Re: [PATCH kernel] powerpc/iommu/ioda2: Enable compile with IOV=on and IOMMU_API=off

2015-06-15 Thread David Gibson
On Mon, Jun 15, 2015 at 05:49:59PM +1000, Alexey Kardashevskiy wrote: The pnv_pci_ioda2_unset_window() function is used to do the final cleanup of a DMA window being released: - via VFIO ioctl by the guest request; - via unplugging a virtual PCI function. However the function was under #ifdef

[PATCH kernel] powerpc/iommu/ioda2: Enable compile with IOV=on and IOMMU_API=off

2015-06-15 Thread Alexey Kardashevskiy
The pnv_pci_ioda2_unset_window() function is used to do the final cleanup of a DMA window being released: - via VFIO ioctl by the guest request; - via unplugging a virtual PCI function. However the function was under #ifdef CONFIG_IOMMU_API and was missing. This moves the helper outside of