]> git.ipfire.org Git - thirdparty/linux.git/commit
iommufd/selftest: Prepare for mock_viommu_alloc_domain_nested()
authorNicolin Chen <nicolinc@nvidia.com>
Tue, 5 Nov 2024 20:04:25 +0000 (12:04 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 12 Nov 2024 15:46:18 +0000 (11:46 -0400)
commit18f819901d53b8d1101d3227c87b0d623e9d78f6
tree5b01e3ab258fbe50cf194a862a1cf1cc792460b3
parentfd6b853f50c868b03797e7ae87f1ed554aea01e4
iommufd/selftest: Prepare for mock_viommu_alloc_domain_nested()

A nested domain now can be allocated for a parent domain or for a vIOMMU
object. Rework the existing allocators to prepare for the latter case.

Link: https://patch.msgid.link/r/f62894ad8ccae28a8a616845947fe4b76135d79b.1730836219.git.nicolinc@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/selftest.c