iommufd/selftest: Add a selftest for iommufd_device_attach() with a hwpt argument
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 1 Mar 2023 19:30:29 +0000 (15:30 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 6 Mar 2023 17:06:11 +0000 (13:06 -0400)
commit4ed4791afb34c61650b17407846174a72e4034f4
treee98dd71aa2f13ffc8435d082a4ce7d7ade2bda6c
parent65c619ae06801e1f21cff1a78c7e64923ad17896
iommufd/selftest: Add a selftest for iommufd_device_attach() with a hwpt argument

This can now be covered since we have a full struct device.

Link: https://lore.kernel.org/r/12-v3-ae9c2975a131+2e1e8-iommufd_hwpt_jgg@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
tools/testing/selftests/iommu/iommufd.c