vfio/type1: Adopt fast IOTLB flush interface when unmap IOVAs
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Wed, 21 Mar 2018 18:46:19 +0000 (12:46 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 21 Mar 2018 18:46:19 +0000 (12:46 -0600)
commit6bd06f5a486c06023a618a86e8153b91d26f75f4
tree1a3eb894fd10a6b101644824c79eb91a934d96b2
parentc698ca5278934c0ae32297a8725ced2e27585d7f
vfio/type1: Adopt fast IOTLB flush interface when unmap IOVAs

VFIO IOMMU type1 currently upmaps IOVA pages synchronously, which requires
IOTLB flushing for every unmapping. This results in large IOTLB flushing
overhead when handling pass-through devices has a large number of mapped
IOVAs. This can be avoided by using the new IOTLB flushing interface.

Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
[aw - use LIST_HEAD]
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c