vfio: selftests: Retry on EAGAIN during device reset

Add retry logic to vfio_pci_device_reset() to handle the case where PCI
resets fail due to lock contention, in which case
pci_try_reset_function() returns -EAGAIN.

Suggested-by: David Matlack <dmatlack@google.com>
Signed-off-by: Josh Hilke <jrhilke@google.com>
Acked-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20260805-igb_v3_b4-v10-3-9c86dc849c0d@google.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
This commit is contained in:
Josh Hilke 2026-08-05 00:21:00 +00:00 • committed by Alex Williamson
commit 28ca5f67e1
2 changed files with 20 additions and 1 deletions