[PATCH v3 1/1] KVM: arm64: Allow cacheable stage 2 mapping using VMA flags

Jason Gunthorpe jgg at nvidia.com
Tue Apr 29 07:14:37 PDT 2025


On Tue, Apr 29, 2025 at 02:27:02PM +0100, Catalin Marinas wrote:

> BTW, we should reject exec mappings as well (they probably fail for S1
> VFIO since set_pte_at() will try to do cache maintenance).

To be clear the S2 should leave the mapping as execute allowed
though. Only the VM knows how it will use this memory and VM's do
actually execute out of the cachable PFNMAP VMA today. The VM will set
any execute deny/allow on its S1 table according to how it uses the
memory.

Jason



More information about the linux-arm-kernel mailing list