Re: [Intel-gfx] [PATCH v2 09/14] vfio-iommufd: Add detach_ioas support for physical VFIO devices

2023-02-07 Thread Liu, Yi L
> From: Tian, Kevin > Sent: Tuesday, February 7, 2023 2:07 PM > > > From: Liu, Yi L > > Sent: Monday, February 6, 2023 5:05 PM > > > > +static void __vfio_iommufd_detach(struct vfio_device *vdev) > > +{ > > + iommufd_device_detach(vdev->iommufd_device); > > + vdev->iommufd_attached = false;

Re: [Intel-gfx] [PATCH v2 09/14] vfio-iommufd: Add detach_ioas support for physical VFIO devices

2023-02-06 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Monday, February 6, 2023 5:05 PM > > +static void __vfio_iommufd_detach(struct vfio_device *vdev) > +{ > + iommufd_device_detach(vdev->iommufd_device); > + vdev->iommufd_attached = false; > +} > + > void vfio_iommufd_physical_unbind(struct vfio_device *vdev) >

[Intel-gfx] [PATCH v2 09/14] vfio-iommufd: Add detach_ioas support for physical VFIO devices

2023-02-06 Thread Yi Liu
this prepares for adding DETACH ioctl for physical VFIO devices. Signed-off-by: Yi Liu --- Documentation/driver-api/vfio.rst | 8 +++-- drivers/vfio/fsl-mc/vfio_fsl_mc.c | 1 + drivers/vfio/iommufd.c| 31 ---