From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo2-f28.google.com (mail-oo2-f28.google.com [74.125.231.156]) (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 A0C1C49B47C for ; Thu, 1 Oct 2026 17:15:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.231.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790874910; cv=none; b=Ib8wFvmDXoPYwGP4uKKrLnFo+q4oq3IiO532uM0tGSsQglHKYs5viA9HQ5jAn62a/iZKZwSogztQWiF4OaOQ8i+9LZYEsqQx2ZcTp+rnE5DF6op8dMy9ErsDEPDiZbELTNh7eb6HTQjO8wCs6H5JW0rmp+s9PiTT0bSq+J6Frm8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790874910; c=relaxed/simple; bh=a7oq1MIgLZQaYmPsWc/dtcP0sMS+eH9o/8iLzIQIc/M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LBXW0iqRunOQ2uY0RvA0/dGmEZY1oqHPJp27E+NMZwXiFQOYavx1d842kxQRsecdG5gbRCO/Uktryts5szZaTvwFf0X67j1prXpaTrwRxoa269orAYaWgH5t4vFrg3Gpu/Bnz3WF6Lat6T5aPYBhenGLJ8TkOAr9uOnu+6wpEj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=LiMyoth8; arc=none smtp.client-ip=74.125.231.156 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="LiMyoth8" Received: by mail-oo2-f28.google.com with SMTP id 006d021491bc7-6ca35deb7deso674842eaf.0 for ; Thu, 01 Oct 2026 10:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1790874903; x=1791479703; 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=t/6p+zYx/lSA8o0kTLIaLNlPefSKg05wX6rF51KJFNw=; b=LiMyoth8etbND3MNQwHkSEaJ+HRDwN2uwRaewq7vz7DMUR87ukAlz/idYFO+9P6q+F praczIlNXVUo7jpkHmQrcQSqHqJd30JN6mwusqmR5YmITRuzCwAY1SH2MAA3lHTAxxHo faGoT3BQxCP6RyuF8r8RHTRZIN1Ph/QB1SVB05+al/6VVF3S276Y/hxw1gLp+1oFhFCs lmZ+9tOAyzFeR6sKKWseaDtFdWeWBhVmsqFNOHFVT+ePvsahskBDp+eAee0YutmzEMYi lXWUnFYXBSu+OFBL88bdW+EF4UaSB6nQY5vV3JPLiXRtYb8F4eCw0g5h62Cc3OhIQKcW 5wkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790874903; x=1791479703; 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=t/6p+zYx/lSA8o0kTLIaLNlPefSKg05wX6rF51KJFNw=; b=TtAIrbuhW6wNg+4dxuR+oTFxbZTPWD1e21ELMLjB+MsOKUIgTEjToG+ll142l+edjs 4nxZqFFWvBq3NL9pm+ROTbAo0VgSHAgn7Kskj1u07BdqrNSTO2SKBlzsxN/0t0ga+ODl o/5EFOV9NmvMXjGBjH2MAysH9qyhphX8iqAcsxdww4/ppLQPND6gFn5JJACze0MkIKAJ j0TYqG4q52FV8D87BC7EODxF0/YQR/N3Vf4R+ObZhBMqLMXgXfPuAeRJ8WR4x4TxncNT /hgdrrE91NFahuujRyAy0tzqNhnkUjYRf3DtzDZxeCQuV7V71PzcXTI5WBb3r3utSZ2x nAYg== X-Forwarded-Encrypted: i=1; AKwUvBxAGwKYxNsTXWxiVqcwUg8uUExi28RL8shglprutnGbuIdFf0jzv8OxwnXJQ59BcURYd/cLf2Jwrp8=@vger.kernel.org X-Gm-Message-State: AFuF++mhUBFNoiTfQ0eLXPtqM73C4eUmrginX1VGLZYK8VFxoTDBoPJ/ 9XIcuLCWpi35z4eiNtqWt/9fgCrPDZBKDJnhBZbhBLPPnuk8qMNyDCcb5td3lzunv+Q= X-Gm-Gg: AYBFou2YvqitcRZEgBBE+lCzStUu3oEoF+TvF2drRZMG8MgtHiIR+qgGLWGfvfq3cKb xVntS6VRXnxRoz3rVugPasViPjbTkvBjhS0xEmhIRjDHTTzWx07JeFBy9z8eBwg9VsK5g1JRy1U /MsLHqL67JzxWjVIsSECTJaPZ453JY8icEgQUCYnO3aJdLDOnEnL4Tm3CfJGEP95EkXaZJofWgA Qe98q3xRgc6tkiAaIUmeILNYu0sCI1E8BuY9Fh6axSz2zLQq0fqCGNSjAywTo1YcfPms/dieozY M8JowsrL6E3bJwWnARJeDpz07fjrhDXz/oKirah7EHIhsmvSVrIsOmYW07wp9CeeZkL0BFozQXt 02aJ83JAnsjRZycBNEejkJyB9tluemSqZnbyzB/eYgZYUk6l5W9rolt+0939THYeWEGb4jkltf5 zmaf9xRlWvRsspWNLvdys7OdHxECvGHWX3RXTkaxwWk2cq X-Received: by 2002:a05:6820:f025:b0:6c3:32f0:6307 with SMTP id 006d021491bc7-6df32aa7ec9mr9152eaf.12.1790874902929; Thu, 01 Oct 2026 10:15:02 -0700 (PDT) Received: from ziepe.ca ([130.41.10.202]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-6dd97aff835sm3239083eaf.6.2026.10.01.10.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2026 10:15:02 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1xCKN3-0000000EaHJ-0IkU; Thu, 01 Oct 2026 14:15:01 -0300 Date: Thu, 1 Oct 2026 14:15:01 -0300 From: Jason Gunthorpe To: David Woodhouse Cc: Fred Griffoul , Connor Williamson , ackerleytng@google.com, 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, Gregory Price , yan.y.zhao@intel.com, michael.roth@amd.com, suzuki.poulose@arm.com, Christian Brauner , 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 01/17] mm: shmem: Implement guest_memfd provider operations for tmpfs Message-ID: <20261001171501.GD3019323@ziepe.ca> References: <20260925-gmem-tmpfs-backend-v1-0-d36159822d18@google.com> <20260925-gmem-tmpfs-backend-v1-1-d36159822d18@google.com> <9292b27b8f48c515bee3246cf3b3a60762302186.camel@infradead.org> <20261001141743.GB3019323@ziepe.ca> 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: On Thu, Oct 01, 2026 at 04:47:54PM +0100, David Woodhouse wrote: > On Thu, 2026-10-01 at 11:17 -0300, Jason Gunthorpe wrote: > > It would be nice if it could handle MMIO and "cachable MMIO" as well. > > As opposed to just MMIO vs. RAM as implemented in the prototype in > https://git.infradead.org/?p=users/dwmw2/linux.git;a=commitdiff;h=a7ca2d8859036 ? Sort of, RAM is a little more permanent than "cachable mmio", I prefer the latter because it conveys it is located on a device, is subject to things like reset. Eg "CXL ram" would be cachable mmio. I haven't heard of anything needing a unique PTE for this yet, but who knows down the road. > I think Fred has a cleaner version of that about ready to post as the > next version of my series. Yeah, cleaned up is needed, I want us to resolve this in the dmabuf code cleanly not add more of the hack mess I made for vfio/iommufd.. Jason