From nobody Thu Nov 14 17:03:44 2024 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+94470+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+94470+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1664379224; cv=none; d=zohomail.com; s=zohoarc; b=RIaci3APA/3/END6HMujO7rAUL16hsY3tAc14BDLrvJKzkfGHlXmb+0gdztE2YPPbQM0TSZNOahBCQpxbkhFD/GNmq3M0yeHqy1Xja32+Q6eMk+drU27jkZaMuzf/NaW+toI7pzFSzivD/iaf1TlqI02W21cm96lXGkBsORwjoo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1664379224; h=Content-Type: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=3IqPjCC+0OQNkDPIBLD4bAzfknWbuOIoncCxUW3E96o=; b=GazS+zQHBSYVoIiJo8aHfvPBVwmM9PwN5Bpz897acuFqvhkTDnoLmaV61UOgyoEVUTrX57RjYtdMhlyrNNGqkv3Tq/2dCbEEkpkyeIfH89QlFAQgM1ldKe3GmNh8eZq4odBWhlouqSSlkBS2qawXa4/rVxe+2EFREh0vX591+sU= 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+94470+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1664379224938852.31897551847; Wed, 28 Sep 2022 08:33:44 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id e82fYY1788612xcLCkGT7y1z; Wed, 28 Sep 2022 08:33:43 -0700 X-Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) by mx.groups.io with SMTP id smtpd.web12.9581.1664379222858993405 for ; Wed, 28 Sep 2022 08:33:42 -0700 X-Received: by mail-pj1-f74.google.com with SMTP id z9-20020a17090a468900b00202fdb32ba1so1204900pjf.1 for ; Wed, 28 Sep 2022 08:33:42 -0700 (PDT) X-Gm-Message-State: T6EvbnanwdlxhQAx80JWwm9rx1787277AA= X-Google-Smtp-Source: AMsMyM5FUY7GMvGev4/4fYsPjOxOJo5yUPuwL93oRz7Z2q3YofKPJiUXkkn+hZ9aZ7V1OuuAoutDSS31NYI6jpEQLg== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a62:82cc:0:b0:553:e631:14f0 with SMTP id w195-20020a6282cc000000b00553e63114f0mr35197632pfd.63.1664379222108; Wed, 28 Sep 2022 08:33:42 -0700 (PDT) Date: Wed, 28 Sep 2022 15:33:19 +0000 In-Reply-To: <20220928153323.2583389-1-dionnaglaze@google.com> Mime-Version: 1.0 References: <20220928153323.2583389-1-dionnaglaze@google.com> Message-ID: <20220928153323.2583389-3-dionnaglaze@google.com> Subject: [edk2-devel] [PATCH v4 2/6] MdeModulePkg: Add PcdEnableUnacceptedMemory From: "Dionna Glaze via groups.io" To: devel@edk2.groups.io Cc: Dionna Glaze , Gerd Hoffmann , James Bottomley , Jiewen Yao , Tom Lendacky , Ard Biesheuvel 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,dionnaglaze@google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1664379223; bh=U6ezB+Kwj1gV1cdbA/16fycXelm9ufonuctoZHzzkVA=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=g88zCRdNdoJGFKZ/K/VyzhYSC2Sjji3fwKe5ptvA+eHApx/yi+zbEIneKkT8okdl3zf 9ObXIYt/3cP6qKiFsp62Jk18p0qQ/wjUFpsp7VLsKNO5petQi2KgqccLWVFZm9lLbf6Fr /cTAjUyqD3zC/UQfSiCJGMW1hqfqnAc4J+c= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1664379225289100010 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This Pcd is used to toggle whether ExitBootServices should not accept all unaccepted memory. It's the loaded image's responsibility to enable support so that it doesn't get memory types it doesn't understand in its memory map. Cc: Gerd Hoffmann Cc: James Bottomley Cc: Jiewen Yao Cc: Tom Lendacky Cc: Ard Biesheuvel Signed-off-by: Dionna Glaze --- MdeModulePkg/MdeModulePkg.dec | 6 ++++++ MdeModulePkg/MdeModulePkg.uni | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 58e6ab0048..dd07b3725a 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -2102,6 +2102,12 @@ # @Prompt The shared bit mask when Intel Tdx is enabled. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0|UINT64|0x10000025 =20 + ## Indicates if the memory map may include unaccepted memory after ExitB= ootServices().

+ # TRUE - The memory map may include unaccepted memory after ExitBootS= ervices().
+ # FALSE - The memory map may not include unaccepted memory after ExitB= ootServices().
+ # @Prompt Support unaccepted memory type. + gEfiMdeModulePkgTokenSpaceGuid.PcdEnableUnacceptedMemory|FALSE|BOOLEAN|0= x10000026 + [PcdsPatchableInModule] ## Specify memory size with page number for PEI code when # Loading Module at Fixed Address feature is enabled. diff --git a/MdeModulePkg/MdeModulePkg.uni b/MdeModulePkg/MdeModulePkg.uni index 33ce9f6198..fde57da123 100644 --- a/MdeModulePkg/MdeModulePkg.uni +++ b/MdeModulePkg/MdeModulePkg.uni @@ -1338,3 +1338,9 @@ #string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdPcieResizableBarSupport_HELP= #language en-US "Indicates if the PCIe Resizable BAR Capability Supported.=

\n" = "TRUE - PCIe Resizable BAR Capability is supported.
\= n" = "FALSE - PCIe Resizable BAR Capability is not supported.<= BR>" + +#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdEnableUnacceptedMemory_PROMP= T #language en-US "Support unaccepted memory type" +#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdEnableUnacceptedMemory_HELP = #language en-US "Indicates if the memory map may include unaccepted memory " + = "after ExitBootServices().

\n" + = "TRUE - The memory map may include unaccepted memory after= ExitBootServices().
\n" + = "FALSE - The memory map may not include unaccepted memory a= fter ExitBootServices().
\n" --=20 2.37.3.998.g577e59143f-goog -=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 (#94470): https://edk2.groups.io/g/devel/message/94470 Mute This Topic: https://groups.io/mt/93975247/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-