+13
−17
Loading
There is no need to share the main device pointer (struct vfio_device *) with all the feature functions as they only need the core device pointer. Therefore, extract the core device pointer once in the caller (vfio_pci_core_ioctl_feature) and share it instead. Signed-off-by:Vivek Kasireddy <vivek.kasireddy@intel.com> Reviewed-by:
Kevin Tian <kevin.tian@intel.com> Tested-by:
Alex Mastro <amastro@fb.com> Tested-by:
Nicolin Chen <nicolinc@nvidia.com> Signed-off-by:
Leon Romanovsky <leonro@nvidia.com> Acked-by:
Ankit Agrawal <ankita@nvidia.com> Link: https://lore.kernel.org/r/20251120-dmabuf-vfio-v9-8-d7f71607f371@nvidia.com Signed-off-by:
Alex Williamson <alex@shazbot.org>