qemu/edk2/50349c5e07e7a6b0451c42104c18553a14fabc32 ArmPkg/Library: optimise StandaloneMmMmuLib with FF-A v1.3
commit 4ca452c ("ArmPkg/Library: Update StandaloneMmuLib with
FF-A v1.2 with page granularity") introduced page-granular memory
permission updates to fix the StandaloneMm load failure.
However, this approach results in issuing an SMC call
per page when updating permissions over a region.
Since FF-A Memory Management Protocol v1.3 [0],
FFA_MEM_PERM_GET has been updated to return the number of contiguous
pages that share the same memory permission starting from a base address.
With this change, update memory permissions in bulk
(per contiguous page range) to reduce the number of SMC calls,
leveraging FF-A Memory Management Protocol v1.3 [0].
Link: https://developer.arm.com/documentation/den0140/latest [0]
Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
1 file changed