[Intel-gfx] [PATCH v5 09/19] vfio/pci: Allow passing zero-length fd array in VFIO_DEVICE_PCI_HOT_RESET
Jason Gunthorpe
jgg at nvidia.com
Wed Mar 8 15:08:16 UTC 2023
On Wed, Mar 08, 2023 at 07:26:08AM +0000, Tian, Kevin wrote:
> * Userspace requests hot reset for the devices it uses. Due to the
> * underlying topology, multiple devices can be affected in the reset
> * while some might be opened by another user. To avoid interference
> * the calling user must ensure all affected devices, if opened, are
> * owned by itself.
> *
> * The ownership can be proved in three ways:
> * - An array of group fds
> * - An array of device fds
> * - A zero-length array
> *
> * In the last case all affected devices which are opened by this user must
> * have been bound to a same iommufd_ctx.
>
> and with this change let's rename 'group_fds' to 'fds'
Looks right
Jason
More information about the Intel-gfx
mailing list