]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommufd: Lock all IOAS objects
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 13 Nov 2024 19:51:35 +0000 (11:51 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 14 Nov 2024 16:47:16 +0000 (12:47 -0400)
commit051ae5aa73d782a8be2699a11e17c68f28b4e758
treec5bd93c6433275986275dffa542bffdcc5eae124
parent10caa8b45119fa19fa98ea304d49f7e1283062fc
iommufd: Lock all IOAS objects

Define helpers to lock and unlock all IOAS objects.
This will allow DMA mappings to be updated atomically during live update.
This code is substantially the same as an initial version provided by
Jason, plus fixes.

Link: https://patch.msgid.link/r/1731527497-16091-3-git-send-email-steven.sistare@oracle.com
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/ioas.c
drivers/iommu/iommufd/iommufd_private.h
drivers/iommu/iommufd/main.c