> From: Liu, Yi L <yi.l....@intel.com> > Sent: Monday, February 6, 2023 5:05 PM > > For the device fd opened from cdev, userspace needs to bind it to an > iommufd and attach it to IOAS managed by iommufd. With such operations, > userspace can set up a secure DMA context and hence access device. > > This changes the existing vfio_iommufd_bind() to accept a pt_id pointer > as an optional input, and also an dev_id pointer to selectively return > the dev_id to prepare for adding bind_iommufd ioctl, which does the bind > first and then attach IOAS. > > Signed-off-by: Yi Liu <yi.l....@intel.com>
Reviewed-by: Kevin Tian <kevin.t...@intel.com>