[PATCH V2] vfio: platform: support No-IOMMU mode

2016-05-23 Thread Peng Fan
The vfio No-IOMMU mode was supported by this 'commit 03a76b60f8ba2797 ("vfio: Include No-IOMMU mode")', but it only support vfio-pci. Using vfio_iommu_group_get/put, but not iommu_group_get/put, the platform devices can be exposed to userspace with CONFIG_VFIO_NOIOMMU and the "enable_unsafe_noiomm

Re: [PATCH V2] vfio: platform: support No-IOMMU mode

2016-05-23 Thread Eric Auger
Hi Peng, On 05/23/2016 10:14 AM, Peng Fan wrote: > The vfio No-IOMMU mode was supported by this > 'commit 03a76b60f8ba2797 ("vfio: Include No-IOMMU mode")', > but it only support vfio-pci. > > Using vfio_iommu_group_get/put, but not iommu_group_get/put, > the platform devices can be exposed to use

Re: [PATCH V2] vfio: platform: support No-IOMMU mode

2016-05-23 Thread Peng Fan
Hi Eric, On Mon, May 23, 2016 at 10:59:24AM +0200, Eric Auger wrote: >Hi Peng, >On 05/23/2016 10:14 AM, Peng Fan wrote: >> The vfio No-IOMMU mode was supported by this >> 'commit 03a76b60f8ba2797 ("vfio: Include No-IOMMU mode")', >> but it only support vfio-pci. >> >> Using vfio_iommu_group_get/p