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

- From: Jason Gunthorpe \<jgg@nvidia.com\>
- Date: 2026-09-04 19:40:19 
- List: linux-coco
- Page: https://ratatoskr.run/linux-coco/2026/09/17516518
- Thread: https://ratatoskr.run/linux-coco/2026/09/17512666/t.md

```text
On Fri, 04 Sep 2026 15:19:57 +0530, Aneesh Kumar K.V (Arm) [ref] 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.
> 
> [...]

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

-- 
Jason
```
