[PATCH v11 4/7] arm64: realm: Move Realm memory encryption ops to RSI code
Catalin Marinas
catalin.marinas at arm.com
Mon Sep 14 06:20:23 PDT 2026
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).
Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
More information about the linux-arm-kernel
mailing list