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 52030940EB7 for ; Mon, 18 Mar 2024 02:20:18 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=NZ2SfkYZ4uyR0pLjNA8b5OaiZ9NrCqQ3Wm4dUPrpIL0=; 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:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1710728417; v=1; b=eRSJ1j5W1b1khe0LlV4TQk8iyvTbzVXOQ0aQKPetjm+MvlPCSyUskyNBFR6hTko5CuL1h5i1 8hdXwP9+qFQKjgXXBhFQI+zbaV36UTB1vlckfSTU8VldBctAd4tyw6RdzZrK7CGkWxFELao8pCj KJr9Fx1SIyvVo7HksxyAuuFkqjGgEBrV/5Qtv3PHcp5cTn/m/8PU1gTtFodVD4FjCcPTFLvu++5 LH6ovCxsMr69AGCpmIRFbpks40z9q88m6Z1yEowofBArkNCFUkKajD7Zgr2Sl4ehtJ3X0OYJdlh dz3Wkb1skA2dBZ4KR05LL/5rrNT+1OsWbYDjCzpF0ZpRw== X-Received: by 127.0.0.2 with SMTP id 26cNYY7687511xkdsW69sxzI; Sun, 17 Mar 2024 19:20:17 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mx.groups.io with SMTP id smtpd.web11.34038.1710728416304381805 for ; Sun, 17 Mar 2024 19:20:16 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,11016"; a="5363091" X-IronPort-AV: E=Sophos;i="6.07,133,1708416000"; d="scan'208";a="5363091" X-Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2024 19:20:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,133,1708416000"; d="scan'208";a="13356197" X-Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2024 19:20:14 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu Subject: [edk2-devel] [PATCH 0/6] Support to unregister SMI handler in SMI handlers Date: Mon, 18 Mar 2024 10:19:50 +0800 Message-Id: <20240318021956.2787-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 Resent-Date: Sun, 17 Mar 2024 19:20:16 -0700 Reply-To: devel@edk2.groups.io,zhiguang.liu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 1xqO9za6NCnQdRvgTkYChPkOx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=eRSJ1j5W; 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 Months ago, I sent patch set to fix potential issues in the usage of SMI handler unregistering SMI handler. Discussion can be found in below link: https://edk2.groups.io/g/devel/topic/103925794#114251 The conclusion was to only support SMI handler unregistering itself, and not allow SMI handler unregistering other handlers, because we thought there would be no such usage. However, recently, I find in some platform, there is kind of usage. To also support SMI handler unregistering other handlers, this patch set use a totally different design. So I revert the former ones first to make the code more readable. Thank Laszlo for bring up the initial idea for the new design. Zhiguang Liu (6): Revert 2ec8f0c6407f062441b205b900038933865c7b3c Revert 049ff6c39c73edd3709c05bd0e46184320471358 Revert 17b28722008eab745ce186b72cd325944cbe6bf0 Revert ae1079b386a597108a8070652bf7cdaa4ec3dda3 MdeModulePkg/SMM: Support to unregister SMI handler in SMI handlers StandaloneMmPkg: Support to unregister MMI handler in MMI handlers MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | 1 + MdeModulePkg/Core/PiSmmCore/Smi.c | 142 ++++++++++++++++++------ StandaloneMmPkg/Core/Mmi.c | 141 +++++++++++++++++------ 3 files changed, 217 insertions(+), 67 deletions(-) -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116826): https://edk2.groups.io/g/devel/message/116826 Mute This Topic: https://groups.io/mt/104996179/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-