From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795099563; b=j8J2xv0MNSc7D1RJqYDhWO+EBrt/sNWc2LFO8Me4lp+kSKNVwjkCOdBLk8t058QKlUaZ +54WfgxEFjI4LIeqiewBLlhSwtfCoMxQIwS4Xo/6lVRvvPMb4DaBUMJuV2eXChwpAZvUl /87sMgnQB7rJLc+byKKI9YbdaqnTlwYLGNw/LfnmH9Ihjh/ZDeX1KG5q2z1ntNcKnG8HA kKt0uYoTwMHjgAkB7bjhQAjrqG8PQAv+amqOJMUHIzNPx4GWYyGeDc50+0vhC1fIMyUJe xjiPljX3q7KygE9Jbakgy1yXZB0nwcABY25yh6agBcEy5GQaLLYxMILh7hrs3nluInQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099563; h=DMARC-Filter:Received:Received:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=K0vvm22Tug/EC5ewZBv/zjKwLCLUmqhbl916HUYk0YI=; b=H4lptcDJ/9Jq2s4Oc7DH3eTaDnl+7i1oIbZxxzT08QhfPQVd7VFD2pPzJ5s5ghnac18O JlDrvq3rn5jt9oFH6cOCYulJvH/A2Snz9yMxnqFAnuV7LlWCvlAI4rSFxE+oP+l13aJbV 8JsizX83+uQTC2dv8pR4X0lBlq+esZ5iERkWl3AXX5Es2dWQgfjvqSfEWjFcAN556J3CW xVKpqqCe95K+nxgwdf7nNs17mKHRRer50LfwnFT3vEAOvnn1XL1ZjX031vsnFYGphY/T9 3kmCyNQntox3oK2hAEZL+A1RXDD/got//PEt1PHUM+V7ba1ik9MZ9HqTp/YmmPLOtXA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=HfC03N9J; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91A8C606A320; Thu, 19 Nov 2026 14:46:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 91A8C606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=HfC03N9J Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B6A541575; Thu, 19 Nov 2026 06:45:58 -0800 (PST) Received: from [10.2.212.23] (e121345-lin.cambridge.arm.com [10.2.212.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 746AE3F673; Thu, 19 Nov 2026 06:45:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795099561; bh=DOfpvoIOKdy4O9gXF4PEx6e6wrc7GUBajZXT+FF4UMY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=HfC03N9JBgIBhW4NSJSoS8LsIbWUCwrCPrsvOJ2EOafsKDq8RZLQ2nWRlufNNlEw8 20Iiqg51qGhzc7pmC356z0XOVja5EMm7CZWFAK1hqm+NijNY/S34iFLvbV6Vnl1WWI fizU6LB7AzY3UqqzYM2sVfVBsI9vHa1m4KXXsglk= Message-ID: Date: Thu, 19 Nov 2026 14:45:42 +0000 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/6] rust: iommu: add a paging domain abstraction To: Jason Gunthorpe Cc: Nicolas Dufresne , Daniel Almeida , "Joerg Roedel (AMD)" , Will Deacon , Miguel Ojeda , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Tamir Duberstein , Alexandre Courbot , =?UTF-8?Q?Onur_=C3=96zkan?= , Abdiel Janulgue , iommu@lists.linux.dev, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, driver-core@lists.linux.dev, Detlev Casanova References: <20261112-b4-iommu-domain-v1-0-c29e86788dda@collabora.com> <20261116193821.GC2452510@ziepe.ca> <3EB4C2ED-B699-4532-A562-68B78F6E29C6@collabora.com> <20261117202055.GA3115493@ziepe.ca> <20261118160909.GC3115493@ziepe.ca> <20261119143435.GI3115493@ziepe.ca> From: Robin Murphy Content-Language: en-GB In-Reply-To: <20261119143435.GI3115493@ziepe.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 19/11/2026 2:34 pm, Jason Gunthorpe wrote: > On Thu, Nov 19, 2026 at 12:24:50PM +0000, Robin Murphy wrote: > >> There is a middle ground, where a kernel driver wants pages to appear at >> specific IOVAs under its own control. This is entirely legitimate to do by >> using the public IOMMU API "as intended" > > Yes, but, we never fully implemented this because we never gave a > cache flushing solution for these users. Which is a problem for safe > rust to expose an API without any way to do the mandatory flushing.. As I say, the "cache flushing solution" is and always was that you keep using the DMA API on the underlying buffers, because you are still doing DMA from a driver and not in any way excused from that; you're just taking explicit control of address translation *on top of* it. Thanks, Robin.