Re: [PATCH v11 4/7] arm64: realm: Move Realm memory encryption ops to RSI code

From: Suzuki K Poulose

Date: Mon Sep 14 2026 - 12:06:18 EST


On 14/09/2026 14:20, Catalin Marinas wrote:
On Mon, Sep 14, 2026 at 11:35:08AM +0530, Aneesh Kumar K.V (Arm) wrote:
Realm memory encryption callbacks are CCA-specific. Keep the Realm callback
registration with the RSI initialization code instead of pageattr.c, which
only needs to provide the low-level page-attribute transition helper.

Export __set_memory_enc_dec() within arm64 so the RSI code can wrap it with
the Realm-specific encrypt/decrypt callbacks and warning policy.

Suzuki commented on v9 I think not to expose this function but I don't
see a nice way around since we now moved the realm_crypt_ops out of
pageattr.c (so we'd have to export something out of that file).

Yep, you are right. Thats the conclusion we reached to.


Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>

Thanks
Suzuki