From nobody Sun Feb 8 14:35:24 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+108170+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+108170+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1693437555; cv=none; d=zohomail.com; s=zohoarc; b=LdHTx4qb6KuR1zqCjn0pDxoIC/8AkH9QcVQ/8L/mFjA21GsbNDswhHVTKpc+G+lFzAprKSj3G6rT5jh08kP7q2vYGsR6qzJBppo349T8C/N6IUwzMG0jvU4w3gN8tYULMw1vsamQ+WRVTk5ZpzOD/1iJWwfcYaAeK3oMuSUmtlM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693437555; 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=mJkIANL6uPhxAXTKjQEEiZrpuusrNTsdT+3hCkKZRmU=; b=Swvd0uWysIFDrrhx7FARPfYkru7fHcdgGE+3RD3pXDx7Ht+AaR1vRoTWWiu093aaVK1VpvoaAWW3ndIZOA8wklbh88DDZQ+RBn07m8bbnIjkCkXzqiQ/VxXLh2fms/F/QUb6/Uf+wjq7ih2BpEWJOtcfVDY8S4Utf9JuwNouQvM= 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+108170+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 1693437555849463.68963859330324; Wed, 30 Aug 2023 16:19:15 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=/hBFzL6laoNZC5xqrmzBTIa0gGlnVaVjr+xskK/hyVA=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1693437555; v=1; b=wBDF0bxZvOTPEMOer/RHMZm9z9+l9qTZke9K+5kNaNIZl/QTAnDgCrpBOTYbJX4nEMOFqgKi WL3DtdoQnpzHgU7/hVfgkjSIVBw5gKqNh54C1TxLFHRBXzB4nUIubM+0tOhZALl6FLgNEOE6doo bZeMfibC0dCBTeDkLBcYtX6c= X-Received: by 127.0.0.2 with SMTP id Z1D0YY1788612xkNrnnyMMaf; Wed, 30 Aug 2023 16:19:15 -0700 X-Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mx.groups.io with SMTP id smtpd.web11.4956.1693437554933878834 for ; Wed, 30 Aug 2023 16:19:15 -0700 X-Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-68c576d35feso158595b3a.2 for ; Wed, 30 Aug 2023 16:19:14 -0700 (PDT) X-Gm-Message-State: CTeZvEnbOaW3uGCg0lWGyTf7x1787277AA= X-Google-Smtp-Source: AGHT+IGJYbpmog7XFvSe7U8zVGrqM9zwwcgYbNa7toVEsI3XYuuGDKPXGIFfiEA+ahiJtBBk9/PwHw== X-Received: by 2002:a05:6a00:b42:b0:68a:5395:7aa5 with SMTP id p2-20020a056a000b4200b0068a53957aa5mr3704839pfo.17.1693437554091; Wed, 30 Aug 2023 16:19:14 -0700 (PDT) X-Received: from localhost.localdomain ([50.46.253.1]) by smtp.gmail.com with ESMTPSA id x16-20020a62fb10000000b0064398fe3451sm102550pfm.217.2023.08.30.16.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 16:19:13 -0700 (PDT) From: "Taylor Beebe" To: devel@edk2.groups.io Cc: Andrew Fish , Ray Ni Subject: [edk2-devel] [PATCH v3 16/26] EmulatorPkg: Use GetMemoryProtectionsLib instead of Memory Protection PCDs Date: Wed, 30 Aug 2023 16:18:24 -0700 Message-ID: <20230830231851.779-17-taylor.d.beebe@gmail.com> In-Reply-To: <20230830231851.779-1-taylor.d.beebe@gmail.com> References: <20230830231851.779-1-taylor.d.beebe@gmail.com> MIME-Version: 1.0 Precedence: Bulk 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,taylor.d.beebe@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1693437557940100069 Content-Type: text/plain; charset="utf-8" Replace references to the memory protection PCDs to instead check the platform protections via GetMemoryProtectionsLib. Because the protection profile is equivalent to the PCD settings, this updated does not cause a torn state. Signed-off-by: Taylor Beebe Cc: Andrew Fish Cc: Ray Ni --- EmulatorPkg/EmulatorPkg.dsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EmulatorPkg/EmulatorPkg.dsc b/EmulatorPkg/EmulatorPkg.dsc index b44435d7e6ee..1e2c903f5c30 100644 --- a/EmulatorPkg/EmulatorPkg.dsc +++ b/EmulatorPkg/EmulatorPkg.dsc @@ -126,6 +126,8 @@ [LibraryClasses] SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf + GetMemoryProtectionsLib|MdeModulePkg/Library/GetMemoryProtectionsLib/Get= MemoryProtectionsLibNull.inf + SetMemoryProtectionsLib|MdeModulePkg/Library/SetMemoryProtectionsLib/Set= MemoryProtectionsLibNull.inf =20 !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf @@ -216,7 +218,6 @@ [PcdsFeatureFlag] gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplBuildPageTables|FALSE =20 [PcdsFixedAtBuild] - gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000000 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FAL= SE gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000040 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f --=20 2.42.0.windows.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 (#108170): https://edk2.groups.io/g/devel/message/108170 Mute This Topic: https://groups.io/mt/101064090/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-