Re: [PATCH 1/1] iommu/sva: Invalidate KVA range on kernel TLB flush

From: Jason Gunthorpe
Date: Wed Jul 09 2025 - 12:27:42 EST


On Wed, Jul 09, 2025 at 08:51:58AM -0700, Jacob Pan wrote:
> > In the IOMMU Shared Virtual Addressing (SVA) context, the IOMMU
> > hardware shares and walks the CPU's page tables. Architectures like
> > x86 share static kernel address mappings across all user page tables,
> > allowing the IOMMU to access the kernel portion of these tables.

> Is there a use case where a SVA user can access kernel memory in the
> first place?

No. It should be fully blocked.

Jason