diff options
| author | Jason Gunthorpe <[email protected]> | 2022-07-19 21:02:49 -0300 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2022-07-20 11:57:59 -0600 |
| commit | 8cfc5b60751bcf9b4c6bbab3f6a72d59e0156a89 (patch) | |
| tree | f35b0994df95af7405e122e09256dae362586137 /include/linux | |
| parent | ce4b4657ff18925c315855aa290e93c5fa652d96 (diff) | |
vfio: Replace the iommu notifier with a device list
Instead of bouncing the function call to the driver op through a blocking
notifier just have the iommu layer call it directly.
Register each device that is being attached to the iommu with the lower
driver which then threads them on a linked list and calls the appropriate
driver op at the right time.
Currently the only use is if dma_unmap() is defined.
Also, fully lock all the debugging tests on the pinning path that a
dma_unmap is registered.
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/vfio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vfio.h b/include/linux/vfio.h index 1f9fc7a9be9e..19cefbaa3d06 100644 --- a/include/linux/vfio.h +++ b/include/linux/vfio.h @@ -49,7 +49,7 @@ struct vfio_device { unsigned int open_count; struct completion comp; struct list_head group_next; - struct notifier_block iommu_nb; + struct list_head iommu_entry; }; /** |