dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: David Matlack <dmatlack@google.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>,
	Aaron Lewis <aaronlewis@google.com>,
	Adhemerval Zanella <adhemerval.zanella@linaro.org>,
	Adithya Jayachandran <ajayachandra@nvidia.com>,
	Andrew Jones <ajones@ventanamicro.com>,
	Ard Biesheuvel <ardb@kernel.org>,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Bibo Mao <maobibo@loongson.cn>,
	Claudio Imbrenda <imbrenda@linux.ibm.com>,
	Dan Williams <dan.j.williams@intel.com>,
	Dave Jiang <dave.jiang@intel.com>,
	dmaengine@vger.kernel.org, Huacai Chen <chenhuacai@kernel.org>,
	James Houghton <jthoughton@google.com>,
	Joel Granados <joel.granados@kernel.org>,
	Josh Hilke <jrhilke@google.com>,
	Kevin Tian <kevin.tian@intel.com>,
	kvm@vger.kernel.org, linux-kselftest@vger.kernel.org,
	"Mike Rapoport (Microsoft)" <rppt@kernel.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Pasha Tatashin <pasha.tatashin@soleen.com>,
	"Pratik R. Sampat" <prsampat@amd.com>,
	Saeed Mahameed <saeedm@nvidia.com>,
	Sean Christopherson <seanjc@google.com>,
	Shuah Khan <shuah@kernel.org>,
	Vinicius Costa Gomes <vinicius.gomes@intel.com>,
	Vipin Sharma <vipinsh@google.com>,
	Wei Yang <richard.weiyang@gmail.com>,
	"Yury Norov [NVIDIA]" <yury.norov@gmail.com>
Subject: Re: [PATCH 00/33] vfio: Introduce selftests for VFIO
Date: Thu, 21 Aug 2025 14:10:48 -0600	[thread overview]
Message-ID: <20250821141048.6e16e546.alex.williamson@redhat.com> (raw)
In-Reply-To: <CALzav=eOz+Gf8XawvaSSBHj=8gQg3O9T9dJcN6q4eqh7_MEPDw@mail.gmail.com>

On Mon, 18 Aug 2025 13:33:52 -0700
David Matlack <dmatlack@google.com> wrote:

> On Mon, Aug 18, 2025 at 12:37 PM Alex Williamson
> <alex.williamson@redhat.com> wrote:
> >
> > On Mon, 18 Aug 2025 11:59:39 -0700
> > David Matlack <dmatlack@google.com> wrote:
> >  
> > > On Thu, Jul 31, 2025 at 1:55 PM David Matlack <dmatlack@google.com> wrote:  
> > > >
> > > > On Tue, Jul 29, 2025 at 3:26 PM Jason Gunthorpe <jgg@nvidia.com> wrote:  
> > > > >
> > > > > On Mon, Jul 28, 2025 at 10:27:37AM -0600, Alex Williamson wrote:  
> > > > > > On Fri, 25 Jul 2025 09:47:48 -0700
> > > > > > David Matlack <dmatlack@google.com> wrote:  
> > > > > > > I also was curious about your thoughts on maintenance of VFIO
> > > > > > > selftests, since I don't think we discussed that in the RFC. I am
> > > > > > > happy to help maintain VFIO selftests in whatever way makes the most
> > > > > > > sense. For now I added tools/testing/selftests/vfio under the
> > > > > > > top-level VFIO section in MAINTAINERS (so you would be the maintainer)
> > > > > > > and then also added a separate section for VFIO selftests with myself
> > > > > > > as a Reviewer (see PATCH 01). Reviewer felt like a better choice than
> > > > > > > Maintainer for myself since I am new to VFIO upstream (I've primarily
> > > > > > > worked on KVM in the past).  
> > > > > >
> > > > > > Hi David,
> > > > > >
> > > > > > There's a lot of potential here and I'd like to see it proceed.  
> > > > >
> > > > > +1 too, I really lack time at the moment to do much with this but I'm
> > > > > half inclined to suggest Alex should say it should be merged in 6
> > > > > weeks (to motivate any reviewing) and we can continue to work on it
> > > > > in-tree.
> > > > >
> > > > > As they are self tests I think there is alot more value in having the
> > > > > tests than having perfect tests.  
> > > >
> > > > They have been quite useful already within Google. Internally we have
> > > > something almost identical to the RFC and have been using that for
> > > > testing our 6.6-based kernel continuously since March. Already they
> > > > have caught one (self-inflicted) regression where 1GiB HugeTLB pages
> > > > started getting mapped with 2MiB mappings in the IOMMU, and have been
> > > > very helpful with new development (e.g. Aaron's work, and Live Update
> > > > support).
> > > >
> > > > So I agree, it's probably net positive to merge early and then iterate
> > > > in-tree. Especially since these are only tests and not e.g.
> > > > load-bearing kernel code (although I still want to hold a high bar for
> > > > the selftests code).
> > > >
> > > > The only patches to hold off merging would be 31-33, since those
> > > > should probably go through the KVM tree? And of course we need Acks
> > > > for the drivers/dma/{ioat,idxd} changes, but the changes there are
> > > > pretty minor.  
> > >
> > > Alex, how would you like to proceed?  
> >
> > I think we need an ack from Shuah for the overall inclusion in
> > tools/testing/selftests/
> >
> > AFAICT the tools include files don't seem to have any central
> > authority, so maybe we just need to chase those ioat/idxd acks, along
> > with Shuah's and we can get this rolling and follow-up with the latter
> > KVM patches once the base is merged.  Thanks,  
> 
> Sounds good.
> 
> And yeah, I also don't see any maintainers listed for tools/include/
> or tools/arch/x86/include/. Jason left some comments on the RFC that
> reduced the delta in v1, but that's the only feedback I've gotten so
> far there.
> 
> I will try emailing Shuah and the ioat/idxd maintainers directly as a
> next step, since it has been about 2 months since I posted this series
> and we haven't heard anything yet.
> 
> Thanks for the help.

I think we have all the required acks now and reviews just suggest some
minor patch shuffling, right?.  You were also going to switch from
reviewer to maintainer of the selftests in MAINTAINERS ;)

Are you planning to collect those acks, add the minor changes, drop the
trailing KVM changes to come in through the existing kvm selftests and
repost?

With KVM Forum coming up, I'd like to try to get this squared away and
into the vfio next branch by next week.  Thanks,

Alex


  reply	other threads:[~2025-08-21 20:10 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-20 23:19 [PATCH 00/33] vfio: Introduce selftests for VFIO David Matlack
2025-06-20 23:19 ` [PATCH 01/33] selftests: Create tools/testing/selftests/vfio David Matlack
2025-06-20 23:20 ` [PATCH 02/33] vfio: selftests: Add a helper library for VFIO selftests David Matlack
2025-06-20 23:20 ` [PATCH 03/33] vfio: selftests: Introduce vfio_pci_device_test David Matlack
2025-06-26 11:27   ` Sairaj Kodilkar
2025-06-26 11:44     ` Sairaj Kodilkar
2025-06-26 16:29       ` David Matlack
2025-06-27  4:57         ` Sairaj Kodilkar
2025-06-27 23:08           ` David Matlack
2025-06-30  6:18             ` Sairaj Kodilkar
2025-06-20 23:20 ` [PATCH 04/33] vfio: selftests: Test basic VFIO and IOMMUFD integration David Matlack
2025-06-20 23:20 ` [PATCH 05/33] vfio: selftests: Move vfio dma mapping test to their own file David Matlack
2025-06-20 23:20 ` [PATCH 06/33] vfio: selftests: Add test to reset vfio device David Matlack
2025-06-20 23:20 ` [PATCH 07/33] vfio: selftests: Add DMA mapping tests for 2M and 1G HugeTLB David Matlack
2025-06-20 23:20 ` [PATCH 08/33] vfio: selftests: Validate 2M/1G HugeTLB are mapped as 2M/1G in IOMMU David Matlack
2025-06-20 23:20 ` [PATCH 09/33] tools headers: Add stub definition for __iomem David Matlack
2025-06-20 23:20 ` [PATCH 10/33] tools headers: Import asm-generic MMIO helpers David Matlack
2025-06-20 23:20 ` [PATCH 11/33] tools headers: Import x86 MMIO helper overrides David Matlack
2025-06-20 23:20 ` [PATCH 12/33] tools headers: Import iosubmit_cmds512() David Matlack
2025-08-18 23:25   ` Vinicius Costa Gomes
2025-08-18 23:46     ` David Matlack
2025-06-20 23:20 ` [PATCH 13/33] tools headers: Add symlink to linux/pci_ids.h David Matlack
2025-06-20 23:20 ` [PATCH 14/33] vfio: selftests: Keep track of DMA regions mapped into the device David Matlack
2025-06-20 23:20 ` [PATCH 15/33] vfio: selftests: Enable asserting MSI eventfds not firing David Matlack
2025-06-20 23:20 ` [PATCH 16/33] vfio: selftests: Add a helper for matching vendor+device IDs David Matlack
2025-06-20 23:20 ` [PATCH 17/33] vfio: selftests: Add driver framework David Matlack
2025-06-20 23:20 ` [PATCH 18/33] vfio: sefltests: Add vfio_pci_driver_test David Matlack
2025-06-20 23:20 ` [PATCH 19/33] dmaengine: ioat: Move system_has_dca_enabled() to dma.h David Matlack
2025-08-19 22:07   ` Dave Jiang
2025-06-20 23:20 ` [PATCH 20/33] vfio: selftests: Add driver for Intel CBDMA David Matlack
2025-08-19 22:07   ` Dave Jiang
2025-06-20 23:20 ` [PATCH 21/33] dmaengine: idxd: Allow registers.h to be included from tools/ David Matlack
2025-08-18 23:26   ` Vinicius Costa Gomes
2025-06-20 23:20 ` [PATCH 22/33] vfio: selftests: Add driver for Intel DSA David Matlack
2025-08-18 23:41   ` Vinicius Costa Gomes
2025-08-19 16:31     ` David Matlack
2025-08-19 18:52       ` Vinicius Costa Gomes
2025-06-20 23:20 ` [PATCH 23/33] vfio: selftests: Move helper to get cdev path to libvfio David Matlack
2025-06-20 23:20 ` [PATCH 24/33] vfio: selftests: Encapsulate IOMMU mode David Matlack
2025-06-20 23:20 ` [PATCH 25/33] vfio: selftests: Replicate tests across all iommu_modes David Matlack
2025-06-20 23:20 ` [PATCH 26/33] vfio: selftests: Add vfio_type1v2_mode David Matlack
2025-06-20 23:20 ` [PATCH 27/33] vfio: selftests: Add iommufd_compat_type1{,v2} modes David Matlack
2025-06-20 23:20 ` [PATCH 28/33] vfio: selftests: Add iommufd mode David Matlack
2025-06-20 23:20 ` [PATCH 29/33] vfio: selftests: Make iommufd the default iommu_mode David Matlack
2025-06-20 23:20 ` [PATCH 30/33] vfio: selftests: Add a script to help with running VFIO selftests David Matlack
2025-06-20 23:20 ` [PATCH 31/33] KVM: selftests: Build and link sefltests/vfio/lib into KVM selftests David Matlack
2025-06-20 23:20 ` [PATCH 32/33] KVM: selftests: Test sending a vfio-pci device IRQ to a VM David Matlack
2025-06-20 23:20 ` [PATCH 33/33] KVM: selftests: Add -d option to vfio_pci_device_irq_test for device-sent MSIs David Matlack
2025-07-25 16:47 ` [PATCH 00/33] vfio: Introduce selftests for VFIO David Matlack
2025-07-28 16:27   ` Alex Williamson
2025-07-29 22:26     ` Jason Gunthorpe
2025-07-31 20:55       ` David Matlack
2025-08-18 18:59         ` David Matlack
2025-08-18 19:37           ` Alex Williamson
2025-08-18 20:33             ` David Matlack
2025-08-21 20:10               ` Alex Williamson [this message]
2025-08-21 21:03                 ` David Matlack
2025-08-19 14:50             ` Shuah Khan
2025-08-05 15:08 ` Joel Granados
2025-08-12 15:04   ` David Matlack
2025-08-19 17:48     ` 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=20250821141048.6e16e546.alex.williamson@redhat.com \
    --to=alex.williamson@redhat.com \
    --cc=aaronlewis@google.com \
    --cc=acme@redhat.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=ajayachandra@nvidia.com \
    --cc=ajones@ventanamicro.com \
    --cc=ardb@kernel.org \
    --cc=chenhuacai@kernel.org \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=dmatlack@google.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=jgg@nvidia.com \
    --cc=joel.granados@kernel.org \
    --cc=jrhilke@google.com \
    --cc=jthoughton@google.com \
    --cc=kevin.tian@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=maobibo@loongson.cn \
    --cc=pasha.tatashin@soleen.com \
    --cc=pbonzini@redhat.com \
    --cc=prsampat@amd.com \
    --cc=richard.weiyang@gmail.com \
    --cc=rppt@kernel.org \
    --cc=saeedm@nvidia.com \
    --cc=seanjc@google.com \
    --cc=shuah@kernel.org \
    --cc=vinicius.gomes@intel.com \
    --cc=vipinsh@google.com \
    --cc=yury.norov@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).