From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A1A8346AE1 for ; Thu, 23 Apr 2026 14:57:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776956235; cv=none; b=SQ/lDCcyU460Vr8Rd9gI8wbQMkBchHS3SrrGXA7yzb2LRpFe6zkZrRux1rbH+DRpHLaY41l56rOwpjaBPudhtyKhMdhQTey3TAnai7dFOUyEjO8rJDjTT0E1YznpqkRpU69OIWz5azM9/7jDQsrLtu9KmbaKfYVrFELvSqnX5eY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776956235; c=relaxed/simple; bh=fIawO2hxPLFjqOkLBkMpxy2zyH+AEclGIIHs3EfYteo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S7ucg1T8DNBQC10qU13O5Hs6uLSKBypUjv/aV8SEen7EEiyRse4k/UHIJZuQ9bXZSPaoZdQyvS1i9JaVrRoX7RRGbnIDfz/yTLqND4Pnh0Ue1qbBVqt+x3rEhrlCUs6Dfgg3kRdLoXbXaOkjy2MT4VgNHOHsJuFt8y9jNuT0etQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=GaUTX6F5; arc=none smtp.client-ip=209.85.222.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="GaUTX6F5" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-8f0a87e23daso155715985a.1 for ; Thu, 23 Apr 2026 07:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1776956233; x=1777561033; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nAoC6Cd2m8uJEAdJCqdAkQcG7d/SgM3iZ532Fzycwn4=; b=GaUTX6F5kvVAf/bHXGs+jm7PcZoP2YyFeJ5IY4tn1Hm7IsjD/vsWwUWFwiVBTbH/Mg eeeadq7BLOfhNeuz6fsPSiVIz0YX1FKYN6mr6UPpGr07O5kH+PvYh4m3Dyq9Ds8n8uaW 18cMtHJGngkJGPat9sIvdcFEdgtmSmIpeqsLQs4+ftQME4bB46qwdsx3QvenSQ5VxMaP k0VqC4HOLh4rtHQcli7A1Um6LIECKs47Rsb53wvcM7+nlGseOGMfWjGAGA3eIJUTgtNC pTiSZUuWhmSj6NmXBZBvXvKPafadYpiZbTgmHL8ucL1Jc/af8FTUKnPOcRB0KDpg1MJb W3qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776956233; x=1777561033; h=in-reply-to:content-disposition: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; bh=nAoC6Cd2m8uJEAdJCqdAkQcG7d/SgM3iZ532Fzycwn4=; b=neaj7/ozuw3uzGsuaDJBsCUNrc5g/sxzPdJE6w/OQx9B+dqiF8kp+j1AvkiWnKj3J8 RhkXOiBDw1HRpA0HgwQ6K4PbIWXAc1n5VWZcetItw2EYA2buI+qq3Yg52ucmtJaJ5NBm k90WMUyY/FUM2erxaGI4H5rODAwa6FMlzQkAoEh/DcoWYYJhM1TpDAWw7RgTZfjjMUKr ufQ2aDH5r85qlhFpv2tFaJJ84pOvLPz8q2V3lc/iXqryx1+3cVGFmF5kDHY3vcERmQLz 2MnLEZxlFIVXNobud7T5Q55bYVBpRYq1fY/JqbFURANzygEc7fmvxfoxZr7d8iTK9XSz hgyg== X-Forwarded-Encrypted: i=1; AFNElJ+eNgI9+V9HmMJHQeWJte4MXaYNvKOYsfACtoMdibE0VmI5lY4dHYSP9zQ6i2BTDw0krtuwSyi+U9a/lbo=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5pSJcVvhKH9uJWDCeG1yRxsmJWLg4CP7N1/dncc6yohT+TtkW qGf7v/pNRKmuNc44UkmmqM4yqrLlfNF8ZxRADfovJtclTCRcGAspFYJME7bktmTh1FI= X-Gm-Gg: AeBDieuNomShyBzXsV2SwqMPY2nZdbF14SeRVnJfkDn4b8A1qrIwZCSYa3dszVr9uwu MryLSVfKtoKgpYJfHM0A7R19rHypZdCPqt2ziaOVg/0tcKhmA1sDz8AetI4n3mQWyP0li6qGiIP H5CGYl2nMfaMl0j6DPEl9x7kfiBr+mPvcTVmpaSeZ0+2Kb5ralxKyueHNUTZuOsDfXuIQtvvLBq Mh8DLQqjtq4G2HX3TQDR6e32NKKUwrFfUjaJu95z80xaBZOCvqR7wOk1dqOszTULhzQUAUShG5y n6wwTzqcI0jhLjSS2AGhXMMFXZhg7bMkOk2D7usJmWoFq/Y9tMXf92OQT8K1GU3etW+wYDFNyYJ Jh/1gmrS6ypXlfWmO/FF9q1+epCgy1RWxAqUHUkPJi5QAGURBMyrtz8qxgyKfbl7IdHDQ1gDskC 8mc6iGI7GQDlFu981/4qeWRCDKTp80tZNBmiby182o6LCYs4C8pd4L0Ni8Dq5IV/uzLuyWj3mcl FAPiSlSLan0BLSGeA62 X-Received: by 2002:a05:6214:4e03:b0:89c:5289:4be6 with SMTP id 6a1803df08f44-8b02805a894mr389230206d6.13.1776956233021; Thu, 23 Apr 2026 07:57:13 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-71-246-228-50.washdc.fios.verizon.net. [71.246.228.50]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8b02ae5c26csm164285926d6.31.2026.04.23.07.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 07:57:12 -0700 (PDT) Date: Thu, 23 Apr 2026 10:57:09 -0400 From: Gregory Price To: "David Hildenbrand (Arm)" Cc: "Michael S. Tsirkin" , linux-kernel@vger.kernel.org, Andrew Morton , Vlastimil Babka , Brendan Jackman , Michal Hocko , Suren Baghdasaryan , Jason Wang , Andrea Arcangeli , linux-mm@kvack.org, virtualization@lists.linux.dev, Johannes Weiner , Zi Yan , Lorenzo Stoakes , "Liam R. Howlett" , Mike Rapoport , "Matthew Wilcox (Oracle)" , Muchun Song , Oscar Salvador , Baolin Wang , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Matthew Brost , Joshua Hahn , Rakie Kim , Byungchul Park , Ying Huang , Alistair Popple , Hugh Dickins , Christoph Lameter , David Rientjes , Roman Gushchin , Harry Yoo , Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Baoquan He , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH RFC v3 01/19] mm: thread user_addr through page allocator for cache-friendly zeroing Message-ID: References: <9dd9deabd42801f3c344326991d1431c3d8db39d.1776808210.git.mst@redhat.com> <20260422171315-mutt-send-email-mst@kernel.org> <20260423074433-mutt-send-email-mst@kernel.org> <88b0765f-7cfc-4e44-83d2-c01a1755c842@kernel.org> 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: <88b0765f-7cfc-4e44-83d2-c01a1755c842@kernel.org> On Thu, Apr 23, 2026 at 04:13:50PM +0200, David Hildenbrand (Arm) wrote: > On 4/23/26 15:42, Gregory Price wrote: > > Maybe we could forward the vma+addr here and call a vma_alloc_froze_folio() if > we have a VMA+addr to have a clean interface. > > But really, that hugetlb code is rather messy. I'd vote for leaving hugetlb > alone on a v1, and focusing on non-hugetlb first. > If we're ok increasing the buddy surface this way, then I'd vote for only updating the exact interfaces that MST needs to update for his use case in a base set of patches, and then have each additional updated location (or logical set of locations) updated in follow-ups. My initial go around with this - the patch was hard to read at best. But I also think we should also seriously consider not increasing the surface of the buddy. We already have two patterns (either you need to call folio_zero_user() or you don't) and adding the wrappers to handle this internally means we have 3. It's a nice to have, but i'm not sure it decreases maintenance issues. Just my 2-cents for what it's worth. ~Gregory