iommufd: Organize the mock domain alloc functions closer to Joerg's tree
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 30 Oct 2023 18:11:20 +0000 (15:11 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 30 Oct 2023 21:01:56 +0000 (18:01 -0300)
commitb2b67c997bf74453f3469d8b54e4859f190943bd
treead2cf3798d0587675c8be34bf2d177bbf7cf6c3c
parent2e22aac3ea9cfc0ec3209c96644f60c1806a8117
iommufd: Organize the mock domain alloc functions closer to Joerg's tree

Patches in Joerg's iommu tree to convert the mock driver to use
domain_alloc_paging() that clash badly with the way the selftest changes
for nesting were structured.

Massage the selftest so that it looks closer the code after the
domain_alloc_paging() conversion to ease the merge. Change
__mock_domain_alloc_paging() into mock_domain_alloc_paging() in the same
way as the iommu tree. The merge resolution then trivially takes both and
deletes mock_domain_alloc().

Link: https://lore.kernel.org/r/0-v1-90a855762c96+19de-mock_merge_jgg@nvidia.com
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/selftest.c