From nobody Mon Feb 9 22:03:52 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+95532+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+95532+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1666644103; cv=none; d=zohomail.com; s=zohoarc; b=mEwAKxzJxEJK+geRTnW1r0mJ2j/U1dladHXEP7P73Zx6xmmX1oY6XRVGU4bp50xbjMcWYhxs+d9HmdKjHWMLHgG75hs7xma06eOZWF1bIiMzm5PFat8RqzAX3f+S4r6oFltqT8kMustck0+TL1YvDZo4JFVWJ+GwYHyEWz8mHmg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666644103; 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=UJOiIrBWH+hzxFoZGnr1w7bgKurudUXae7PJQ+DL3c4=; b=lF9bP5wo+61WgUATWyu05jPz17kx5sEvuJD1TKeey706mJeSKs9quvmqFh9+k7YRJbAPC8X6AZfQzfXlXAVrDd7eFHQMFt7eymP+TjiPqVUMg7bjomPh74piwm8X7djvvIpnDRqpFOscJLVZYew6WFe6eVL2KeJUTekEhJFDZkE= 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+95532+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1666644103376855.1269128410539; Mon, 24 Oct 2022 13:41:43 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id mkwkYY1788612xOZcs6A2eJn; Mon, 24 Oct 2022 13:41:43 -0700 X-Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) by mx.groups.io with SMTP id smtpd.web11.1419.1666644102394315271 for ; Mon, 24 Oct 2022 13:41:42 -0700 X-Received: by mail-pg1-f202.google.com with SMTP id a33-20020a630b61000000b00429d91cc649so5124460pgl.8 for ; Mon, 24 Oct 2022 13:41:42 -0700 (PDT) X-Gm-Message-State: y90GU7RMUpkjJfL5ROt1pr8kx1787277AA= X-Google-Smtp-Source: AMsMyM4lNnpr/FBRaXtBZlu/Ob62+Sh6iNmXPenXf1Kpbc23dBeJ/QzXRELMPkmYpEUaH1U3ul+/xGTejSe8/U+zLw== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a05:6a00:2446:b0:528:5da9:cc7 with SMTP id d6-20020a056a00244600b005285da90cc7mr35800930pfj.51.1666644090824; Mon, 24 Oct 2022 13:41:30 -0700 (PDT) Date: Mon, 24 Oct 2022 20:41:10 +0000 In-Reply-To: <20221024204114.2772064-1-dionnaglaze@google.com> Mime-Version: 1.0 References: <20221024204114.2772064-1-dionnaglaze@google.com> Message-ID: <20221024204114.2772064-4-dionnaglaze@google.com> Subject: [edk2-devel] [PATCH v8 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=1666644103; bh=iCHq27bNeHSrM6j9MNwsPcLw0rpzpYYae81TiGuP8rs=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=Z71UXgikyjihtZSodeaOaT8hRs3/6UMeXZV9mJySi2ANzQU40K089KOlgNeXMQJZ97G WuWkKZAEMPqZPXwAe6shlnD88vpHIWlmmzP58iw0iX0VimN51mez6dpVm8P/XSK1yJ2/2 PCX+H/22DV6hjtFPK+/i+1/lNTm/1Zjxaow= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1666644103715100015 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 Acked-by: Jiewen Yao --- 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.135.g90850a2211-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 (#95532): https://edk2.groups.io/g/devel/message/95532 Mute This Topic: https://groups.io/mt/94544540/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-