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 8995F940EF8 for ; Fri, 1 Mar 2024 03:05:42 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=XMKebiAMAI2ubChpoGthqa2LjllwnAILNfU5jEyKXHA=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1709262340; v=1; b=oMGWMRBTzNIl0dxdMjzsW0TjNGoXYZEfVXsNQfpb9L61VREXIvg+QVvl9vPhwrk7lLsI6bHA sxTeut6XYloBdrwWaUTvIF01rJyIXqayE1uanQ/eXOgNXVxBGbvENZ+1wE9Qqqnjjvxuq9ABi2M cSprw5VcRyt0UTzNYqf+AiFw= X-Received: by 127.0.0.2 with SMTP id MHhwYY7687511xMRAxQ6LgMz; Thu, 29 Feb 2024 19:05:40 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by mx.groups.io with SMTP id smtpd.web10.14105.1709262340273339436 for ; Thu, 29 Feb 2024 19:05:40 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="3955923" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="3955923" X-Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 19:05:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="8181866" X-Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 19:05:38 -0800 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu Subject: [edk2-devel] [PATCH v3 0/4] Support to unregister SMI handler inside SMI handler Date: Fri, 1 Mar 2024 11:01:29 +0800 Message-Id: <20240301030133.628-1-zhiguang.liu@intel.com> MIME-Version: 1.0 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,zhiguang.liu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: DYPnICKyxg9ovXHboTi1gBmmx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=oMGWMRBT; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.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 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. V3: Minor change on patch #2 and patch #4: gCurrentSmiHandler -> mCurrentSmiHandler change ASSERT to return EFI_INVALID_PARAMETER 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 MdeModulePkg/Core/PiSmmCore/Smi.c | 37 ++++++++++++++++++++++------- StandaloneMmPkg/Core/Mmi.c | 39 +++++++++++++++++++++++-------- 2 files changed, 57 insertions(+), 19 deletions(-) -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116202): https://edk2.groups.io/g/devel/message/116202 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] -=-=-=-=-=-=-=-=-=-=-=-