From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web11.26080.1664180739156276730 for ; Mon, 26 Sep 2022 01:25:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i4jWBMpN; spf=pass (domain: kernel.org, ip: 139.178.84.217, mailfrom: ardb@kernel.org) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8EA2E61910; Mon, 26 Sep 2022 08:25:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04E51C433D7; Mon, 26 Sep 2022 08:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664180738; bh=544RKwrbisFQNaa86z0PKt1yl1R0+eAtySOhWzD41NI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i4jWBMpN/mZO/MA+sLZHVgTNe6MCr74CT2Q78nMDAFXR18XbZ+x9SNd0iv+yldn+u ctxn0HTe614lO2pXlXGUu8lDyJfywF+4Byc9m7F0Yx7peFfpPfAAtsBXic0FK/XX8Z BXY+LbDZjxzKd/kbmqV4JxcEOcToN4XR4LLILQwl6Ayoh3VSh3ZqeFDdyivCj745Vj v9QO1nJdN/gIGBTNMVrr87505ndkxgxvbduHyh0NxWSaYfXwOAQTNTX5jpfGTPgt8G 3NsRhZEEPdvvm75D3QL4JFVi0NI8xDV0AH+MK8FWZz7tBWzeGCDj/uYN4YYGUTx2BG 2nS/ooQ1eQGDw== From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Alexander Graf Subject: [PATCH v3 14/16] ArmVirtPkg/ArmVirtQemu: avoid shadowing PEIMs unless necessary Date: Mon, 26 Sep 2022 10:25:09 +0200 Message-Id: <20220926082511.2110797-15-ardb@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220926082511.2110797-1-ardb@kernel.org> References: <20220926082511.2110797-1-ardb@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 --- ArmVirtPkg/ArmVirtQemu.dsc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc index de34481673ea..c3d264077bce 100644 --- a/ArmVirtPkg/ArmVirtQemu.dsc +++ b/ArmVirtPkg/ArmVirtQemu.dsc @@ -217,6 +217,9 @@ [PcdsFixedAtBuild.common] gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|3=0D gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000=0D =0D + # Shadowing PEI modules is absolutely pointless when the NOR flash is em= ulated=0D + gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnBoot|FALSE=0D +=0D [PcdsFixedAtBuild.AARCH64]=0D # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry po= int,=0D # if the entry point version is >=3D 3.0. AARCH64 OSes cannot assume the= =0D --=20 2.35.1