On Tue, Jul 18, 2023 at 06:55:45AM -0700, Yi Liu wrote:
> It's common to get a reference to the iommufd context from a given file
> descriptor. So adds an API for it. Existing users of this API are compiled
> only when IOMMUFD is enabled, so no need to have a stub for the IOMMUFD
> disabled case.
> 
> Signed-off-by: Yi Liu <yi.l....@intel.com>
> ---
>  drivers/iommu/iommufd/main.c | 24 ++++++++++++++++++++++++
>  include/linux/iommufd.h      |  1 +
>  2 files changed, 25 insertions(+)

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

Jason

Reply via email to