Re: [Intel-gfx] [PATCH v13 21/22] vfio: Compile vfio_group infrastructure optionally

2023-07-17 Thread Liu, Yi L
> From: Alex Williamson > Sent: Tuesday, July 18, 2023 2:46 AM > > On Mon, 17 Jul 2023 08:08:59 + > "Liu, Yi L" wrote: > > > > From: Liu, Yi L > > > Sent: Monday, July 17, 2023 2:36 PM > > > > > > > From: Liu, Yi L > > > > Sent: Friday, June 16, 2023 5:40 PM > > > > > > > > vfio_group is

Re: [Intel-gfx] [PATCH v13 21/22] vfio: Compile vfio_group infrastructure optionally

2023-07-17 Thread Alex Williamson
On Mon, 17 Jul 2023 08:08:59 + "Liu, Yi L" wrote: > > From: Liu, Yi L > > Sent: Monday, July 17, 2023 2:36 PM > > > > > From: Liu, Yi L > > > Sent: Friday, June 16, 2023 5:40 PM > > > > > > vfio_group is not needed for vfio device cdev, so with vfio device cdev > > > introduced, the vfio

Re: [Intel-gfx] [PATCH v13 21/22] vfio: Compile vfio_group infrastructure optionally

2023-07-17 Thread Liu, Yi L
> From: Jason Gunthorpe > Sent: Monday, July 17, 2023 8:34 PM > > On Mon, Jul 17, 2023 at 06:36:19AM +, Liu, Yi L wrote: > > Hi Alex, Jason, > > > > I found a minor nit on the kconfig. The below configuration is valid. > > But user cannot use vfio directly as there is no /dev/vfio/vfio. Altho

Re: [Intel-gfx] [PATCH v13 21/22] vfio: Compile vfio_group infrastructure optionally

2023-07-17 Thread Jason Gunthorpe
On Mon, Jul 17, 2023 at 06:36:19AM +, Liu, Yi L wrote: > Hi Alex, Jason, > > I found a minor nit on the kconfig. The below configuration is valid. > But user cannot use vfio directly as there is no /dev/vfio/vfio. Although > user can open /dev/iommu instead. This is not good. > > CONFIG_IOMMU

Re: [Intel-gfx] [PATCH v13 21/22] vfio: Compile vfio_group infrastructure optionally

2023-07-17 Thread Liu, Yi L
> From: Liu, Yi L > Sent: Monday, July 17, 2023 2:36 PM > > > From: Liu, Yi L > > Sent: Friday, June 16, 2023 5:40 PM > > > > vfio_group is not needed for vfio device cdev, so with vfio device cdev > > introduced, the vfio_group infrastructures can be compiled out if only > > cdev is needed. > >

Re: [Intel-gfx] [PATCH v13 21/22] vfio: Compile vfio_group infrastructure optionally

2023-07-16 Thread Liu, Yi L
> From: Liu, Yi L > Sent: Friday, June 16, 2023 5:40 PM > > vfio_group is not needed for vfio device cdev, so with vfio device cdev > introduced, the vfio_group infrastructures can be compiled out if only > cdev is needed. > > Tested-by: Nicolin Chen > Tested-by: Matthew Rosato > Tested-by: Ya

[Intel-gfx] [PATCH v13 21/22] vfio: Compile vfio_group infrastructure optionally

2023-06-16 Thread Yi Liu
vfio_group is not needed for vfio device cdev, so with vfio device cdev introduced, the vfio_group infrastructures can be compiled out if only cdev is needed. Tested-by: Nicolin Chen Tested-by: Matthew Rosato Tested-by: Yanting Jiang Tested-by: Shameer Kolothum Tested-by: Terrence Xu Signed-o