Linux IOMMU Development
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Misc iommu_attach_handle enhancements in iommu core
@ 2025-02-26  1:18 Yi Liu
  2025-02-26  1:18 ` [PATCH v3 1/4] iommu: Make @handle mandatory in iommu_{attach|replace}_group_handle() Yi Liu
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Yi Liu @ 2025-02-26  1:18 UTC (permalink / raw)
  To: joro, jgg
  Cc: kevin.tian, baolu.lu, yi.l.liu, iommu, robin.murphy, nicolinc,
	will

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/cover.1738645017.git.nicolinc@nvidia.com/
[2] https://lore.kernel.org/linux-iommu/20250120030840.4171-1-yi.l.liu@intel.com/

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/20250221143335.49874-1-yi.l.liu@intel.com/
 - 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/20250212060540.261436-1-yi.l.liu@intel.com/

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-02-28 14:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26  1:18 [PATCH v3 0/4] Misc iommu_attach_handle enhancements in iommu core Yi Liu
2025-02-26  1:18 ` [PATCH v3 1/4] iommu: Make @handle mandatory in iommu_{attach|replace}_group_handle() Yi Liu
2025-02-26  1:18 ` [PATCH v3 2/4] iommu: Drop iommu_group_replace_domain() Yi Liu
2025-02-26  5:50   ` Baolu Lu
2025-02-26  1:18 ` [PATCH v3 3/4] iommu: Store either domain or handle in group->pasid_array Yi Liu
2025-02-26  5:53   ` Baolu Lu
2025-02-26  1:18 ` [PATCH v3 4/4] iommu: Swap the order of setting group->pasid_array and calling attach op of iommu drivers Yi Liu
2025-02-28 14:30 ` [PATCH v3 0/4] Misc iommu_attach_handle enhancements in iommu core Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox