Re: [PATCH v10 1/2] vfio: selftests: Require -f in setup.sh to unbind a bound device
From: David Matlack
Date: Wed Dec 02 2026 - 17:32:13 EST
On Tue Dec 1, 2026 at 9:08 AM PST, Josh Hilke wrote:
> Make setup.sh refuse to set up a device that is currently bound to a
> driver other than vfio-pci unless -f is passed. Devices that are unbound
> or already bound to vfio-pci do not require -f.
>
> Validate all device arguments before modifying any device so a refused
> device does not leave partial state behind.
>
> Also add -h to print usage and exit 0, and document -f in
> Documentation/driver-api/vfio-selftests.rst.
>
> Suggested-by: David Matlack <dmatlack@xxxxxxxxxx>
> Signed-off-by: Josh Hilke <jrhilke@xxxxxxxxxx>
Reviewed-by: David Matlack <dmatlack@xxxxxxxxxx>