Re: [PATCH v10 2/2] vfio: selftests: Find devices that have VFIO selftest drivers

From: David Matlack

Date: Wed Dec 02 2026 - 17:35:07 EST


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@xxxxxxxxxx>
> Signed-off-by: Josh Hilke <jrhilke@xxxxxxxxxx>

Thanks for your persistence on this Josh!

Reviewed-by: David Matlack <dmatlack@xxxxxxxxxx>

> + 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)"