Skip to content

Misc iommu_attach_handle enhancements in iommu core

Yi Liu linux-iommu 3 versions – Applied

Status from this message: Applied to the shared branch

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 3 repliesApplied
  2. v24 patches 21 repliesSuperseded
  3. v15 patches 28 repliesSuperseded

Changes in v3 from the cover letter

- Refine iommu_attach_handle_get() (Baolu)
- More r-b tags

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4iommu: Make @handle mandatory in iommu_{attach|replace}_group_handle()drivers/iommu/iommu.c+8 -90 replies
2/4iommu: Drop iommu_group_replace_domain()drivers/iommu/iommu-priv.h drivers/iommu/iommu.c+6 -321 reply
3/4iommu: Store either domain or handle in group->pasid_arraydrivers/iommu/iommu.c+31 -121 reply
4/4iommu: Swap the order of setting group->pasid_array and calling attach op of iommu driversdrivers/iommu/iommu.c+36 -120 replies

Reviews trailers per patch

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

PatchJason GunthorpeNicolin ChenKevin TianLu Baolu
1/4R-b R-b R-b R-b
2/4R-b R-b R-b R-b
3/4R-b R-b R-b R-b
4/4R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/4] Misc iommu_attach_handle enhancements in iommu core

This patch series aims to enhance the iommu_attach_handle-related APIs in the IOMMU core. The changes build upon Nic's previous series[1], which ensured that users of the attach/replace handle APIs always provide a valid handle. With this foundation, the series refactors the IOMMU core to share code between the normal attach/replace APIs and the handle-supporting APIs. Additionally, it seeks to avoid processing Page Request Interrupts (PRIs) before the attach operation succeeds.

This series also covers the prior series[2] which only takes care of the iommu_attach_device_pasid().

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

Base: https://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git/commit/?h=for-next&id=dc10ba25d43f433ad5d9e8e6be4f4d2bb3cd9ddb

Change log:

v3:
- Refine iommu_attach_handle_get() (Baolu)
- More r-b tags

v2: https://lore.kernel.org/linux-iommu/[email protected]/
- Move handl->domain under group->mutex protect (Nic)
- Refine the patch 04 per the model of reserve xa first and then xa_store in the end which does not suppose to fail (Jason)
- Drop the patch 05 of v1 as retire group->domain requires further effort
- Add r-b tags

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

Regards,
Yi Liu

Yi Liu (4):
iommu: Make @handle mandatory in iommu_{attach|replace}_group_handle()
iommu: Drop iommu_group_replace_domain()
iommu: Store either domain or handle in group->pasid_array
iommu: Swap the order of setting group->pasid_array and calling attach
op of iommu drivers

 drivers/iommu/iommu-priv.h |   3 -
 drivers/iommu/iommu.c      | 135 +++++++++++++++++++++----------------
 2 files changed, 77 insertions(+), 61 deletions(-)
Signature · 1 line
2.34.1