From nobody Tue Feb 10 10:54:13 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+94766+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+94766+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1665002025; cv=none; d=zohomail.com; s=zohoarc; b=bn1yqPrsr+2PQP18YTRUzemC+WpVysAvioF4dTlmfiiB0ovNaNWHYg5IMlVD+njJjNEL/pNFyot254LQrH5SfvXrp15787LGDLRlA0ogR+hxw2lYzcsGKqaBzaDUcLdkZbssWtaITYdj30UoCBh7jvPrIwThp/5VP/SbP1QuX1M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665002025; 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=VlyXUxbWhyAp4KZLMz+QywqALPLDbBePAJtYf/09IVA=; b=bOiohgA1IstGIA89Z8NFp6U5d3YyyA3l2LGULVB3mvEVyN+qXpeZYAnq59X8nMYCbWY/sbINnzy0UBTuFgKpXwcYTwnKz9kdquf9XAH0c6i+ofSXhtofj72hIT3m9LJvVFIi5CKtoj9AbjNtBkOM6PZ6/OQV+XTXTTpCIZZ3v2w= 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+94766+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1665002025605630.7494922165232; Wed, 5 Oct 2022 13:33:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id ULGMYY1788612xiIJzaddK12; Wed, 05 Oct 2022 13:33:45 -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.web09.468.1665002024464927323 for ; Wed, 05 Oct 2022 13:33:44 -0700 X-Received: by mail-pj1-f74.google.com with SMTP id w9-20020a17090a780900b002093deb1701so1427598pjk.0 for ; Wed, 05 Oct 2022 13:33:44 -0700 (PDT) X-Gm-Message-State: 7IEoPslBjJYqkLAn9hpMATcjx1787277AA= X-Google-Smtp-Source: AMsMyM48ft7S89lV8d9P2vGOOGIbavsUOzxr/YyPdbZpMZVXv5V0uf0DzGOgZnegh1udTyE1nvuPT3PV6UxR3d62Dg== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a17:902:b18e:b0:178:3484:f45e with SMTP id s14-20020a170902b18e00b001783484f45emr1228254plr.166.1665002023881; Wed, 05 Oct 2022 13:33:43 -0700 (PDT) Date: Wed, 5 Oct 2022 20:33:25 +0000 In-Reply-To: <20221005203329.469866-1-dionnaglaze@google.com> Mime-Version: 1.0 References: <20221005203329.469866-1-dionnaglaze@google.com> Message-ID: <20221005203329.469866-4-dionnaglaze@google.com> Subject: [edk2-devel] [PATCH v7 3/7] MdeModulePkg: Notify BeforeExitBootServices in CoreExitBootServices From: "Dionna Glaze via groups.io" To: devel@edk2.groups.io Cc: Dionna Glaze , Gerd Hoffmann , James Bottomley , Jiewen Yao , Tom Lendacky , Ard Biesheuvel , "Min M. Xu" , Andrew Fish , "Michael D. Kinney" , Ray Ni 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=1665002025; bh=TecusaY2AwvUuxUMZJNwC/uZ4xmvtYTIshn7t3lIDoI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=SLDIh2qVlCXWh6jniZIA67aueCE1UWqtefGCRZ68I7e1b9dmreia+A4yyQ0z/nGMwcT G6VUkvoQvhn1Mbisr6ojCD+jRl+6Xk1jGbPm1LaLpuUPMoSOI67yxhVdcCgBzi4Zs4Xd7 R3sgVLgwnaK/I4Rvb4aTp/vnjFqPAJw+nhI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1665002027753100014 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Location of notification is has been specified in UEFI v2.9. Cc: Gerd Hoffmann Cc: James Bottomley Cc: Jiewen Yao Cc: Tom Lendacky Cc: Ard Biesheuvel Cc: "Min M. Xu" Cc: Andrew Fish Cc: "Michael D. Kinney" Cc: Ray Ni Signed-off-by: Dionna Glaze Reviewed-by: Ard Biesheuvel Reviewed-by: Liming Gao --- MdeModulePkg/Core/Dxe/DxeMain.inf | 1 + MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/MdeModulePkg/Core/Dxe/DxeMain.inf b/MdeModulePkg/Core/Dxe/DxeM= ain.inf index e4bca89577..35d5bf0dee 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain.inf +++ b/MdeModulePkg/Core/Dxe/DxeMain.inf @@ -100,6 +100,7 @@ gEfiEventVirtualAddressChangeGuid ## CONSUMES ##= Event ## CONSUMES ## Event ## PRODUCES ## Event + gEfiEventBeforeExitBootServicesGuid gEfiEventExitBootServicesGuid gEfiHobMemoryAllocModuleGuid ## SOMETIMES_CONSUMES ##= HOB gEfiFirmwareFileSystem2Guid ## CONSUMES ##= GUID # Used to compare with FV's file system guid and get the FV's file sy= stem format diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dx= e/DxeMain/DxeMain.c index 5733f0c8ec..4683016ed7 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c @@ -763,6 +763,12 @@ CoreExitBootServices ( { EFI_STATUS Status; =20 + // + // Notify other drivers of their last chance to use boot services + // before the memory map is terminated. + // + CoreNotifySignalList (&gEfiEventBeforeExitBootServicesGuid); + // // Disable Timer // --=20 2.38.0.rc1.362.ged0d419d3c-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 (#94766): https://edk2.groups.io/g/devel/message/94766 Mute This Topic: https://groups.io/mt/94144530/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-