mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
Add FFA_FEATURES_MEM_RETRIEVE_REQ_NS_SUPPORT macro and use it in FFA_FEATURES call for FFA_MEM_RETRIEVE_REQ to indicate NS bit usage support. According to DEN0140 FF-A Memory Management Protocol v1.3 ALP1 specification section 1.10.4.1.1 "Discovery of NS bit usage": "A v1.1 SP must set Bit[1] in the Input properties parameter." This bit indicates that the Secure Partition supports interpreting the NS (Non-Secure) bit in FFA_MEM_RETRIEVE_RESP invocations from the SPMC (Secure Partition Manager Core). The NS bit is used to specify the security state of a memory region being retrieved. The Hafnium SPMC implementation enforces this requirement for FF-A v1.1+ endpoints. Without this bit set, Hafnium returns FFA_NOT_SUPPORTED: This change is required for proper operation with Hafnium and other v1.1+ compliant SPMCs that enforce NS bit negotiation. Signed-off-by: Kannan Suprayan <kannan.suprayan@arm.com> |
||
|---|---|---|
| .. | ||
| ArmFfaMemMgmtLib.c | ||
| ArmFfaMemMgmtLib.inf | ||