summaryrefslogtreecommitdiff
path: root/drivers/iommu/iommufd/hw_pagetable.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2023-10-26 07:39:31 +0300
committerJason Gunthorpe <jgg@nvidia.com>2023-10-26 17:15:56 +0300
commit58d84f430dc7f737d21c60906de0f39104c89e9d (patch)
treeb55f62f4161b4afd14a509ada6f7fbd397cc3e02 /drivers/iommu/iommufd/hw_pagetable.c
parent9744a7ab62cc7354096aaff788c08b947f86ba60 (diff)
downloadlinux-58d84f430dc7f737d21c60906de0f39104c89e9d.tar.xz
iommufd/device: Wrap IOMMUFD_OBJ_HWPT_PAGING-only configurations
Some of the configurations during the attach/replace() should only apply to IOMMUFD_OBJ_HWPT_PAGING. Once IOMMUFD_OBJ_HWPT_NESTED gets introduced in a following patch, keeping them unconditionally in the common routine will not work. Wrap all of those PAGING-only configurations together into helpers. Do a hwpt_is_paging check whenever calling them or their fallback routines. Link: https://lore.kernel.org/r/20231026043938.63898-4-yi.l.liu@intel.com Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/iommu/iommufd/hw_pagetable.c')
0 files changed, 0 insertions, 0 deletions