[Intel-gfx] [PATCH v3 02/12] vfio/pci: Only check ownership of opened devices in hot reset
Jason Gunthorpe
jgg at nvidia.com
Wed Apr 5 11:41:55 UTC 2023
On Tue, Apr 04, 2023 at 05:59:01PM +0200, Eric Auger wrote:
> > but the hot reset shall fail as the group is not owned by the user.
>
> sure it shall but I fail to understand if the reset fails or the device
> plug is somehow delayed until the reset completes.
It is just racy today - vfio_pci_dev_set_resettable() doesn't hold any
locks across the pci_walk_bus() check to prevent hot plug in while it is
working on the reset.
Jason
More information about the Intel-gfx
mailing list