> From: Liu, Yi L <[email protected]>
> Sent: Tuesday, February 21, 2023 11:48 AM
> 
> this suits more on what the code does.
> 
> Signed-off-by: Yi Liu <[email protected]>
> ---
>  drivers/vfio/pci/vfio_pci_core.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/vfio/pci/vfio_pci_core.c 
> b/drivers/vfio/pci/vfio_pci_core.c
> index 4704c1babae3..827524510f3f 100644
> --- a/drivers/vfio/pci/vfio_pci_core.c
> +++ b/drivers/vfio/pci/vfio_pci_core.c
> @@ -1308,8 +1308,7 @@ static int vfio_pci_ioctl_pci_hot_reset(struct
> vfio_pci_core_device *vdev,
>       }
> 
>       /*
> -      * For each group_fd, get the group through the vfio external user
> -      * interface and store the group and iommu ID.  This ensures the
> group
> +      * For each group_fd, get the group file, this ensures the group
>        * is held across the reset.

"Get the group file for each fd to ensure the group held across the reset"

btw I'm not sure whether it's worthy of being a separate patch. but if Alex is 
fine:

Reviewed-by: Kevin Tian <[email protected]>

>        */
>       for (file_idx = 0; file_idx < hdr.count; file_idx++) {
> --
> 2.34.1

Reply via email to