]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommufd: pfn_reader for file mappings
authorSteve Sistare <steven.sistare@oracle.com>
Fri, 25 Oct 2024 13:11:56 +0000 (06:11 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 28 Oct 2024 16:24:24 +0000 (13:24 -0300)
commit92687c793644c01aa4ca961a5f2cb93ac20a27f0
treeaba5791d97c20130d2a1b6af292e3e74a43314a0
parented9178fbfd4eb0f6a8c87f56dfb8309c65a4b8a4
iommufd: pfn_reader for file mappings

Extend pfn_reader_user() to pin file mappings, by calling
memfd_pin_folios().  Repin at small page granularity, and fill the batch
from folios.  Expand folios to upages for the iopt_pages_fill() path.

Link: https://patch.msgid.link/r/1729861919-234514-7-git-send-email-steven.sistare@oracle.com
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/io_pagetable.h
drivers/iommu/iommufd/pages.c