Skip to content

vfio: optimized for hugetlbf pages when dma map/unmap

Ming Mao kvm linux-mm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 7 repliesIn review
  2. v31 patch 3 repliesSuperseded
  3. v21 patch 9 repliesSuperseded

Changes in v4 from the cover letter

- add a new API unpin_user_hugetlb_pages_dirty_lock()
- use the new API to unpin hugetlb pages

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vfio dma_map/unmap: optimized for hugetlbfs pagesdrivers/vfio/vfio_iommu_type1.c+281 -87 replies
2/2vfio: optimized for unpinning pagesdrivers/vfio/vfio_iommu_type1.c include/linux/mm.h mm/gup.c+172 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH V4 0/2] vfio: optimized for hugetlbf pages when dma map/unmap

This series deletes the for loop in dma_map/unmap for hugetlb pages. In the original process, the for loop could spend much time to check all normal pages.If we use hugetlb pages, it is not necessary to do this.

Changes from v3
- add a new API unpin_user_hugetlb_pages_dirty_lock()
- use the new API to unpin hugetlb pages

Ming Mao (2):
vfio dma_map/unmap: optimized for hugetlbfs pages
vfio: optimized for unpinning pages

 drivers/vfio/vfio_iommu_type1.c | 373 ++++++++++++++++++++++++++++++--
 include/linux/mm.h              |   3 +
 mm/gup.c                        |  91 ++++++++
 3 files changed, 450 insertions(+), 17 deletions(-)
Signature · 1 line
2.23.0