RE: [PATCH v8 08/11] vfio/pci: Share the core device pointer while invoking feature functions
From: Tian, Kevin
Date: Tue Nov 18 2025 - 02:12:02 EST
> From: Leon Romanovsky <leon@xxxxxxxxxx>
> Sent: Tuesday, November 11, 2025 5:58 PM
>
> From: Vivek Kasireddy <vivek.kasireddy@xxxxxxxxx>
>
> 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@xxxxxxxxx>
> Tested-by: Alex Mastro <amastro@xxxxxx>
> Tested-by: Nicolin Chen <nicolinc@xxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>