From nobody Tue Feb 10 12:58:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+94337+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+94337+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1664180741; cv=none; d=zohomail.com; s=zohoarc; b=PxyXjgQec6AgN9d4BJ/URQ7d+eOPdCJk/vW8Ughp6brVFxcoYoeUL1KmwmHkzFzVJFvoGymIHsIchifrNySI9daJpU64zysAl13kih9T/i68OZc2oV65Ia2JMTmtY/DWOL9nt1IZroh3OgTuiymXfzflw9hKOlgn1/PF1WFxiPc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1664180741; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=qW1dCoU7pLfO4RlxitFzRB3EaJykc88n0lKsU/37uvE=; b=R/paJiArbBq0erCcLgPcwPlWAy+1+age9IhbMyLEGgrvFHM+/k2a2zYEtmyfKdPY7zproXE0a50OW0T4rLMIjz0CKEGXEO4ifiv0FxhjRYGgt2LP23m+0Q//QknLn3y2BeEkJtmUq4bVbkp1wULFXs1wFyWKuU53acfimgGc8lE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+94337+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1664180741547319.8042216042967; Mon, 26 Sep 2022 01:25:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id KNd8YY1788612xFmUh3iUzUD; Mon, 26 Sep 2022 01:25:39 -0700 X-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 X-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) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04E51C433D7; Mon, 26 Sep 2022 08:25:36 +0000 (UTC) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Alexander Graf Subject: [edk2-devel] [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> In-Reply-To: <20220926082511.2110797-1-ardb@kernel.org> References: <20220926082511.2110797-1-ardb@kernel.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ardb@kernel.org X-Gm-Message-State: iVY5VHOSW5E7og9aCSuCAy8hx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1664180739; bh=1cKriG2GDq+FmwNyZ3bYMn9iPa+veSfNLIrPy6WWvoY=; h=Cc:Date:From:Reply-To:Subject:To; b=Pm6fq+9iyqBkwcSbOtlVos1xWuNwPC/Mmi27mrKlIZj5iYdLz+8OMC9apZLDdkPf0jo pyRa2uw0CT5ntGzPZlBoZ7WS8NIgchxGlRZ0jzyXFTtamPnhVE14evk6Tof6eijE7s9p6 DFvra16fjzPC4t6efbNJ6MLWucMqfB6sit8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1664180742395100026 Content-Type: text/plain; charset="utf-8" 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 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000 =20 + # Shadowing PEI modules is absolutely pointless when the NOR flash is em= ulated + gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnBoot|FALSE + [PcdsFixedAtBuild.AARCH64] # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry po= int, # if the entry point version is >=3D 3.0. AARCH64 OSes cannot assume the --=20 2.35.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94337): https://edk2.groups.io/g/devel/message/94337 Mute This Topic: https://groups.io/mt/93922704/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-