]> git.karo-electronics.de Git - linux-beck.git/commit
vfio iommu: Add blocking notifier to notify DMA_UNMAP
authorKirti Wankhede <kwankhede@nvidia.com>
Thu, 17 Nov 2016 04:58:26 +0000 (10:28 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 17 Nov 2016 15:33:07 +0000 (08:33 -0700)
commitc086de818dd81c3c2f7cecff23de6585b74340c0
tree5bef30bb704ea2a9d83dfd70fce00e878dc638a1
parenta54eb55045ae9b3032c71f1134e30d02de527038
vfio iommu: Add blocking notifier to notify DMA_UNMAP

Added blocking notifier to IOMMU TYPE1 driver to notify vendor drivers
about DMA_UNMAP.
Exported two APIs vfio_register_notifier() and vfio_unregister_notifier().
Notifier should be registered, if external user wants to use
vfio_pin_pages()/vfio_unpin_pages() APIs to pin/unpin pages.
Vendor driver should use VFIO_IOMMU_NOTIFY_DMA_UNMAP action to invalidate
mappings.

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Neo Jia <cjia@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c
drivers/vfio/vfio_iommu_type1.c
include/linux/vfio.h