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 962313DB996 for ; Tue, 7 Jul 2026 10:18:26 +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=1783419508; cv=none; b=etLSySvG95+4Ht5nvbvNba5C0ROv4BCa5ouhtJ/OewNzmKu3OkWtqFDZNpFeTaeYhKjSQy/xJsQpEhFj+t2+JxwXph4gbf51CD2d31jHNUFc713oo+r2vyaW4I4XQdvCePQXhUjNnXIct7dkPmPm9fNslddLgtclIz9nlLrCzb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783419508; c=relaxed/simple; bh=98VhNMModFCcxiqm7ARQ8dKwSt5GANhTPKLjWFAsCsE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=M4BQPPwgdcO8ch650nTHNB9MaX1KqHs7E4kdVFN5YAdTehyeL6Kr/EOPcDNG1VwemsXKcZOt/XEYutLlE83NLZ8hDBlorIpRMd0YL99mna77OpZUaRExwK6PMGTYeLPUVfe6hSBK8YavzQv2PhHy80vh3PeI2srQ+jjrP7xxV0s= 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=Yb5dNjyM; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=dA88QWPu; 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="Yb5dNjyM"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="dA88QWPu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783419505; 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: in-reply-to:in-reply-to:references:references; bh=3slwj2XyzWQtqngmhVqaSA6RBHzpXga6waGc30WeTwg=; b=Yb5dNjyMup7DBX2Njxba8NxR9eq4+ItkrtWhAuj+9pt/XwrGMNJhR0mOHuwm0Xyzuopp9e 9yL16hThNzF210xrMQ0V6jo2WZ8c2V3vO1tyguw3yzDUD7CRS5Ix3Lf/ZvTTzoFzcLHdpI 9LywXnxotyQ3s+mZZpcCETeY4y6UcXk= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-321-alIBp0qkOAWx6yi-1OPutQ-1; Tue, 07 Jul 2026 06:18:22 -0400 X-MC-Unique: alIBp0qkOAWx6yi-1OPutQ-1 X-Mimecast-MFC-AGG-ID: alIBp0qkOAWx6yi-1OPutQ_1783419501 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-490a767c7dcso32212805e9.2 for ; Tue, 07 Jul 2026 03:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1783419501; x=1784024301; 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=3slwj2XyzWQtqngmhVqaSA6RBHzpXga6waGc30WeTwg=; b=dA88QWPuVFgbQ/eddxLfykulIAMg+LQ++ecUjZ4h1Q4cHxHyPfU8P4eDgwzJ+i3vKs AtbZvz+I7Bwp2XERu0jnOoZ5FJMQ+RJGi8Fp8Uo1EBLHiwrg3X4cIqUvmXe5tEhpHeSK rL7xdfLBzomtvILSYNoaKc6qAstFEMpnXrPth8zWH98skZUBzxxONGJu7zGYfCyR3QVc WgEI9CZWbuvTvj9Er+OdtDiDN37Y3oTJYo+msTMZnLgfi4VLg8lgOjj3Zu6zEGudzwQl DCNZScA7UlDov+C5elriWDZKFmi4W9a2uXvxQFGcfkiLmxgtJog8Gv8gwh7JyrMZcGMW GbBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783419501; x=1784024301; 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=3slwj2XyzWQtqngmhVqaSA6RBHzpXga6waGc30WeTwg=; b=Qft3QOu8HUnizXwEQUxBfyu9Xm00mICJ/BOUIsRhmVvhgSuhsJxq5s+Y/QJeHHQKTr fsZee/Y+txBtWRk0Zi8nsVO/f1m20VnmyyNNum7Ffl1Ce7Kvwyx6GJRJHk+wbqU/KazN e32bc04/9qDdC5yvmIAzYX4ChFrjFCUpS434NPeHojPcqkOiio6UtpcLOGBDTVNJ8jDS shnD+VAHeAK8jZaTa5cRZhw13HhR/yshlGRSGvojpF5t9hPL0x4SyJJzg46TnALDassl VhxV8T9p/GIjWwtQDGIZdrHkJB0PyQ0KUNXtTwdFS4BG4SBx9OqMkJsPnL5r8MnJSWFz FIrQ== X-Forwarded-Encrypted: i=1; AHgh+Rq99LxtlrUkYb0k0DBxOD8gSAaB6RSqcUXHoi9ToTDuFHm6eEwmo4SrwQrZDB4tXImf7hrcsuapzNO9p/I=@vger.kernel.org X-Gm-Message-State: AOJu0YwdNGIMQ9SjRejR1PZr6YPOgq8M3xLaGWk4/Bt8lM1iaANg2gx1 25uP2VNeOkeczJTiGPC2zrOVBmr34Y6o+YKB2Bz3F9h6Zj0XG4/6nBWKflj2q5f7BEd0YNF5avu FOgWMkW193areDonjAXloSB7xSCtxkyiFVvkEAEKZOa5nm8CjveIQDikko+tMt0qDqg== X-Gm-Gg: AfdE7cnveKQ5aUmHiICEz+adQzzqvEc3r88BZBQlMEyYMsOl5ohjeOtrNggS0nOuxsL jWi3RsmixVKF3qlDlDaK5mkswmfwW83zRko8eUva4sNt3FuxRKPeJCj8ePp8wPcpvGFS868v6dt NCtiWeks5X1GnUhgIdAeNhjQu1UvuV1Kzvqr2/tYoOOUuva07CCVGIaKjG4l/tnyFq/VC6wNwH0 G69Ds3OaPMOG1oALHbX8I7q9iB7dshTMyizLieqF975vv9DzoxILTiqDX/oHYMmZM19NgRSlGuS kekcG56KipDBheeU1OWGU0CxClq7caSlbidra2hIPcEYb610KOSnPOQ6UmFMOC/NTVObxM3kGmU Ivk61XEiO4u+OqCTUprxfZxW95EqlgSPS X-Received: by 2002:a05:600c:c173:b0:493:c98f:12e3 with SMTP id 5b1f17b1804b1-493e3066380mr12490845e9.20.1783419501226; Tue, 07 Jul 2026 03:18:21 -0700 (PDT) X-Received: by 2002:a05:600c:c173:b0:493:c98f:12e3 with SMTP id 5b1f17b1804b1-493e3066380mr12490105e9.20.1783419500441; Tue, 07 Jul 2026 03:18:20 -0700 (PDT) Received: from redhat.com (IGLD-80-230-68-31.inter.net.il. [80.230.68.31]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493e0078d49sm49438995e9.0.2026.07.07.03.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 03:18:19 -0700 (PDT) Date: Tue, 7 Jul 2026 06:18:16 -0400 From: "Michael S. Tsirkin" To: Sourav Panda Cc: muchun.song@linux.dev, osalvador@suse.de, akpm@linux-foundation.org, david@kernel.org, ljs@kernel.org, liam@infradead.org, vbabka@kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com, mhklinux@outlook.com, fvdl@google.com, gthelen@google.com, mike.kravetz@oracle.com, pasha.tatashin@soleen.com, rientjes@google.com, riel@surriel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH 6/6] mm/hugetlb: support free page reporting for cached hugepages Message-ID: <20260707032839-mutt-send-email-mst@kernel.org> References: <20260707064235.1386552-1-souravpanda@google.com> <20260707064235.1386552-7-souravpanda@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260707064235.1386552-7-souravpanda@google.com> On Tue, Jul 07, 2026 at 06:42:35AM +0000, Sourav Panda wrote: > Implement free page reporting for the HugeTLB dynamic cache. > > Register HugeTLB hstates with the page reporting framework if they > support caching. > > When pages are added to the cache (either via recycling in > free_huge_folio or direct population via sysfs nr_cached_hugepages), > trigger a page reporting cycle. > > Page reporting isolates pages from the cache list, reports them to the > hypervisor via virtio-balloon, and then drains them back to the cache > list, marking them as reported (HPG_reported). > > If a page is allocated from the cache, or reclaimed, clear the reported > flag. > > Signed-off-by: Sourav Panda So if you are going to look into this, I feel the 1st step should be reporting pages from hugepage_freelists - this can be done independently. -- MST