From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (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 2799151589B for ; Thu, 1 Oct 2026 13:43:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790862229; cv=none; b=I9ELiiPrUhIt9XXlMeh5+i1bMZXPKgheiGJjGB8MlSI5r/A2Exucnnrrk0DX5NY0YSdCDjnapKdytUfOBP/0o11kFbs0IS6zZs6WPmzepdZ9COK+1B+dSmW5pmxDO5HA0692ZirlRdRAnbpTNH/EvgmxMPwQfjbZ+y3JccZrSWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790862229; c=relaxed/simple; bh=k2tGWZBSq6m9m92JJesXcs78oXeXxRsuS4Ph2lEaE88=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qxdQmxJez8Jn6euaCyk09wlTRwa4IiITtPllIWfyV78nWdZu3VV1gf5gRlfyhO2Vl34ayQFaDyL262gTGEmQnFt9M7VmlwinSOm9Os80dtpetkajsNOOb1rdzOIVqZh6BYe2DmVi94KOEzWsK1F3EMImQK2i9vH7zMy4RC1219M= 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=DqZEzPfD; arc=none smtp.client-ip=74.125.225.141 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="DqZEzPfD" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49ff9642c57so14056465e9.0 for ; Thu, 01 Oct 2026 06:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1790862225; x=1791467025; 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=9GzyFhoA2S7uios3Q3nexzUQFEC9iru05+QnoGlj3hE=; b=DqZEzPfD04fpWPGHpCTt0gkiU5RVPxaVWzIV6kshqTUIZAhsEGYJWau1rm4ilNcOVV kDYECMPqc808q+3S/wlpfy4Zonr5JdeArGZ64LeZuynhvgIMus4R4su8oGglj1Lm7Q/p xxx0t/Ds/HICjF5naZa3MhdYJ2tCIUveTXkT1kUktpAP7fDBee/DrFA6B2C1G9r2Jj2g 5eYtQtWNQIU+buEp98MmqzloVUNOrJN0KKDuaFOJuhAIgLy4U+ZO06buaRmY3e9CuhFo Y0rBd+PaERYcDD4xyDCY8m85jdUwuLOCOlAI8xp9OxbIPPERM7P2dkthIqK0cpQLltUy omdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790862225; x=1791467025; 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=9GzyFhoA2S7uios3Q3nexzUQFEC9iru05+QnoGlj3hE=; b=mIbSSrHkFNjCc8MgEhmwKZMqXVLhlrYDAm0HifuPdr7k/pCk7gmU65Rkv8WJq226Ij Jo9VoVzkTG8W1egWvnBUQaCcm+E7V2Tn/PStaTt6Js7/aUaHnfew2cT0HgWzAQzPb397 EBSqRIIL1I9s9j2f8wZYV0mRoxqwpBl2AdMHLj4HkrgPEYAwPHhAj7oG5gsNcZadxgDL s2Zn3U/2A7NknkeX7pDyOrYcGZ3lw8RRBHB1vIym5/BA/T5zSNn9E7/SyjeFbABrJTqs GF09wuJhYqY2aG6N1LeEaDBgnvx4ifEgFGW9/XawoPJZaYdRE8GuB1ylg+tXuKLZr3Uf PsNA== X-Forwarded-Encrypted: i=1; AKwUvBxQWetgfMLbMWejJiRjM2oA7CrgyV7I1rAoWmbPQdzbQ1PEsOkvBlH4wB7bbNrOHf617NvmfYCaepGR7vM=@vger.kernel.org X-Gm-Message-State: AFuF++ml2Ny4RioMSC3VCfv1RC/edJE1yvOQbyUZKXsajdYsQYasOSfS SiFIev5Byxq7XhrFDWjROcIjac8E+NFLF3v/30Y5tf4ENa+3cDmN8L2qUxKBJ0pXTFQ= X-Gm-Gg: AYBFou08QDP3oBHVSsEFK7BYc8aiq9FrIIjp24h3iu4H/IwFkNhVY+y8qUen/eU+wjw IZYzE1zUTg1hbG+o1l+3ms9V/wG5XYbEYhFyvs6RbJ1HlUmxAsRZtSxaiv9YVcjFEhmhMfJz3GV VGqyRRNAoKLdtDLCnVS+8hVth5MTGWI1UtXfOM8OvnaWWXXC3CWUZzSf2rs2hKfchHu1rjr+zM2 rgoyzX39PnG4J9rY/K3jcau84PdBdV1Aj/4xXNnYkX+tfpoOBO+MUkAukUKyrjBCzwTVYhaOVcu uY2JCf8QF/AUnm0meKrIWaa3qIDSujxOsQjSvRMxgM54TVpmWkfLDDgRevzs30umjb8VpcNp1Bc pRarY6WhQkSrr1uD3WH5HrrjnVnaALZRfrsc5Jzb46ofFy7v91WTQ2aFPrTabEqmkAl/Kl8tKOO Sw0FChkynJMTMJC2AhpIbA5R/q6GFZGCc7DT2fafGv750FS77leCnJ6b/C89jEPPjG7gg= X-Received: by 2002:a05:600c:4f52:b0:4a0:22d5:21af with SMTP id 5b1f17b1804b1-4a022d52255mr32632575e9.15.1790862225048; Thu, 01 Oct 2026 06:43:45 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F ([2620:10d:c092:500::6:7dd1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a023ecef86sm33062845e9.3.2026.10.01.06.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2026 06:43:44 -0700 (PDT) Date: Thu, 1 Oct 2026 09:43:42 -0400 From: Gregory Price To: Ackerley Tng Cc: Hugh Dickins , Baolin Wang , Andrew Morton , Sean Christopherson , Paolo Bonzini , David Hildenbrand , Jonathan Corbet , Shuah Khan , Randy Dunlap , Shuah Khan , vannapurve@google.com, erdemaktas@google.com, jxgao@google.com, rientjes@google.com, fvdl@google.com, jthoughton@google.com, tarunsahu@google.com, pratyush@kernel.org, fuad.tabba@linux.dev, David Woodhouse , yan.y.zhao@intel.com, michael.roth@amd.com, suzuki.poulose@arm.com, Christian Brauner , Jason Gunthorpe , Nicolin Chen , Xu Yilun , aik@amd.com, aneesh.kumar@kernel.org, Vlastimil Babka , kernel-team@android.com, kernel-team@meta.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH RFC 00/17] Allow guest_memfd to be created using a resource (pool) fd Message-ID: References: <20260925-gmem-tmpfs-backend-v1-0-d36159822d18@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: <20260925-gmem-tmpfs-backend-v1-0-d36159822d18@google.com> On Fri, Sep 25, 2026 at 05:50:47PM -0700, Ackerley Tng wrote: > + e.g. for tmpfs, > + Use mount page size. > + Respect mount size limits. > + Use guest_memfd mpol and fall back to mount mpol. > + Gregory, now you can set mpol upfront on a mount! [3]) I haven't had time to quite give this the read it deserves yet (have been traveling this past week), but I think this mpol/mount issue can be solved with a new dax driver (which maybe provides this provider interface) without needing to involve numa policy at all. Essentially fd = open("/dev/cxl_dev", ...); /* backed by anondax driver */ then later when a fault on that fd happens, the driver provides an anon-memory allocation that explicitly requests the node associated with that device - as opposed to trying to jam this into mempolicy. If you're planning to be at LPC, happy to discuss this in person, but I think this provider pattern is likely much cleaner without mempolicy at all if you can just make the provider do that allocation path for you. ~Gregory