Re: [Intel-gfx] [PATCH v13 00/22] Add vfio_device cdev for iommufd support

2023-06-23 Thread Jason Gunthorpe
On Fri, Jun 16, 2023 at 02:39:24AM -0700, Yi Liu wrote: > Existing VFIO provides group-centric user APIs for userspace. Userspace > opens the /dev/vfio/$group_id first before getting device fd and hence > getting access to device. This is not the desired model for iommufd. Per > the conclusion of c

Re: [Intel-gfx] [PATCH v13 00/22] Add vfio_device cdev for iommufd support

2023-06-21 Thread Duan, Zhenzhong
>-Original Message- >From: Liu, Yi L >Sent: Friday, June 16, 2023 5:39 PM >Subject: [PATCH v13 00/22] Add vfio_device cdev for iommufd support >... Per Yi's suggestion, wrote a selftest app to verify functions of this patchset by referencing https://github.com/awilliam/tests/ Test pass

[Intel-gfx] [PATCH v13 00/22] Add vfio_device cdev for iommufd support

2023-06-16 Thread Yi Liu
Existing VFIO provides group-centric user APIs for userspace. Userspace opens the /dev/vfio/$group_id first before getting device fd and hence getting access to device. This is not the desired model for iommufd. Per the conclusion of community discussion[1], iommufd provides device-centric kAPIs an