vfio-iommufd: No need to record iommufd_ctx in vfio_device
authorYi Liu <yi.l.liu@intel.com>
Mon, 27 Mar 2023 09:33:48 +0000 (02:33 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 31 Mar 2023 16:43:31 +0000 (13:43 -0300)
commit4508a533fce4db0004c1e8dd047c1e77046fc9c5
tree9d4571d9f8afd90e83966275e4994c2489de4a2b
parent54b47585db6658a5eb898d4d45be18d1e581c1bf
vfio-iommufd: No need to record iommufd_ctx in vfio_device

iommufd_ctx is stored in vfio_device for emulated devices per bind_iommufd.
However, as iommufd_access is created in bind, no more need to stored it
since iommufd_access implicitly stores it.

Link: https://lore.kernel.org/r/20230327093351.44505-4-yi.l.liu@intel.com
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Terrence Xu <terrence.xu@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/vfio/iommufd.c
include/linux/vfio.h