]> git.ipfire.org Git - thirdparty/linux.git/commit
iommufd: Have iopt_map_file_pages convert the fd to a file
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 21 Nov 2025 15:51:04 +0000 (11:51 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Nov 2025 15:30:16 +0000 (11:30 -0400)
commit217725f0b2c31d8328fe92b35ae4b38c102a846f
tree050506ef8f14d55f20115221198d8a046ab2f3e4
parent74014a4b55f5df935977368efe09d650e22495f0
iommufd: Have iopt_map_file_pages convert the fd to a file

Since dmabuf only has APIs that work on an int fd and not a struct file *,
pass the fd deeper into the call chain so we can use the dmabuf APIs as
is.

Link: https://patch.msgid.link/r/7-v2-b2c110338e3f+5c2-iommufd_dmabuf_jgg@nvidia.com
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Shuai Xue <xueshuai@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/io_pagetable.c
drivers/iommu/iommufd/ioas.c
drivers/iommu/iommufd/iommufd_private.h