ArmVirtPkg/ArmVirtQemu: avoid shadowing PEIMs unless necessary

Some PEIMs register for shadow execution explicitly, but others exist
that don't care and can happily execute in place. Since the emulated NOR
flash is just RAM, shadowing has no performance benefits so let's only
do this if needed.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
Ard Biesheuvel 2022-09-25 17:24:41 +02:00 committed by mergify[bot]
parent 75d2be4a37
commit fead469a3b
1 changed files with 3 additions and 0 deletions

View File

@ -218,6 +218,9 @@
gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|3 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|3
gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
# Shadowing PEI modules is absolutely pointless when the NOR flash is emulated
gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnBoot|FALSE
[PcdsFixedAtBuild.AARCH64] [PcdsFixedAtBuild.AARCH64]
# Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point, # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point,
# if the entry point version is >= 3.0. AARCH64 OSes cannot assume the # if the entry point version is >= 3.0. AARCH64 OSes cannot assume the