RE: [PATCH v2 10/10] vfio/pci: Add VFIO_DEVICE_GET_PCI_HOT_RESET_GROUP_INFO

Tian, Kevin
2023-03-30T01:10:19Z

> From: Jason Gunthorpe <jgg@nvidia.com>
> Sent: Wednesday, March 29, 2023 11:50 PM
>
> On Wed, Mar 29, 2023 at 09:41:26AM +0000, Tian, Kevin wrote:
>
> > We could extend bind_iommufd to return the group id or introduce a
> > new ioctl to query it per dev_id.
>
> > Once that is in place looks we don't need a new _INFO ioctl?
>
> The iommu_group and the reset group are different things
>
> The issue is processing the BDF strings, not the group ID.
>
> Probably we should have some way for iommufd to report the group_id
> from the dev_id?
>

Yes, that is my thought. Though iommu_group and reset group are
different things we could still leverage existing _INFO ioctl once there
is a way to associated dev_id to group_id.