All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Hilke <jrhilke@google.com>
To: Alex Williamson <alex@shazbot.org>
Cc: Josh Hilke <jrhilke@google.com>,
	David Matlack <dmatlack@google.com>,
	kvm@vger.kernel.org,  linux-kernel@vger.kernel.org,
	Sean Christopherson <seanjc@google.com>,
	 Vipin Sharma <vipinsh@google.com>
Subject: [PATCH v11 0/2] vfio: selftests: Find supported devices for testing
Date: Thu,  3 Dec 2026 23:01:04 +0000	[thread overview]
Message-ID: <20261203230106.32033-1-jrhilke@google.com> (raw)

One last patchset to address a nit from David about verbiage. See
changelog for details. Thanks Sean and David for the reviews!

Changelog

v10 -> v11:
- Print "No usable devices found (run without -q for details)" when -q
  is passed without -a and no usable devices exist, instead of
  "No devices with a VFIO selftest driver found.".

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.

v10: https://lore.kernel.org/kvm/20261201170849.296378-1-jrhilke@google.com/
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    | 310 ++++++++++++++++++
 tools/testing/selftests/vfio/scripts/setup.sh |  41 ++-
 4 files changed, 367 insertions(+), 10 deletions(-)
 create mode 100755 tools/testing/selftests/vfio/scripts/list_supported_devices.sh


base-commit: 076d7e989cb69f6ded7d60f2a080eb909930061b
-- 
2.56.1.915.g69d5ec7298-goog


             reply	other threads:[~2026-12-03 23:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 23:01 Josh Hilke [this message]
2026-12-03 23:01 ` [PATCH v11 1/2] vfio: selftests: Require -f in setup.sh to unbind a bound device Josh Hilke
2026-12-03 23:01 ` [PATCH v11 2/2] vfio: selftests: Find devices that have VFIO selftest drivers Josh Hilke
2026-12-03 23:14   ` sashiko-bot
2026-12-04 23:24 ` [PATCH v11 0/2] vfio: selftests: Find supported devices for testing David Matlack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203230106.32033-1-jrhilke@google.com \
    --to=jrhilke@google.com \
    --cc=alex@shazbot.org \
    --cc=dmatlack@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=seanjc@google.com \
    --cc=vipinsh@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.