Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex@shazbot.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Josh Hilke <jrhilke@google.com>,
	David Matlack <dmatlack@google.com>,
	Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
	Sagi Grimberg <sagi@grimberg.me>,
	linux-nvme@lists.infradead.org, kvm@vger.kernel.org,
	linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org, alex@shazbot.org
Subject: Re: [PATCH v2] vfio: selftests: Add NVMe driver
Date: Fri, 4 Dec 2026 09:11:15 -0700	[thread overview]
Message-ID: <20261204091115.6a24dd76@shazbot.org> (raw)
In-Reply-To: <20261204082456.GA17602@lst.de>

On Fri, 4 Dec 2026 09:24:56 +0100
Christoph Hellwig <hch@lst.de> wrote:

> On Fri, Dec 04, 2026 at 01:52:03AM +0000, Josh Hilke wrote:
> > Add a VFIO selftest driver for NVMe controllers. It binds to any PCI
> > function with the NVMe PCI class code 01:08:02, so vfio_pci_driver_test
> > can run on the NVMe SSDs that are common in servers, and on the nvme
> > device that QEMU emulates.  
> 
> Err, what?  I really don't think the kernel tree is the place for
> userland nvme drivers.  Use one of the existing well-tested ones like
> SPDK to write your tests, please.

This is a device specific selftest driver, not a general purpose
userspace NVMe driver.  We're implementing low-level tests around
DMA memory copies and interrupt generation.  NVMe is an interesting
device for this as it has the potential to support p2p DMA and
migration.  It's also ubiquitous.

Full function drivers like SPDK do not provide this low level
granularity of testing.  We're trying to test the vfio interface, not
validate a full stack userspace driver.  Thanks,

Alex


      reply	other threads:[~2026-12-04 16:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  1:52 [PATCH v2] vfio: selftests: Add NVMe driver Josh Hilke
2026-12-04  2:15 ` sashiko-bot
2026-12-04  8:24 ` Christoph Hellwig
2026-12-04 16:11   ` Alex Williamson [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=20261204091115.6a24dd76@shazbot.org \
    --to=alex@shazbot.org \
    --cc=axboe@kernel.dk \
    --cc=dmatlack@google.com \
    --cc=hch@lst.de \
    --cc=jrhilke@google.com \
    --cc=kbusch@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=sagi@grimberg.me \
    /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