]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vfio/type1: Remove Fine Grained Superpages detection
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 14 Apr 2025 13:46:39 +0000 (10:46 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 19 May 2025 18:39:27 +0000 (12:39 -0600)
commit07970d048cddeb56fa17925d7c37cb2400322aab
tree78d3e7173bd635a3d67bdfbd6c5ff81f65565346
parenta5806cd506af5a7c19bcd596e4708b5c464bfd21
vfio/type1: Remove Fine Grained Superpages detection

VFIO is looking to enable an optimization where it can rely on a fast
unmap operation that returned the size of a larger IOPTE.

Due to how the test was constructed this would only ever succeed on the
AMDv1 page table that supported an 8k contiguous size. Nothing else
supports this.

Alex says the performance win was fairly minor, so lets remove this
code. Always use iommu_iova_to_phys() to extent contiguous pages.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Tested-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/0-v2-97fa1da8d983+412-vfio_fgsp_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c