From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by mx.groups.io with SMTP id smtpd.web10.278.1664988864553551439 for ; Wed, 05 Oct 2022 09:54:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@google.com header.s=20210112 header.b=AR+XDMWk; spf=pass (domain: google.com, ip: 209.85.218.45, mailfrom: dionnaglaze@google.com) Received: by mail-ej1-f45.google.com with SMTP id k2so6814158ejr.2 for ; Wed, 05 Oct 2022 09:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=bbROq1PqurbrTeRtpxrc0G+rKQpxmJZpabQKEngqbPs=; b=AR+XDMWk69EUbk6h0/bBN5LpvK4h9i2fXV/MNNxZgS2AOjjjM0u/PyNavM2I3CQcah Uf8T+BYorYKVyPIhnRz1yevNXdiDNYOM1SruTTo9ULgwSXMnISI75ZAcwEebU1vGnIK4 C6utwRKJvdrXcR9xTs81IxpubMjau3M0U/8BhqCkTGRTDvZ21Amq1Aur8rbxRrUPr/jb J3ur+Cy73Ybot8PdYJGZfw3UCKJcN6VAeGIWO9KhCfUt76iDHYXTit3I66d9yRL3qCzH TX89AVKrHOxhogSZSzyf8796gKNzUkGMssqB/BndoG5Hcf6lHKhDibSLAq+AHOfNNpaF fsdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=bbROq1PqurbrTeRtpxrc0G+rKQpxmJZpabQKEngqbPs=; b=wFOG2RLy3B5djXmA0szHmtQ6hOuWgAVha2g8/DeK6eYVXXoJ0ckvQqPVj0bmotdUhU /u74sqhyzbPgDBwCrKwQt3CvnpFwPhvUuP39adD21cRSrc93swXRHhOUuICkW2+VNyU0 dl7g+b/g/hs7T/dp2eltNRbrd3fEJ2E1MOgqEAFhwRqehqa+E5pq5wF0H4RD4sbqUj7p MIhRvnnERCe9yBLMT1mTuTxH/TtraEQOrsANYkvFWkyaEyEdb/OJarr+1DzvO5txmvXK h2yvSsmGGiU3Amkm/q9iWkt2GbVL2XcRcQb/dnV7eNKozyxkfZ2DNLIUKYD016GIAoBB Si3g== X-Gm-Message-State: ACrzQf2jI23XGWNNplweWvaCcBwMxU4kEZEJHbl0+0lGO2xCDkUBro6i 0zHBZ2ukyYpMJIqNPdr5U62C8pCGWO64o30POrOTOw== X-Google-Smtp-Source: AMsMyM6ppaedIapP/J0H0w+bPcZ/wygfEZZoCavRDMcBMW5P+ORnH5aWyS0Lq1xfKIr9Hs/Qpn8o+2F3x1aST8XcOFc= X-Received: by 2002:a17:907:d1c:b0:78a:d065:c38e with SMTP id gn28-20020a1709070d1c00b0078ad065c38emr409318ejc.397.1664988863030; Wed, 05 Oct 2022 09:54:23 -0700 (PDT) MIME-Version: 1.0 References: <20220930230627.3371754-1-dionnaglaze@google.com> <20220930230627.3371754-3-dionnaglaze@google.com> In-Reply-To: From: "Dionna Glaze" Date: Wed, 5 Oct 2022 09:54:12 -0700 Message-ID: Subject: Re: [edk2-devel] [PATCH v5 2/7] MdePkg: Introduce ExitBootServicesCallbackProtocol To: Felix Polyudov Cc: "devel@edk2.groups.io" , "ardb@kernel.org" , "Ni, Ray" , Gerd Hoffmann , "Xu, Min M" , James Bottomley , "Yao, Jiewen" , Tom Lendacky , Andrew Fish , "Kinney, Michael D" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Felix, this is great! I'll change the implementation to just be this specified thing. On Wed, Oct 5, 2022 at 9:20 AM Felix Polyudov wrote: > > > On Mon, 3 Oct 2022 at 03:16, Dionna Amalie Glaze > > wrote: > > > > > > > > > > > Is it defined by UEFI Spec? > > > > > > > > > > It is not. This is Ard's suggested solution > > UEFI 2.9 defines new event EFI_EVENT_GROUP_BEFORE_EXIT_BOOT_SERVICES, whi= ch serves the same purpose > and has the timing you've described: "after the time that the timer is di= sabled and before the MemoryMap is finalized". > > Here is event description from the spec (refer to EFI_BOOT_SERVICES.Creat= eEventEx() section of the UEFI 2.9): > "This event group is notified by the system when ExitBootServices() is in= voked right before notifying EFI_EVENT_GROUP_EXIT_BOOT_SERVICES event group= . The event presents the last opportunity to use firmware interfaces in the= boot environment." > -The information contained in this message may be confidential and propri= etary to American Megatrends (AMI). This communication is intended to be re= ad only by the individual or entity to whom it is addressed or by their des= ignee. If the reader of this message is not the intended recipient, you are= on notice that any distribution of this message, in any form, is strictly = prohibited. Please promptly notify the sender by reply e-mail or by telepho= ne at 770-246-8600, and then delete or destroy all copies of the transmissi= on. --=20 -Dionna Glaze, PhD (she/her)