Re: [PATCH v5 07/19] arm64: rsi: Add support for checking whether an MMIO is protected
From: Catalin Marinas
Date: Mon Aug 26 2024 - 06:05:04 EST
On Mon, Aug 19, 2024 at 02:19:12PM +0100, Steven Price wrote:
> +static inline bool arm64_is_iomem_private(phys_addr_t phys_addr, size_t size)
> +{
> + if (unlikely(is_realm_world()))
> + return arm64_rsi_is_protected_mmio(phys_addr, size);
> + return false;
> +}
I was wondering whether to return true in non-realm world. It doesn't
matter since the pgprot_decrypted() wouldn't do anything. Anyway:
Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>