From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.177 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796250896; b=KwsxQVTPGyGJakJkeN1Xt159iRRbEYI4u0oKt2upjvN/wXio1aQbwr3ehywf2iRpRoIx YaGwIYU30+XzMAiL93P4ctIB0xgKSB0lfnERiuLJBRFftydPysdw5SEj1xP0Akffd+sG0 oMUXkamP0gqdtn6JfVTdq8HKOuqUYnvSW+eafUQ8tLrQxRXQ0COCACwmiqVKaslcVyDIJ aL5OarD00qQtzyigUMd4uD3aKx/oO1oGJFOssfyBh45HK/azrGCw7isj+EiSjZNUBY64I X1P63BzrXrAmhzvxrR5aGIg3ZV50QPpOgGWw8mpGRJWNFej3YSsikukguUfGsp3FMSQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796250896; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: Cc:Subject:From:To:X-Mailer:References:In-Reply-To; bh=19mYb2cucEyLJBOb69lp4koTiydgWg8ZoAKw8xhArjQ=; b=aC9Cib93PeESlp33IvfsmxJu7QjQ+ek2BuWHaRjR75E/aCpyQO/w1Pafvp/gY2u4cViM 7hsRNBcmmiT7IG3VCQOLX2ssJ1YZZ8rp/f5dBwT1I+sVvzcrPDZUKqwNqN/6nOP8OJcDG LENFFISUG0N9lDjZg3eKVBYs/fGZUKiJgBXc+8o6wLOhP0Sz2L66VXOXobMS1lozD7z+T 13rpQzsskqnL0rFSQljKx4Jrkxo0ktwkWZD2gYs8vjFZd2DfZ9ipBD9zhLbBln4Vv7fJa A+9yOpdERkbgSKsNs2g+fC/ZoCRMe9txDV6KNJSh0XJUciglGJp6Uw4B/9PFHajgB8Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=o1zFYarX; arc=none smtp.remote-ip=209.85.215.177 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93B09606A322 for ; Wed, 2 Dec 2026 22:34:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 93B09606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=o1zFYarX Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-cd6acc50b8dso6942332a12.3 for ; Wed, 02 Dec 2026 14:34:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796250895; x=1796855695; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=19mYb2cucEyLJBOb69lp4koTiydgWg8ZoAKw8xhArjQ=; b=o1zFYarXPqLPdlwzHmyt0V7xpGSSWLiijXuR42U5BbFFFEoO3QTOUCCdXC6hrATwTE 7DicFp/KGwiJdWkUds3yd6YefWm+9x2flf8nQBApbHc4NPjTcTsfoqdedVhPIfSD82Ir DL8+I1Rx672IL8B6zR4cbZdKdMQlArT9GNTGXKsp3CRQ+Wv4Y3R5JqCYi6KBJlAm+EmC o7S8J07yitD0jOxpEJLQxIopvhjG9+d4oRyGtuMooYvhh/Ij1K4fw2FmhuX0gWVfRnFC RYAx8EHE0GsqBIE2+fxNENKZ7Ols9cNIg3Ji20j2aDi1/8xJgzSaSkICLwzr7H3oQFt4 ysMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796250895; x=1796855695; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=19mYb2cucEyLJBOb69lp4koTiydgWg8ZoAKw8xhArjQ=; b=wprkgXoMK8DyPICwG+8V6hjHSVtoQxVhJcHjpN981aarcs/rNzxAogkY5eubvBvh8r R4k9Qw+o+AOV9SA5c10Z0vZHKnzy7Aa1EfrRuwYMHXLXBsieKORbGbYgb1g5zF3Sd09l r7KCmbTiSMLta35/XzBFd3gocBK95nm1oSydq1VVbOScftOO+rN56yq6zHwVEDkdgFxz EbkzmCfBx2iYRuSKeC398rqYXFl9iAnfQIzhr0JVmfM1n24+uuO6dszh3jzn852CAFE2 T0m6/o5Yv+mrbiYUJdQHbHa8ZXUC0fOK29CbdadhB1iMiK8aXh9FELwwkcawdpUnefct EK4w== X-Forwarded-Encrypted: i=1; AL+hErGr3DWZbSWAaWBnurVbqnW0fE4G3Zvku6XYtEY3k8lbYHMqvJEfIGwJ9G8mjhPagkvKCJk=@vger.kernel.org X-Gm-Message-State: APuU4Z8lAqdw/jjm8v8y9tRDzYFP5CQ85ZWcrB4rGrQ+j9qrLhCvM4oz WUUW1t17P2/j+DnohUMWxfHi899gn/E0okqXGSJ1Gwp77yBC9BVbYJYaI4hgqYdwkg== X-Gm-Gg: AZFdTZf4buBJu7vd85J45z/GzaaaGhjefEEtuUu0WNLRBoms/uLebgDT1rrUD+lYIDr 35TKiw2TajkPVgW25Vz1KfoCMFDcv+RHxirFbzF7jbdPz0coe2YbT/Bvd5Q5UkJHwVtS2c2XYhe 8A/y6uQK1JxfcYsWll/zgLwIBihEYFpzbPpoYmh24/uwusZpwCgbxM6u9gnp0Dv3mZz/2B0+8ms B0UaNUT5+WFhXoFInUpe5BXmrsJiCcGvVs8t5FIp3ZQ4TXbeIhDj15AUVNOo1IfQB2dCoM0ts8N e02jjSCxpR1ETFOiuly4WDvsTvKwj2vEEg3uQEIZLEkLep/G3GYfhrmU+SWSoClVUl3GZFAm4Or P9UT6zuOe4NRdTNpSERrYOtFq/AcmhHiosP7lad/uf24YY/Vn7vT8pc0GsHekucpbmfvx7C0bV/ wWrW7TZiPXgSjAB1ZgFS2be3nnLYDcfNaMrI1SHUo0bgVIqw2Z7C3ElquI1d/7fBNjDKmAIe5pn lHCFoWhMv5dAn5iqMaxMYr39VNPZeyvA5FKyOb8J6JV4gK4UZY32EGOu05188WSsOpOIqx4ysAh ILJtOeI0Q8VwtM82Mc4+7z9UXQCbT5DqblL+9CS6Ef8G0WA/gurryPaQvzFvOM11WcynrS3K29/ Y+jbBypOZSA== X-Received: by 2002:a17:90b:5109:b0:39e:6a7e:ee18 with SMTP id 98e67ed59e1d1-3b41c9157acmr41237567a91.36.1796250894306; Wed, 02 Dec 2026 14:34:54 -0800 (PST) Received: from localhost (33.79.127.34.bc.googleusercontent.com. [34.127.79.33]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d10d06sm1152911a91.3.2026.12.02.14.34.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 14:34:53 -0800 (PST) X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 02 Dec 2026 14:34:53 -0800 Message-Id: Cc: "David Matlack" , , , "Sean Christopherson" , "Vipin Sharma" Subject: Re: [PATCH v10 2/2] vfio: selftests: Find devices that have VFIO selftest drivers From: "David Matlack" To: "Josh Hilke" , "Alex Williamson" X-Mailer: aerc 0.21.0 References: <20261201170849.296378-1-jrhilke@google.com> <20261201170849.296378-3-jrhilke@google.com> 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=3DY, 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 > Signed-off-by: Josh Hilke Thanks for your persistence on this Josh! Reviewed-by: David Matlack > + 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)"