diff options
author | Nicolin Chen <nicolinc@nvidia.com> | 2025-06-13 23:35:21 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2025-06-19 15:43:29 -0300 |
commit | 683cff7c3bf4495c2378ede5a3601271958c08fe (patch) | |
tree | 5943d184b97600134f6f2a16d3c1710527e75b53 /tools/perf/scripts/python | |
parent | 5983d1e7d7586c32605fdffc68e5ff61bf917022 (diff) |
iommufd/selftest: Replace mock_viommu_alloc with mock_viommu_init
To ease the for-driver iommufd APIs, get_viommu_size and viommu_init ops
are introduced.
Sanitize the inputs and report the size of struct mock_viommu on success,
in mock_get_viommu_size().
The core will ensure the viommu_type is set to the core vIOMMU object, so
simply init the driver part in mock_viommu_init().
Remove the mock_viommu_alloc, completing the replacement.
Link: https://patch.msgid.link/r/993beabbb0bc9705d979a92801ea5ed5996a34eb.1749882255.git.nicolinc@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions