From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 87AAC941BA5 for ; Fri, 1 Mar 2024 18:58:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=/vGgvIFBpUGK/BAk9us4ZIX9qr6jlgcH+xmR/14/kx4=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1709319488; v=1; b=cjFXDPwOAGqLOs6/7Lztvx6Dx1jTlHUnuuPz4/ydVZIm8/CsZ53MMT+CBJfEdvbkt47FFb2d XMWtn55FmxFb+97YPdAl9+3ws99l0IhMy2940idxIxGa51M8/3bIVtTQlh9asoWUrkl6CJIQbs+ AklFhVxIvmbi73mixoZD7tp4= X-Received: by 127.0.0.2 with SMTP id ovpCYY7687511xS2dEmbCbL3; Fri, 01 Mar 2024 10:58:08 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.32062.1709319487565551888 for ; Fri, 01 Mar 2024 10:58:07 -0800 X-Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-480-FzPL4SMEMH2JdqOK96aLRg-1; Fri, 01 Mar 2024 13:58:03 -0500 X-MC-Unique: FzPL4SMEMH2JdqOK96aLRg-1 X-Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E908B2824783; Fri, 1 Mar 2024 18:58:02 +0000 (UTC) X-Received: from [10.39.194.215] (unknown [10.39.194.215]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8BE042166B31; Fri, 1 Mar 2024 18:58:02 +0000 (UTC) Message-ID: <1e0dd34a-e6a0-95d3-d55f-7182bee789f9@redhat.com> Date: Fri, 1 Mar 2024 19:58:01 +0100 MIME-Version: 1.0 Subject: Re: [edk2-devel] [PATCH v3 0/4] Support to unregister SMI handler inside SMI handler To: devel@edk2.groups.io, zhiguang.liu@intel.com References: <20240301030133.628-1-zhiguang.liu@intel.com> From: "Laszlo Ersek" In-Reply-To: <20240301030133.628-1-zhiguang.liu@intel.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: TWnBwFknhXvNztIyPRxk9iEzx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=cjFXDPwO; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io On 3/1/24 04:01, Zhiguang Liu wrote: > This patch set is to support to unregister SMI handler inside SMI handler= , > also add check to not allow unregister SMI handler in other SMI handler. > This patch set also have the same logic in StandaloneMmPkg. > Because no change on the first patch, I kept the R-B for it. >=20 > V3: > Minor change on patch #2 and patch #4: > gCurrentSmiHandler -> mCurrentSmiHandler > change ASSERT to return EFI_INVALID_PARAMETER >=20 > Zhiguang Liu (4): > MdeModulePkg/SMM: Support to unregister SMI handler inside SMI handler > MdeModulePkg/SMM: Disallow unregister SMI handler in other SMI handler > StandaloneMmPkg: Support to unregister MMI handler inside MMI handler > StandaloneMmPkg: Disallow unregister MMI handler in other MMI handler >=20 > MdeModulePkg/Core/PiSmmCore/Smi.c | 37 ++++++++++++++++++++++------- > StandaloneMmPkg/Core/Mmi.c | 39 +++++++++++++++++++++++-------- > 2 files changed, 57 insertions(+), 19 deletions(-) >=20 Merged as 3 ae1079b386a5 MdeModulePkg/SMM: Support to unregister SMI handler in= side SMI handler 4 17b28722008e MdeModulePkg/SMM: Disallow unregister SMI handler in o= ther SMI handler 5 049ff6c39c73 StandaloneMmPkg: Support to unregister MMI handler ins= ide MMI handler 6 2ec8f0c6407f StandaloneMmPkg: Disallow unregister MMI handler in ot= her MMI handler via . Laszlo -=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 (#116282): https://edk2.groups.io/g/devel/message/116282 Mute This Topic: https://groups.io/mt/104657663/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-