From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D97BE1AAE17 for ; Mon, 18 Aug 2025 19:37:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755545853; cv=none; b=nbvORsriJjKSMERx65NatOUr/PlEnxjl1b8MFodWh2bxtu0X1oSK+NdvrxC4Ftcvtr9kLOIbN63Iu3NshMJedgR654IdShzVefSnsyrt2GKfWLLsI2vOXYZShF0NDaYKfW5L5I1ZZmGHTr1814/G+V+NRK6HthJRGbOi0RcvR/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755545853; c=relaxed/simple; bh=rhg2NJxJ5mO43ntv4w9E2cki3Mo3N/wwdWjKgaxcaDs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uNcDZNrXTKNOapXm2aLhxgPhO+aU2QNq2nHPfPJkKTHQFc5L29VxOpMjoL5PAmCAkxggJjEzHdeaB5zBxbgZ17ve6e7LNZJEZkIFdy4syBHt0+LZwxe8j/b8Ef9uWsDAm5iiBrC0DN+cu33pIdfYIhQyZvudM7WozjCMgodifvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hzZJ1eLC; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hzZJ1eLC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1755545850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NRwGIPM9YzpcmpC8C5YaTku6MLYLm0Rnqq0blqhQqmA=; b=hzZJ1eLC0JdoUTvQlQo9Ofy7sB+0ZiHPyz1gfsX6AlLlwkIQPFngGKz146CvaY+SisHgJ2 /HCOKReqK+ZRJNYH+RLOfAmhTUgxzrsgWn3KrbB5g35QdYmVDK79j4foH43zj5Jqu8KVmr EMAQDbFhXJdyFTqQK7r7oAuimvGrVak= Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-121-MdlllHi9MLCZ1t6ePjpApw-1; Mon, 18 Aug 2025 15:37:27 -0400 X-MC-Unique: MdlllHi9MLCZ1t6ePjpApw-1 X-Mimecast-MFC-AGG-ID: MdlllHi9MLCZ1t6ePjpApw_1755545846 Received: by mail-il1-f198.google.com with SMTP id e9e14a558f8ab-3e56ff87095so4067115ab.1 for ; Mon, 18 Aug 2025 12:37:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755545846; x=1756150646; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NRwGIPM9YzpcmpC8C5YaTku6MLYLm0Rnqq0blqhQqmA=; b=k8+jegju7z3ek5r1mB84/m0mCz02uWcfAwQ8dKzEmYsQbaiSIzicVTBIg7Ra+4tz4k gjaOjXOHYsGUYnWmfN12krvxvR51MnBRk9c/8HPhDDsFzXdA7fhTYSdI75Q9yziSMHyM 8TxOmFlz6R7wet3N6FPDmvVc/EQw0S3zAQchier7s0AKAtincFCggA4h35z0dsxfcOe8 nLnYpTyyrkZ6etNuIr/+SRbIAMYCNL6AVwyd48D+tIG2RrO5Xivjc4tat8f/S/avEBrq V5t/+EedIUsIOWoPkNXBNJ8y06h4HItinDAtRCkt7pexVWoU+f1HGtzAmhzlqjYCdg6u ZCjg== X-Forwarded-Encrypted: i=1; AJvYcCUY9l1sFtLiCaXQCIjOd9w5yypuzVyzTbf4dkCV9I6Tvp1ics1MWEjXRbJOoEZSSANQl5Bsmp0YL4M=@vger.kernel.org X-Gm-Message-State: AOJu0YzhS17c9hnsCKHW6OShGoRRxBPk426qqC4zUQ2QAOQ7dsKkUThB 1iTFM732y0FzyFf9GoZ6g/ToTdnY9TGEX+Tozo4DZ0t5yTxEfPchLUuZ5z4KwFSPEVqjd6p32d1 0axvoImM7VzdO5PTf487IHWrJD80KSnT5twrPJM2DhwRvFtTMCL6SQYu+BjI7yQ== X-Gm-Gg: ASbGncvAH8eHia3u4udshYxVvtUjr8SFwnGP0bhNlyum4t0NcnFeI1J2IsNY6GeAqKR X9qD1kDnKySch+zAFf/LEa0V6/Nqr9rqVEJY0zhT9JsBb0gZh0C3HK6atetpwhiwDvTa9MLV/C7 8E0VT+2NqGPmh+FRHiBQ6aAcNgUFb+QJYhz+OrhD/Pj8t0MPYoZOiPiuU3QLRvjiklwSOtahLA+ zOTiHxqxSDpBeGSKbLh+wEH6zeDVIdnJvVcWAfTOK04Egovi6QooIYQPgCi1Jass4P8H7Wd/QpL CW6BzkslgD7Q04J+19PmA8/85yrz0+Np/tTP0P5vjzM= X-Received: by 2002:a05:6e02:1521:b0:3e5:4179:18b2 with SMTP id e9e14a558f8ab-3e57e8a8e98mr63386685ab.4.1755545846390; Mon, 18 Aug 2025 12:37:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHzFV1UPl2Y8JCpvPx/xfIN66wYffY/ldAH7toTC04NV+nIb9zz1vQqgnyiqn5i3OMYn4z4Q== X-Received: by 2002:a05:6e02:1521:b0:3e5:4179:18b2 with SMTP id e9e14a558f8ab-3e57e8a8e98mr63386505ab.4.1755545845871; Mon, 18 Aug 2025 12:37:25 -0700 (PDT) Received: from redhat.com ([38.15.36.11]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-50c94993da8sm2746061173.52.2025.08.18.12.37.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Aug 2025 12:37:25 -0700 (PDT) Date: Mon, 18 Aug 2025 13:37:21 -0600 From: Alex Williamson To: David Matlack Cc: Jason Gunthorpe , Aaron Lewis , Adhemerval Zanella , Adithya Jayachandran , Andrew Jones , Ard Biesheuvel , Arnaldo Carvalho de Melo , Bibo Mao , Claudio Imbrenda , Dan Williams , Dave Jiang , dmaengine@vger.kernel.org, Huacai Chen , James Houghton , Joel Granados , Josh Hilke , Kevin Tian , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, "Mike Rapoport (Microsoft)" , Paolo Bonzini , Pasha Tatashin , "Pratik R. Sampat" , Saeed Mahameed , Sean Christopherson , Shuah Khan , Vinicius Costa Gomes , Vipin Sharma , Wei Yang , "Yury Norov [NVIDIA]" Subject: Re: [PATCH 00/33] vfio: Introduce selftests for VFIO Message-ID: <20250818133721.32b660e3.alex.williamson@redhat.com> In-Reply-To: References: <20250620232031.2705638-1-dmatlack@google.com> <20250728102737.5b51e9da.alex.williamson@redhat.com> <20250729222635.GU36037@nvidia.com> Organization: Red Hat Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 18 Aug 2025 11:59:39 -0700 David Matlack wrote: > On Thu, Jul 31, 2025 at 1:55=E2=80=AFPM David Matlack wrote: > > > > On Tue, Jul 29, 2025 at 3:26=E2=80=AFPM Jason Gunthorpe wrote: =20 > > > > > > On Mon, Jul 28, 2025 at 10:27:37AM -0600, Alex Williamson wrote: =20 > > > > On Fri, 25 Jul 2025 09:47:48 -0700 > > > > David Matlack wrote: =20 > > > > > 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 m= ost > > > > > sense. For now I added tools/testing/selftests/vfio under the > > > > > top-level VFIO section in MAINTAINERS (so you would be the mainta= iner) > > > > > and then also added a separate section for VFIO selftests with my= self > > > > > 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 prima= rily > > > > > worked on KVM in the past). =20 > > > > > > > > Hi David, > > > > > > > > There's a lot of potential here and I'd like to see it proceed. =20 > > > > > > +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. =20 > > > > 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. =20 >=20 > 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, Alex