Re: [PATCH 0/6] rust: iommu: add a paging domain abstraction

From: Robin Murphy

Date: Thu Nov 19 2026 - 09:46:17 EST


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.