All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v10 0/2] vfio: selftests: Find supported devices for testing
@ 2026-12-01 17:08 Josh Hilke
  2026-12-01 17:08 ` [PATCH v10 1/2] vfio: selftests: Require -f in setup.sh to unbind a bound device Josh Hilke
  2026-12-01 17:08 ` [PATCH v10 2/2] vfio: selftests: Find devices that have VFIO selftest drivers Josh Hilke
  0 siblings, 2 replies; 5+ messages in thread
From: Josh Hilke @ 2026-12-01 17:08 UTC (permalink / raw)
  To: Alex Williamson
  Cc: Josh Hilke, David Matlack, kvm, linux-kernel, Sean Christopherson,
	Vipin Sharma

This series makes it safer and easier to find and set up PCI devices
that have a VFIO selftest driver:

- Patch 1 makes setup.sh refuse to unbind devices bound to a driver
  other than vfio-pci unless -f is passed, and adds -h.
- Patch 2 adds list_supported_devices.sh to find devices on the host
  that have a VFIO selftest driver, showing their selftest driver path
  and current kernel driver binding, and updates vfio-selftests.rst.

Changelog

v9 -> v10:
- Add patch 1 to require -f in setup.sh before unbinding a device bound
  to a driver other than vfio-pci, and add -h.
- Print the current kernel driver binding via lib.sh get_driver() on
  each device line in list_supported_devices.sh.
- Print "No devices with a VFIO selftest driver found." to stderr and
  exit non-zero when no devices are printed, including under -q.
- Add -h to list_supported_devices.sh to print usage and exit 0.
- Use disable_denylist=Y in print_denylist_note() to match
  is_denylist_enforced() and vfio-selftests.rst.
- Add "Keep in sync with" comments on DEVICES and DENYLIST.
- Refactor list_supported_devices.sh main() into format_device_line(),
  scan_devices(), and print_devices().
- Document setup.sh -f and list_supported_devices.sh in
  Documentation/driver-api/vfio-selftests.rst.

v9: https://lore.kernel.org/kvm/20261120012553.3745742-1-jrhilke@google.com/
v8: https://lore.kernel.org/kvm/20261118064309.219592-1-jrhilke@google.com/
v7: https://lore.kernel.org/kvm/20261106051726.3964374-1-jrhilke@google.com/
v6: https://lore.kernel.org/kvm/20260602222941.3133236-1-jrhilke@google.com/
v5: https://lore.kernel.org/kvm/20260602185615.3025904-1-jrhilke@google.com/

Josh Hilke (2):
  vfio: selftests: Require -f in setup.sh to unbind a bound device
  vfio: selftests: Find devices that have VFIO selftest drivers

 Documentation/driver-api/vfio-selftests.rst   |  25 +-
 tools/testing/selftests/vfio/Makefile         |   1 +
 .../vfio/scripts/list_supported_devices.sh    | 306 ++++++++++++++++++
 tools/testing/selftests/vfio/scripts/setup.sh |  41 ++-
 4 files changed, 363 insertions(+), 10 deletions(-)
 create mode 100755 tools/testing/selftests/vfio/scripts/list_supported_devices.sh


base-commit: 076d7e989cb69f6ded7d60f2a080eb909930061b
-- 
2.56.1.839.g22a8290db9-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-02 22:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 17:08 [PATCH v10 0/2] vfio: selftests: Find supported devices for testing Josh Hilke
2026-12-01 17:08 ` [PATCH v10 1/2] vfio: selftests: Require -f in setup.sh to unbind a bound device Josh Hilke
2026-12-02 22:32   ` David Matlack
2026-12-01 17:08 ` [PATCH v10 2/2] vfio: selftests: Find devices that have VFIO selftest drivers Josh Hilke
2026-12-02 22:34   ` David Matlack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.