From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (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 5FF2F51597A for ; Thu, 1 Oct 2026 13:43:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790862229; cv=none; b=Uq4kym1xSighy6RcwBlc/sDg3dyfYVs7jqOlpyKGb6x8/rin6mSlnFMCyDP/jHVN0pyObWRgrXTnv6mbTzEKOzcgyd5UgmaesqxIGtZHzGRFxmKmQnoZLyCxXbNaAstHLw98MYQZI9jA7d+QI5VNrd40OogVgRj+mALr8LCRGaY= 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.140 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-f12.google.com with SMTP id 5b1f17b1804b1-49ce364488dso10794435e9.0 for ; Thu, 01 Oct 2026 06:43:47 -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=TZzKoXMFwpfDIFJvnlpv6WowOYIqb/6PoSSiYaXe+Ku9v7u1Dk9JGRYnaLdYM9cu2x Baf1xvtSRbwmIwfB8wyCivphpU/PTCFxtGSHpuWo8Xb4VsnujfFHh8fIYoJIG/9WjyNj cgTwoa0ygKbMoKKS/6s2rHPewX2EvH0YFicJWkNOSZACQY5leKUunuT9QdGdwOtJyK2R AshxXPBXJMIpAJqs69XwQjcNeayrFd4Talx97heb627zgBEcSMpCyCuhvWlkuMj1FqbK owA/VOkjmW7JS8WX+LoPi03MxN2L7WJI8rAQplT5cafQ9Qh7CFMkGfHhhzXsKi1PDPxF g+pA== X-Forwarded-Encrypted: i=1; AKwUvBxgu/3sCjoNHOdFbPiF6U+oJ8BakG+XlUrQMPQluqw37110vNeATXWWaM9suYACDGlNJiwP33w/eT8=@vger.kernel.org X-Gm-Message-State: AFuF++npa4yZxEDwHh8uHD318p1gutRMxI/c0M1bqh1x23tGyknPQuKI XP4JyBB9bAWIohvdONJQJyBXOaHgjDi3ug9SL1QWlspyLqSadcCkFeNgRbyUopyC9Bw= X-Gm-Gg: AYBFou1eFQOYR86T6jKpSUohNx5yztDp/1C25cc/SoRuGZZdyr94yUKUy9mqKw81alI d3BLwOy84y7Wl/gkuomV87NRcrCmty5FejK3ZVQlg4OUZ3VjTZg23rWXJ2J+20DqnNiEhXX+tVh mT13S3Llb9pKMSnIkTj0yDv1Oooh7BPuvMwawTgkXNTYj9iw2ztUYaqxREQs3BiZwER0QXi7Tpy 7tC2vy9pRFFYez1x6R4OFW+p7i+kV5HTZb52cGS/+StD0xX2tehSiCPxNN4QkWG/hcCjZz+H5om uWZcwU66jFPuhxDINAb7uuIhv5oWtBx0SEvRAD9d46CBKjhD81uNCND4dvKIN83Qu/AfMDtLx8Q gU4WHUA9Auyh72qsshkrFGEYk3RVTaD7kIIse14qjUajqwQK8vbewixP1vZQ7ByDw+YomJJMJqH 5K9GSMlI6OktPCW6x2IdikynOvnj/isvL/VtjxS2LA/XtefSxQVO1b7Y0prlAu9oAOfMA= 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-doc@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