Skip to content

iommu aux-domain APIs extensions

Lu Baolu kvm linux-iommu lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 9 repliesIn review
  2. v55 patches 2 repliesSuperseded
  3. v45 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v34 patches31 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vfio/mdev: Register mdev bus earlier during bootdrivers/vfio/mdev/mdev_core.c+4 -01 reply
2/5iommu: Use bus iommu ops for aux related callbackdrivers/iommu/iommu.c+10 -62 replies
3/5iommu/vt-d: Make some static functions globaldrivers/iommu/intel/iommu.c include/linux/intel-iommu.h+62 -610 replies
4/5iommu/vt-d: Add iommu_ops support for subdevice busdrivers/iommu/intel/Kconfig drivers/iommu/intel/Makefile drivers/iommu/intel/iommu.c +2 more+142 -02 replies
5/5vfio/type1: Use mdev bus iommu_ops for IOMMU callbacksdrivers/vfio/mdev/mdev_core.c drivers/vfio/mdev/mdev_driver.c drivers/vfio/mdev/mdev_private.h +2 more+18 -1494 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/5] iommu aux-domain APIs extensions

Hi Joerg and Alex,

A description of purpose for this series could be found here.

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

The previous version was posted here.

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

This version is evolved according to Joerg's comments posted here.

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

This basic idea is that IOMMU registers an iommu_ops for subdevice bus (for example, the vfio/mdev bus), so that the upper layer device passthrough framework could use the standard iommu-core code to setup the IOMMU logistics.

This series was tested by Dave Jiang <[email protected]> with his idxd driver posted here. Very appreciated!

https://lore.kernel.org/lkml/160021250454.67751.3119489448651243709.stgit@djiang5-desk3.ch.intel.com/

Please help to review and comment.

Best regards,
baolu

Lu Baolu (5):
vfio/mdev: Register mdev bus earlier during boot
iommu: Use bus iommu ops for aux related callback iommu/vt-d: Make some static functions global iommu/vt-d: Add iommu_ops support for subdevice bus vfio/type1: Use mdev bus iommu_ops for IOMMU callbacks

 drivers/iommu/intel/Kconfig      |  13 ++++
 drivers/iommu/intel/Makefile     |   1 +
 drivers/iommu/intel/iommu.c      |  79 +++++--------------
 drivers/iommu/intel/siov.c       | 119 ++++++++++++++++++++++++++++
 drivers/iommu/iommu.c            |  16 ++--
 drivers/vfio/mdev/mdev_core.c    |  22 +-----
 drivers/vfio/mdev/mdev_driver.c  |   6 ++
 drivers/vfio/mdev/mdev_private.h |   1 -
 drivers/vfio/vfio_iommu_type1.c  | 128 +++----------------------------
 include/linux/intel-iommu.h      |  53 +++++++++++++
 include/linux/mdev.h             |  14 ----
 11 files changed, 236 insertions(+), 216 deletions(-)
 create mode 100644 drivers/iommu/intel/siov.c
Signature · 1 line
2.25.1