Re: [PATCH v6 00/11] Fix BUG_ON in vfio_iommu_group_notifier()

2022-02-27 Thread Lu Baolu
On 2/18/22 8:55 AM, Lu Baolu wrote: v6: - Refine comments and commit mesages. - Rename iommu_group_set_dma_owner() to iommu_group_claim_dma_owner(). - Rename iommu_device_use/unuse_kernel_dma() to iommu_device_use/unuse_default_domain(). - Remove unnecessary EXPORT_SYMBOL_GPL.

Re: [PATCH v6 00/11] Fix BUG_ON in vfio_iommu_group_notifier()

2022-02-20 Thread Lu Baolu
On 2/18/22 11:51 PM, Jason Gunthorpe wrote: On Fri, Feb 18, 2022 at 08:55:10AM +0800, Lu Baolu wrote: Hi folks, The iommu group is the minimal isolation boundary for DMA. Devices in a group can access each other's MMIO registers via peer to peer DMA and also need share the same I/O address spac

Re: [PATCH v6 00/11] Fix BUG_ON in vfio_iommu_group_notifier()

2022-02-18 Thread Jason Gunthorpe via iommu
On Fri, Feb 18, 2022 at 08:55:10AM +0800, Lu Baolu wrote: > Hi folks, > > The iommu group is the minimal isolation boundary for DMA. Devices in > a group can access each other's MMIO registers via peer to peer DMA > and also need share the same I/O address space. > > Once the I/O address space is

[PATCH v6 00/11] Fix BUG_ON in vfio_iommu_group_notifier()

2022-02-17 Thread Lu Baolu
Hi folks, The iommu group is the minimal isolation boundary for DMA. Devices in a group can access each other's MMIO registers via peer to peer DMA and also need share the same I/O address space. Once the I/O address space is assigned to user control it is no longer available to the dma_map* API,