tianocore / edk2

EDK II
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
Other
4.38k stars 2.4k forks source link

MdeModulePkg: Optimize PEI Core Migration Algorithm #5875

Open awiralsh opened 4 days ago

awiralsh commented 4 days ago

Description

Migrate the FV that doesn't contain the currently executing PEI Core when memory is initialized but PEI Core is still potentially running from faster memory. This may reduce the time required to migrate FVs to permanent memory. The FV containing PEI Core is migrated after the PEI Core reentry when it is executed from permanent memory. This migration algorithm is only used for FVs specified in the gEdkiiMigrationInfoGuid HOB.

How This Was Tested

Tested by tianocore edk2 CI