[PATCH v2 0/3] Add iommufd ioctls to support TSM operations

Aneesh Kumar K.V (Arm)
2026-03-09T11:17:27Z

This patch series adds iommufd ioctl support for TSM-related operations.
These ioctls allow VMMs to perform TSM management tasks such as bind/unbind
operations and handling guest requests.

This series is posted separately in v2. The v1 posting is available at:
https://lore.kernel.org/all/20250728135216.48084-8-aneesh.kumar@kernel.org

Changes from v1:
* Rebased onto the latest kernel
* Addressed review feedback
* Dropped the TSM map ioctl; the KVM prefault patch will be used instead to
ensure private memory is preallocated

Aneesh Kumar K.V (Arm) (3):
iommufd/viommu: Allow associating a KVM VM fd with a vIOMMU
iommufd/tsm: add vdevice TSM bind/unbind ioctl
iommufd/vdevice: add TSM guest request ioctl

drivers/iommu/iommufd/Makefile | 2 +
drivers/iommu/iommufd/iommufd_private.h | 15 ++++
drivers/iommu/iommufd/main.c | 6 ++
drivers/iommu/iommufd/tsm.c | 115 ++++++++++++++++++++++++
drivers/iommu/iommufd/viommu.c | 57 +++++++++++-
drivers/virt/coco/tsm-core.c | 33 +++++++
include/linux/iommufd.h | 3 +
include/linux/tsm.h | 44 +++++++++
include/uapi/linux/iommufd.h | 54 ++++++++++-
virt/kvm/kvm_main.c | 2 +-
10 files changed, 328 insertions(+), 3 deletions(-)
create mode 100644 drivers/iommu/iommufd/tsm.c

--
2.43.0