From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796052513; b=2697Gbaj1nmc+yLPEQY/tD7Uf2e/+ZNovrhPNVhvbMn/dhBXoHJs2AxECohPBjWx4cCZ 7qGFYt/b4bbnPA8Jqii2U/SPqZWKpFBT3WpoJ6YHejBeYzc42K2x7Ki1d2u4rffzAo4ce fx6M2ODeiyCZfPqJeYPb5flOEMTJZDGamG8PN8uwVAcOblDUKe6iPPVYQQ6humWTGrWBS JQ+LFXc25uVUcQEosQXGtwYHMlj1XbEHt3mutG/ai4txRVsum5bGQvrlQ24tSNFe+snyq ajrQqbdlUoebah7eg7ki2nN/0XN+av6VPVlg62Yv9ruVG9owM6+FTtJf65847O0Lzag== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796052513; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=d8vKOm7VnbyhZx+y5NJ/tPt1nRv5OjF7AlTfX+7bj0c=; b=eR0MyZTG/13TJPDrZvyD4jUsagxqFCB9RujWO42rZdivWhgCDLIb4u4QDFU3MklHzWfs DlFOfMasJ3zbaXTJSzqGVM9KYrX7PW3EfSsfeRTP9B3FdNWubd45dnj8AhRW9cPPgtUxC GU0vr2TRtwjSsLRdrAOkKPjLoghc6QWqBRtKcGvEMCCIAjMjfmyLwTgZAwwl61loD84YN ZyUDxXvkR6VxmSf5lenhbnOfpl6JDprdnpOAwADkDeb4l6NCqezE8DpZJvnScEiNo7wos h11ZoRP0wvmNg2EjbQRxzOWM7Ex9aUBuq+YTFWl8E6Fdic/OnUA/MYe4+mvxct786vw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=JH5oQ6dC; arc=none smtp.remote-ip=209.85.214.180 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4EEEC606A320 for ; Mon, 30 Nov 2026 15:28:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4EEEC606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=JH5oQ6dC Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2f0afdb97abso446895ad.1 for ; Mon, 30 Nov 2026 07:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796052513; x=1796657313; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=d8vKOm7VnbyhZx+y5NJ/tPt1nRv5OjF7AlTfX+7bj0c=; b=JH5oQ6dCX7cxRLoOuo3fa3mCUGXjB/ztNYi5E5h5Gjb1LjyRQdNiBzFUUKVHkjVPeY gaKMir1g50GfMTYvic1RaahY2w2+saGXVeuHsoOBqf9ZqFPYdDxSMG0EAIXMyL41zxGY BFp4oQ4mvnwDAi96zH+vKviC2+EMaHKra4xH1awpwPH2yvGLZ/TxfMJWJ2j+p4RABw/b Wn5Po8YLs3g5dk42laJZK7lGY48T/gbavni6Yrv78cnIOAuT61FNpTY0Y5cuMzhuhcZ3 NodnTwBjKddI7CX+MwpUGR0Y4WxFjVQgrj4Wg5G8DTPFSrpCtiZQqTNN8oaO5MYO+gx6 DXmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796052513; x=1796657313; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=d8vKOm7VnbyhZx+y5NJ/tPt1nRv5OjF7AlTfX+7bj0c=; b=j9xGdXaJO8jbihDAGHB7uXApzIHbySdZS1dnsAXVa/PyIxobD38w7BwEEFur+CaJIl L631REGhHK/1wMXr8+McCt83jLBTA3II1sgNZBd5yitjUK0/lFZHtJijpEYnxgrTIf6c tZcbCVoxhC/SlfhVSa3yl85rjgSrQvdC6jLBgN5iLT+DV4MoJhJOkN6qcO89ZiMuSMdQ vWwY74ynm9GWOZbKrC51DxO6+gkwNGtQemhjUC3NpzwfZkRbdTljDflLxm92R8ha8+cG cBGktcMwFSe+38k/h48IX3wHWw96BCfq8kurkLJwr00ao1vdSZHXKnfYgjnGjlTDrj2b YDeg== X-Forwarded-Encrypted: i=1; AL+hErGNS8w2Khpn9La3WbfUaobhGx4Tek/arBP2KRE1UNhctkY1vNaFJLeVTaHqRQusJtmx58xZWXr9GauuI2xBZ0s=@vger.kernel.org X-Gm-Message-State: APuU4Z/OgXF3VXUA1tfKfXetTNEIxT7mjech4/8ZWPH2zgSD/DpN6AK3 gl1Q0+5bT1u2dyPIh0eT203ZSG+5WnPJ27OjE8RnCDPMjLhD3yxQRh63/rfSoLf1xA== X-Gm-Gg: AZFdTZeYB7y1u91leQxHqSen/nmhUASJgzBjjQ3V4FHgPrx5ANk7RwGK4K47HVW2wi0 /aw41KUgfYEM1/Oy5TLmQkdDVt5ww4jCFe89ca9r5R0b/FQYphIphyn6vZNuBgKpVrHQcYX7cLt 4TKH3CGY0vB+7vVVZ8htA9xASGGQkZjCi6PlY5HVUc2TCU1ycti7jPJxto5w2nwd/FYZQgY7wlq 0ZacO5DypXzw+/MMAWLfSY5hZwFWN6NkeZs0k2i3KaxbRcLEwPZnKYkwVgXPqjQBLeEUF9aAj+n iDxKKIVhOu+qtOtAObgrx9cJRfADCLiGzeEAPienc7Loft0RvkYks1vq4m8HRiTqUq2Z+kPSeYY XM4WV7Kv1UC3T5dOxSsCWPRP1ij+UqZzoGG11fcUKVdc4T+MlFWIdrYlm78hh7kVCntmcC9CcpX 9Hm+GZ+p+c0eOIQUSJHY73tMmuN5D78VqvJPZwEC8m+2H64aWENo2jjSuNMDI2jyeWcTNSSxP98 0y+pUUejkf/tc0tG2rZxmn+Z+Co8BKv4jeZP1fCzNWEymdxgq0JOV+Zb637IPrTk8cS6KvYxXRt 5ZeDdHvmpsFfT5egRn6xvpOEu3mJCL8O9xHMtavYXFIJgc4i/MIsagxZ67D9hJiBx1w= X-Received: by 2002:a17:902:cf42:b0:2eb:19f0:6e2a with SMTP id d9443c01a7336-2f066571064mr29044095ad.8.1796052512113; Mon, 30 Nov 2026 07:28:32 -0800 (PST) Received: from google.com (105.211.142.34.bc.googleusercontent.com. [34.142.211.105]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f1207f1sm167915035ad.64.2026.11.30.07.28.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 07:28:30 -0800 (PST) Date: Mon, 30 Nov 2026 15:28:22 +0000 From: Pranjal Shrivastava To: David Matlack Cc: Joerg Roedel , Will Deacon , Robin Murphy , Jason Gunthorpe , Kevin Tian , Alex Williamson , Jonathan Corbet , Shuah Khan , Randy Dunlap , Mostafa Saleh , Daniel Mentz , Samiullah Khawaja , iommu@lists.linux.dev, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, Logan Odell , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 7/7] vfio/selftests: Add observability test for IO page table usage Message-ID: References: <20261001224531.765278-1-praan@google.com> <20261001224531.765278-8-praan@google.com> X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Nov 25, 2026 at 04:33:32PM -0800, David Matlack wrote: > On Thu Oct 1, 2026 at 3:45 PM PDT, Pranjal Shrivastava wrote: > > Add a new selftest, vfio_nr_pages_test, to validate the iommu-nr-pages > > fdinfo metric across all IOMMU backends (Type 1 and IOMMUFD native/compat). > > What's the status of this series? Should we expect another version > (e.g. after the discussion on the shrinker RFC and at LPC)? > > nit: Please use "vfio: selftests:" as the shortlog prefix for VFIO > selftests (see Documentation/driver-api/vfio-selftests.rst). > Yes. Following the discussion at LPC, Jason would prefer to expose this only through iommufd rather than VFIO type1, so I'm reworking the series along those lines and plan to post it soon. That drops the type1 fdinfo patch and this VFIO selftest. > I gave this a try in QEMU with an emulated Intel IOMMU (which uses > generic_pt, so it reports iommu-nr-pages), on top of this series. It > fails in every mode except iommufd, which skips. Details below. > > [...] > Thanks a lot for testing this, and you're right about both the fd selection and the PROT_NONE mapping. Your point about the final assertion carries over though: I'll make the iommufd selftest check that the count goes back down after a full-table unmap, rather than asserting that it stays up. Thanks, Praan