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

From: Suzuki K Poulose

Date: Wed Sep 16 2026 - 12:03:33 EST


On 14/09/2026 07:05, 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.

No functional changes in this patch.

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@xxxxxxxxxx>

Reviewed-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>