The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "David Matlack" <dmatlack@google.com>
To: "Josh Hilke" <jrhilke@google.com>, "Alex Williamson" <alex@shazbot.org>
Cc: "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: Re: [PATCH v10 2/2] vfio: selftests: Find devices that have VFIO selftest drivers
Date: Wed, 02 Dec 2026 14:34:53 -0800	[thread overview]
Message-ID: <DNALSSH816R0.UDGQZY15XSBU@google.com> (raw)
In-Reply-To: <20261201170849.296378-3-jrhilke@google.com>

On Tue Dec 1, 2026 at 9:08 AM PST, Josh Hilke wrote:
> Add list_supported_devices.sh to print the PCI addresses, names,
> selftest driver paths, and current kernel driver bindings of devices on
> the host that have a VFIO selftest driver. Group the output into
> sections based on whether vfio-pci is loaded, whether the vfio-pci
> denylist blocks the device, and whether a GPU requires an architecture
> check at probe time.
>
> Match NVIDIA GPUs by vendor ID and PCI display class, since nv_falcon
> identifies compatible GPUs by reading BAR0 rather than by PCI device
> ID. Group them under "Possibly supported", list the valid GPU
> architectures, and warn that nv_falcon skips MSI tests.
>
> Add -q to print only the PCI addresses of usable devices so scripts can
> consume them or pass them to setup.sh, -a for use with -q to include
> unusable devices as well, and -h to print usage and exit 0. Print a
> message to stderr and exit non-zero when no devices are printed.
>
> When vfio-pci is loaded with disable_denylist=Y, the script lists the
> denylisted devices under "Supported (on denylist, but denylist
> disabled):" and includes them in the -q output. When vfio-pci is not
> loaded, the script lists all devices as unusable and omits them from -q
> unless -a is also passed.
>
> Suggested-by: Sean Christopherson <seanjc@google.com>
> Signed-off-by: Josh Hilke <jrhilke@google.com>

Thanks for your persistence on this Josh!

Reviewed-by: David Matlack <dmatlack@google.com>

> +	if [ -z "${printed}" ]; then
> +		echo "No devices with a VFIO selftest driver found." >&2
> +		return 1
> +	fi

nit: Maybe "No usable devices found (run without -q for details)"

      reply	other threads:[~2026-12-02 22:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=DNALSSH816R0.UDGQZY15XSBU@google.com \
    --to=dmatlack@google.com \
    --cc=alex@shazbot.org \
    --cc=jrhilke@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox