On Tue, Jul 18, 2023 at 06:55:47AM -0700, Yi Liu wrote:
> This adds ioctl for userspace to bind device cdev fd to iommufd.
> 
>     VFIO_DEVICE_BIND_IOMMUFD: bind device to an iommufd, hence gain DMA
>                             control provided by the iommufd. open_device
>                             op is called after bind_iommufd op.
> 
> Tested-by: Nicolin Chen <[email protected]>
> Tested-by: Matthew Rosato <[email protected]>
> Tested-by: Yanting Jiang <[email protected]>
> Tested-by: Shameer Kolothum <[email protected]>
> Tested-by: Terrence Xu <[email protected]>
> Tested-by: Zhenzhong Duan <[email protected]>
> Signed-off-by: Yi Liu <[email protected]>
> ---
>  drivers/vfio/device_cdev.c | 107 +++++++++++++++++++++++++++++++++++++
>  drivers/vfio/vfio.h        |  13 +++++
>  drivers/vfio/vfio_main.c   |   5 ++
>  include/linux/vfio.h       |   5 +-
>  include/uapi/linux/vfio.h  |  27 ++++++++++
>  5 files changed, 155 insertions(+), 2 deletions(-)

Reviewed-by: Jason Gunthorpe <[email protected]>

Jason

Reply via email to