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 E0039AC09C7 for ; Wed, 10 Apr 2024 07:49:30 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=bC1F5zSEptOimVWrNaZxudgez7Pgv79MUqV1dfsRAvQ=; 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=1712735369; v=1; b=NcYC2vaAJ648JOq+x9pAlJA4NFF0M10ivd7MdjUM8vHuRiCiak+e7dCOVFmdlQ310SRhf9cf Oey8fHvGfFcRa6Rn3K5K9f5G5OubXg/N6r5EDycYXGF5DPzmMJJN7DDrcwt8qoXM8iGV7tujIiu PY5TlTUYU3PPXlaxkJt4SgBUKba+Xfyv3HPwc2HZFqTmO37h4GFlWQsZmuhycszdfoGG73z1foL HffuEuyhBCSr8Ifyq9V5i7v+vPUnarpMHoG9rCgQdfGwhwchM4YsJ2KtgmuxM6sxfW2z5TostNK ZchAIgCoeprvVtDC3hboSK+2xePDT6nOepH4LvxSFiojA== X-Received: by 127.0.0.2 with SMTP id Zg7wYY7687511x4ZJZugP9P3; Wed, 10 Apr 2024 00:49:29 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by mx.groups.io with SMTP id smtpd.web11.161430.1712735368660045425 for ; Wed, 10 Apr 2024 00:49:28 -0700 X-CSE-ConnectionGUID: KtnyyhVLRXu7ydOLg8L64g== X-CSE-MsgGUID: KPGS0egGT1qdyquhIP3Kkw== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="7955801" X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="7955801" X-Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 00:49:28 -0700 X-CSE-ConnectionGUID: I+yNgLwxT0O5tjStAmHbYQ== X-CSE-MsgGUID: STGn5RNDTrSebPPgLp93cw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="51694182" X-Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 00:49:27 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu Subject: [edk2-devel] [PATCH v3 0/6] Support to unregister SMI handler in SMI handlers Date: Wed, 10 Apr 2024 15:49:01 +0800 Message-Id: <20240410074907.4095-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: Wed, 10 Apr 2024 00:49:28 -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: JvjZVbMht59cun08S7iEiT8fx7686176AA= 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=NcYC2vaA; 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. V2&V3: Code refine based on Ray's comments 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 | 198 ++++++++++++++++------- StandaloneMmPkg/Core/Mmi.c | 200 +++++++++++++++++------- 3 files changed, 292 insertions(+), 107 deletions(-) -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117572): https://edk2.groups.io/g/devel/message/117572 Mute This Topic: https://groups.io/mt/105437953/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-