Re: [PATCH v2 04/10] vfio-iommufd: Add helper to retrieve iommufd_ctx and devid for vfio_device

Jason Gunthorpe
2023-03-30T23:45:08Z

On Mon, Mar 27, 2023 at 02:34:52AM -0700, Yi Liu wrote:
> This is needed by the vfio pci driver to report affected devices in the
> hot reset for a given device.
>
> Signed-off-by: Yi Liu <yi.l.liu@intel.com>
> ---
> drivers/iommu/iommufd/device.c | 12 ++++++++++++
> drivers/vfio/iommufd.c | 16 ++++++++++++++++
> include/linux/iommufd.h | 3 +++
> include/linux/vfio.h | 13 +++++++++++++
> 4 files changed, 44 insertions(+)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason