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

Suzuki K Poulose suzuki.poulose at arm.com
Mon Sep 14 07:50:51 PDT 2026


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 at arm.com>

Thanks
Suzuki




More information about the linux-arm-kernel mailing list