From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.groups.io (mail04.groups.io [45.79.224.9]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6B7E5AC0A05 for ; Tue, 16 Apr 2024 02:41:19 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=qNOYxkZ/cfeG0xwqhgkvQeFizKQxGCFwfmOLzuJL9FQ=; 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:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1713235277; v=1; b=tMXMhFdutQ8W0RdOm407LvUn0mHJcGZKuYCD7EF9Eim4afq6COZTYQe+gL2NPuXSW+DDMIlP TisfG0sh4jsPpLDyK6dkRiw0yNM+2NrmmsEpjSVMv8W0ZUleX5osSTFbdEuPUFrOJx6nJGmtnxn Crh/q1qe++YpN2XxM49wB8rwRCadYoSxt6n4TYK7gd7JOmylFWaeqEf54T7UCWH+77X+ASouKf7 5T5BI6QRJPIsu6SxYMh6NCkZrfnqGjrO6vc5fo90hJj+szs9+DCmbD3pQuHuESJB0c2XSfMRNJw VMZeIu2LG2v5s1gOnysDDk2cph8uMXeDkhhuuqLdHOsHw== X-Received: by 127.0.0.2 with SMTP id F11SYY7687511xvfde4Bhrw5; Mon, 15 Apr 2024 19:41:17 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mx.groups.io with SMTP id smtpd.web10.11001.1713235276662353128 for ; Mon, 15 Apr 2024 19:41:17 -0700 X-CSE-ConnectionGUID: 0NM7DLXaQymvUgsHnInzUA== X-CSE-MsgGUID: qfv0ujaUS+OBGTu/+NJrLw== X-IronPort-AV: E=McAfee;i="6600,9927,11045"; a="9205563" X-IronPort-AV: E=Sophos;i="6.07,204,1708416000"; d="scan'208";a="9205563" X-Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 19:41:16 -0700 X-CSE-ConnectionGUID: NWPlae0CTRyDirazQ5qA+w== X-CSE-MsgGUID: EfLdV+5eTNyGfVRa84oDXg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,204,1708416000"; d="scan'208";a="59553280" X-Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 19:41:15 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu Subject: [edk2-devel] [PATCH v4 0/6] Support to unregister SMI handler in SMI handlers Date: Tue, 16 Apr 2024 10:41:02 +0800 Message-Id: <20240416024108.1358-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: Mon, 15 Apr 2024 19:41:17 -0700 Resent-From: zhiguang.liu@intel.com Reply-To: devel@edk2.groups.io,zhiguang.liu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 0Jpd7O57MkvnHZPgPAfjCDpJx7686176AA= 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=tMXMhFdu; 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 45.79.224.9 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. V2&V3: Code refine based on Ray's comments V4: Add NULL pointer check to pass CI Refine commit message 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 | 201 +++++++++++++++++------- StandaloneMmPkg/Core/Mmi.c | 200 ++++++++++++++++------- 3 files changed, 294 insertions(+), 108 deletions(-) -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117817): https://edk2.groups.io/g/devel/message/117817 Mute This Topic: https://groups.io/mt/105550114/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-