All of lore.kernel.org
 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 1/2] vfio: selftests: Require -f in setup.sh to unbind a bound device
Date: Wed, 02 Dec 2026 14:32:04 -0800	[thread overview]
Message-ID: <DNALQN7E674P.27T3GS8DA0F3P@google.com> (raw)
In-Reply-To: <20261201170849.296378-2-jrhilke@google.com>

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

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

  reply	other threads:[~2026-12-02 22:32 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 [this message]
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

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=DNALQN7E674P.27T3GS8DA0F3P@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 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.