Skip to content

iommufd: Allocate attach_handle for any HWPT

Nicolin Chen linux-iommu linux-patches lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iommufd: Make attach_handle generic than fault specificdrivers/iommu/iommufd/device.c drivers/iommu/iommufd/fault.c drivers/iommu/iommufd/iommufd_private.h+109 -332 replies
2/2iommufd/fault: Remove iommufd_fault_domain_attach/detach/replace_dev()drivers/iommu/iommufd/fault.c drivers/iommu/iommufd/iommufd_private.h+0 -1281 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchYi Liu
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] iommufd: Allocate attach_handle for any HWPT

An attach_handle is a hwpt->fault specific thing, so the fault.c has been holding a set of attach/detach/replace helpers for attach_handle and iopf enabling/disabling.

Now, both the iommufd_msi series [1] and the attach_pasid series [2] want to reuse the attach_handle for non-fault cases. Rework the attach_handle, to prepare for either of the series. It should be merged with either that gets merged first.

[1] https://lore.kernel.org/linux-iommu/[email protected]/
[2] https://lore.kernel.org/linux-iommu/[email protected]/

Patches in this series are from [1] with some fixes addressing the review comments.

Changelog
v1 (since [1])
* Rebase on v6.14-rc1
* Unwrap the fault attach/detach/replace helpers
* Split the attach_handle patch to make it clearer

Thanks
Nicolin

Nicolin Chen (2):
iommufd: Make attach_handle generic than fault specific iommufd/fault: Remove iommufd_fault_domain_attach/detach/replace_dev()

 drivers/iommu/iommufd/iommufd_private.h |  41 +-------
 drivers/iommu/iommufd/device.c          | 101 +++++++++++++++++++
 drivers/iommu/iommufd/fault.c           | 128 +-----------------------
 3 files changed, 109 insertions(+), 161 deletions(-)
Signature · 1 line
2.43.0