Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796052513; b=Srzc3rsSw+JwxpI/rAvz0DbmreO5zQGcCjOpI9/VvD/6TDBZp62tXGrXhJtfzuJQz6fy dT+mSeBmeEFzumYI5zJPbE/JpO//NShAZIUdkNUdkLQAYzEksV/VUh7o3v7o85BH7tNaG FGIV/Lqciehl2HO6u0eprzAFi4uyy85Bi2tiMauAl5fzPywkN67TRA53ncV93JvS4i7t9 thbXuaXx8ej7QsCwCDlR7gbEpk9C8s15Uq2aDpMYpDkovFtPUXJ/uWFP0GSM++3JquarL wlbGYqypmc4uvPc5dPxjdgbG1PjYCBxfTRW7yjM13YQokenyljIirGZrgZYAo83bRKA== 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=MTphFA5wESycD1jVaW9MktfIzsR6VCd0jM234BgkrPJzAH06hDD74s+/73u0+zXblMrV H1Vb0cEyjW436za5QXcQwteM1btq/hw24AHk5Pa9qbKug8o+Mr+oEsGudyYozgWrMdVke GKqFL3kKAxFzdO7SG0TKYzqi6jyd1pcwQGiNCua6GJS9PV1kebCzlzJZtByGzIOyqUjT8 vxs5iLk+hKxMZjfkTxS1emMBEIqDHvLkWRkq7YlAptUErphk8i00NgRoF5C6RD9X/1+D4 a6KRMM0Xr7qNDXF3cZn6yBXceQ6XLi/sC4CDmH6KYWerST/4BBzbuuQqBlokxjsWSMw== 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.179 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 551F4606A325 for ; Mon, 30 Nov 2026 15:28:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 551F4606A325 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-f179.google.com with SMTP id d9443c01a7336-2f0afdb97abso446915ad.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=yuWNa2GftDm//bsXYygZPul++cNFvtQ7vZPjW7mHAZo3917Eon0tqz5yB4AsAAN38h 0d71td2VBu6YKmCS2O6xnSag81hOjFUqHOHqm47LIiZ2eCenPRSh6MGafiKyfBsBS1Qf kjtSxym9IlLORReGBgIF0PW3p+NZM51+2gU2Pr9dSoRgPy1VyZKZEbY/MnnF40MErPce ke3I2BuFV8idHTfbAwuTQy01G2zlDGxpPTH5reIEEn219bHm1Tf3X2sNYdAdxyYRMDVt 2zDZzlNsUZ249nnnEjwfV7LGUBRRPc2bhya1nM1ufwG8v3URJJQsdiULaMeSib8oHRkK EP/g== X-Forwarded-Encrypted: i=1; AL+hErH1SawnREX9YWf6Pv2Xhn2KJIpfjvuARshbD83zFoPN2EtGBB5b5PH3o33aQgRffeJ1yzI=@vger.kernel.org X-Gm-Message-State: APuU4Z+NbC4GWqpcOLQTK0E3XAGCxTinACfWYvG+TbY0vFO6fLFXTEhN SI47BIXXB9eQSeDs2K2+/R/v05GfZqIbM1RTHJli6B3bn04pDGogdnl2Lutjt8qsPQ== X-Gm-Gg: AZFdTZcyxJfUZd1bLUkPx6FXR2qpcEwg7z8e4NjuQU0AMzMKdWT8bAUipGFYrjhnkDB FBVrBllZjZ8cyIX69w9cuPbbK+A8fjqEVT2kMyEgVS+YgCeeGEU8If8uqfti0eNbISzETl07U5k Bhr4vB5UWLUtAMmTur4HQQHSd5G4I6NXykxDBj0ZvQFJcDRADCpGdAVQdvKMY0PG5seDWFO4xFP nNYI+iY2BeYERVRAeCb0DPK9Dx/X/dOuld4V5+/TNlF7LpdBcrqM35HrNMCPBp7+W0504fcZNIA NGL/33BIieve6ou3ZVxuO1aBbCq/FhF9z//nFEbLT9Y2ANvHteqp7Vz/Y36VgzK/lQQ8ZIVqL5Z vhtCV4oCzuTny6fQ5Iiv17cjjXxvAvpswX+kHRugiUm8mqDYXKNLB5iRcoJCiFNJPTYgyVhV+cg PEQjrygUP9Pj1WEbzFIPpOoGSkcnS362+JUCwqnQnby1WPfRVlzMuumXZhPQW0u4zg9aPCgTnGV fwqb8TNJl5W1qugA74i5m/bdCGKwHrlbzllxr6l2/8E/gtesDy0aPilH7DkqQGdfXeByCTzBMZB vhcSdyGhXPzNmH+ei5JkB6xOvZpDmmXoLxGEgb+8iGHIYkt1W843F3ump29uLxBC+xk= 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: kvm@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