Re: [PATCH v7 31/45] arm64: rme: Prevent Device mappings for Realms

From: Gavin Shan
Date: Tue Mar 04 2025 - 01:28:09 EST


On 2/14/25 2:14 AM, Steven Price wrote:
Physical device assignment is not yet supported by the RMM, so it
doesn't make much sense to allow device mappings within the realm.
Prevent them when the guest is a realm.

Signed-off-by: Steven Price <steven.price@xxxxxxx>
---
Changes from v6:
* Fix the check in user_mem_abort() to prevent all pages that are not
guest_memfd() from being mapped into the protected half of the IPA.
Changes from v5:
* Also prevent accesses in user_mem_abort()
---
arch/arm64/kvm/mmu.c | 13 +++++++++++++
1 file changed, 13 insertions(+)


Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>