2024-01-12 17:49:49

by Jason Gunthorpe

[permalink] [raw]
Subject: [GIT PULL] Please pull IOMMUFD subsystem changes

Hi Linus,

There was a last minute doubt from Intel on their error handling
plan. They decided to remove it since it has uAPI meaning this was
delayed while they made that edit. The prior verions has been in
linux-next for a while now but the update has only had a day.

This PR includes the second part of the nested translation items for
iommufd, details in the tag.

For those following, these series are still progressing:

- User page table invalidation (non-Intel) has a roadmap:
https://lore.kernel.org/linux-iommu/[email protected]/

There will be at least two more invalidation IOCTLs - IOMMU_DEVICE_INVALIDATE
and IOMMU_VIOMMU_INVALIDATE in future.

- ARM SMMUv3 nested translation:
https://github.com/jgunthorpe/linux/commits/smmuv3_newapi

- Draft AMD IOMMU nested translation:
https://lore.kernel.org/linux-iommu/[email protected]

- ARM SMMUv3 Dirty tracking:
https://lore.kernel.org/linux-iommu/[email protected]/

- x86 KVM and IOMMU page table sharing (IOMMU_DOMAIN_KVM):
https://lore.kernel.org/all/[email protected]/

There is also a lot of ongoing work to consistently and generically enable
PASID and SVA support in all the IOMMU drivers:
SMMUv3:
https://lore.kernel.org/r/[email protected]
https://lore.kernel.org/r/[email protected]
AMD:
https://lore.kernel.org/linux-iommu/[email protected]/
https://lore.kernel.org/linux-iommu/[email protected]/
Intel:
https://lore.kernel.org/r/[email protected]

RFC patches for PASID support in iommufd & vfio:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

IO page faults and events delivered to userspace through iommufd:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

RFC patches exploring support for the first Intel Scalable IO Virtualization
(SIOV r1) device are posted:
https://lore.kernel.org/all/[email protected]/

A lot of the iommufd support has now been merged to qemu, though I think we
are still needing dirty tracking and nesting stuff.
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

A video of the iommufd session at LPC has been posted:
https://youtu.be/IE_A8wSWV7g

Thanks,
Jason

The following changes since commit 861deac3b092f37b2c5e6871732f3e11486f7082:

Linux 6.7-rc7 (2023-12-23 16:25:56 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git tags/for-linus-iommufd

for you to fetch changes up to 47f2bd2ff382e5fe766b1322e354558a8da4a470:

iommufd/selftest: Check the bus type during probe (2024-01-11 15:53:28 -0400)

----------------------------------------------------------------
iommufd for 6.8

This brings the first of three planned user IO page table invalidation
operations:

- IOMMU_HWPT_INVALIDATE allows invalidating the IOTLB integrated into the
iommu itself. The Intel implementation will also generate an ATC
invalidation to flush the device IOTLB as it unambiguously knows the
device, but other HW will not.

It goes along with the prior PR to implement userspace IO page tables (aka
nested translation for VMs) to allow Intel to have full functionality for
simple cases. An Intel implementation of the operation is provided.

Fix a small bug in the selftest mock iommu driver probe.

----------------------------------------------------------------
Jason Gunthorpe (1):
iommufd/selftest: Check the bus type during probe

Lu Baolu (2):
iommu: Add cache_invalidate_user op
iommu/vt-d: Add iotlb flush for nested domain

Nicolin Chen (4):
iommu: Add iommu_copy_struct_from_user_array helper
iommufd/selftest: Add mock_domain_cache_invalidate_user support
iommufd/selftest: Add IOMMU_TEST_OP_MD_CHECK_IOTLB test op
iommufd/selftest: Add coverage for IOMMU_HWPT_INVALIDATE ioctl

Yi Liu (2):
iommufd: Add IOMMU_HWPT_INVALIDATE
iommufd: Add data structure for Intel VT-d stage-1 cache invalidation

drivers/iommu/intel/nested.c | 88 +++++++++++++++
drivers/iommu/iommufd/hw_pagetable.c | 41 +++++++
drivers/iommu/iommufd/iommufd_private.h | 10 ++
drivers/iommu/iommufd/iommufd_test.h | 23 ++++
drivers/iommu/iommufd/main.c | 3 +
drivers/iommu/iommufd/selftest.c | 104 +++++++++++++++---
include/linux/iommu.h | 77 +++++++++++++
include/uapi/linux/iommufd.h | 79 +++++++++++++
tools/testing/selftests/iommu/iommufd.c | 152 ++++++++++++++++++++++++++
tools/testing/selftests/iommu/iommufd_utils.h | 55 ++++++++++
10 files changed, 619 insertions(+), 13 deletions(-)


Attachments:
(No filename) (5.17 kB)
signature.asc (235.00 B)
Download all attachments

2024-01-18 23:36:02

by pr-tracker-bot

[permalink] [raw]
Subject: Re: [GIT PULL] Please pull IOMMUFD subsystem changes

The pull request you sent on Fri, 12 Jan 2024 13:49:28 -0400:

> git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git tags/for-linus-iommufd

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/86c4d58a99ab1ccfa03860d4dead157be51eb2b6

Thank you!

--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html