diff options
| author | Nicolin Chen <[email protected]> | 2023-07-17 15:12:12 -0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2023-07-26 10:20:26 -0300 |
| commit | fa1ffdb9e2937d04657c33a146aa0d2cd39abba0 (patch) | |
| tree | ae2032fb78081c4002439c0165ae649ea9756785 /include/linux | |
| parent | 83f7bc6fdfd2fca11f35c061194d60f88acb3086 (diff) | |
iommufd/selftest: Test iommufd_device_replace()
Allow the selftest to call the function on the mock idev, add some tests
to exercise it.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Kevin Tian <[email protected]>
Tested-by: Nicolin Chen <[email protected]>
Signed-off-by: Nicolin Chen <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iommufd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iommufd.h b/include/linux/iommufd.h index 9657c58813dc..0ac60256b659 100644 --- a/include/linux/iommufd.h +++ b/include/linux/iommufd.h @@ -23,6 +23,7 @@ struct iommufd_device *iommufd_device_bind(struct iommufd_ctx *ictx, void iommufd_device_unbind(struct iommufd_device *idev); int iommufd_device_attach(struct iommufd_device *idev, u32 *pt_id); +int iommufd_device_replace(struct iommufd_device *idev, u32 *pt_id); void iommufd_device_detach(struct iommufd_device *idev); struct iommufd_ctx *iommufd_device_to_ictx(struct iommufd_device *idev); |