3945_arm_cca_v5_s3: Initial patches for enabling RME support#12380
Merged
mergify[bot] merged 4 commits intotianocore:masterfrom Apr 21, 2026
Merged
3945_arm_cca_v5_s3: Initial patches for enabling RME support#12380mergify[bot] merged 4 commits intotianocore:masterfrom
mergify[bot] merged 4 commits intotianocore:masterfrom
Conversation
3 tasks
leiflindholm
suggested changes
Apr 2, 2026
4cb01e1 to
02ad92e
Compare
02ad92e to
b32d525
Compare
leiflindholm
approved these changes
Apr 7, 2026
|
PR can not be merged due to conflict. Please rebase and resubmit |
87ca83c to
0150ca4
Compare
3 tasks
0150ca4 to
b1ababe
Compare
Contributor
Author
|
@leiflindholm If there are no further comments, can we merge this branch, please? |
0945a5c to
0dc391b
Compare
Add helper function to check if the Realm Management Extension (RME) is implemented by the hardware. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Leif Lindholm <leif.lindholm@oss.qualcomm.com> Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
When creating the identity mapping, copy the 'unprotected' top bit from the physical address as an attribute in the PTE. The virtual address then points to the top half of the address space, which in a Realm is the unprotected half, shared with the host. Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Arm CCA requires the software in a Realm to treat the most significant bit of an IPA as a protection attribute. To enable/disable sharing of memory regions with the host, the protection attribute needs to be set/cleared accordingly. Therefore, introduce ArmCcaSetMemoryProtectionAttribute() so that the memory regions can be shared/unshared with the host. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Leif Lindholm <leif.lindholm@oss.qualcomm.com> Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
The PrePiMemoryAllocationLib supports AllocateAlignedPages(), however is missing the corresponding FreeAlignedPages(). Although the FreeAlignedPages() in PrePiMemoryAllocationLib does not support the ability to free pages in the PrePei Memory Allocator and the allocated memory is lost, it would be good to have an empty implementation of FreeAlignedPages() so that implementations utilises the correct deallocation function. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
0dc391b to
806c4c6
Compare
Member
Yeah, I think others have had enough of an opportunity to comment. |
ardbiesheuvel
approved these changes
Apr 21, 2026
Merge Queue Status
This pull request spent 12 seconds in the queue, including 1 second running CI. Required conditions to merge
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initial patches for enabling RME support
This is an initial set of patches that:
Note: This is a PR series that includes patches from PR #12224
How This Was Tested
Only build tested. Actual functionality can only be tested when the remaining patches from PR #12224 are integrated in the future.
Integration Instructions
N/A