> From: Liu, Yi L <[email protected]> > Sent: Tuesday, February 21, 2023 11:48 AM > > This adds ioctl for userspace to attach device cdev fd to and detach > from IOAS/hw_pagetable managed by iommufd. > > VFIO_DEVICE_ATTACH_IOMMUFD_PT: attach vfio device to IOAS, > hw_pagetable > managed by iommufd. Attach can be > undo by > VFIO_DEVICE_DETACH_IOMMUFD_PT > or device fd close. > VFIO_DEVICE_DETACH_IOMMUFD_PT: detach vfio device from the current > attached > IOAS or hw_pagetable managed by > iommufd. > > Signed-off-by: Yi Liu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
