Re: [Intel-gfx] [PATCH v11 19/23] vfio: Add VFIO_DEVICE_BIND_IOMMUFD

2023-05-24 Thread Liu, Yi L
> From: Liu, Yi L > Sent: Wednesday, May 24, 2023 10:41 AM > > > From: Tian, Kevin > > Sent: Wednesday, May 24, 2023 10:39 AM > > > > > From: Liu, Yi L > > > Sent: Wednesday, May 24, 2023 10:21 AM > > > > > > > > > > > > > vfio_device_open_file() > > > > > { > > > > >

Re: [Intel-gfx] [PATCH v11 19/23] vfio: Add VFIO_DEVICE_BIND_IOMMUFD

2023-05-23 Thread Liu, Yi L
> From: Tian, Kevin > Sent: Wednesday, May 24, 2023 10:39 AM > > > From: Liu, Yi L > > Sent: Wednesday, May 24, 2023 10:21 AM > > > > > > > > > > vfio_device_open_file() > > > > { > > > > dev_warn(device->dev, "vfio-noiommu device opened by user " > > > >"(%s:%d)\n",

Re: [Intel-gfx] [PATCH v11 19/23] vfio: Add VFIO_DEVICE_BIND_IOMMUFD

2023-05-23 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Wednesday, May 24, 2023 10:21 AM > > > > > > > vfio_device_open_file() > > > { > > > dev_warn(device->dev, "vfio-noiommu device opened by user " > > > "(%s:%d)\n", current->comm, task_pid_nr(current)); > > > } > > > > There needs to be a taint when

Re: [Intel-gfx] [PATCH v11 19/23] vfio: Add VFIO_DEVICE_BIND_IOMMUFD

2023-05-23 Thread Liu, Yi L
> From: Alex Williamson > Sent: Tuesday, May 23, 2023 11:51 PM > > On Tue, 23 May 2023 01:41:36 + > "Liu, Yi L" wrote: > > > > From: Alex Williamson > > > Sent: Tuesday, May 23, 2023 6:01 AM > > > > > > On Sat, 13 May 2023 06:28:23 -0700 > > > Yi Liu wrote: > > > > > > > This adds ioctl

Re: [Intel-gfx] [PATCH v11 19/23] vfio: Add VFIO_DEVICE_BIND_IOMMUFD

2023-05-23 Thread Alex Williamson
On Tue, 23 May 2023 01:41:36 + "Liu, Yi L" wrote: > > From: Alex Williamson > > Sent: Tuesday, May 23, 2023 6:01 AM > > > > On Sat, 13 May 2023 06:28:23 -0700 > > Yi Liu wrote: > > > > > This adds ioctl for userspace to bind device cdev fd to iommufd. > > > > > >

Re: [Intel-gfx] [PATCH v11 19/23] vfio: Add VFIO_DEVICE_BIND_IOMMUFD

2023-05-22 Thread Liu, Yi L
> From: Alex Williamson > Sent: Tuesday, May 23, 2023 6:01 AM > > On Sat, 13 May 2023 06:28:23 -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 > >

Re: [Intel-gfx] [PATCH v11 19/23] vfio: Add VFIO_DEVICE_BIND_IOMMUFD

2023-05-22 Thread Alex Williamson
On Sat, 13 May 2023 06:28:23 -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 >

[Intel-gfx] [PATCH v11 19/23] vfio: Add VFIO_DEVICE_BIND_IOMMUFD

2023-05-13 Thread Yi Liu
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: Yanting