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 5576A74003D for ; Wed, 3 Apr 2024 07:50:38 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=RLJwA1DFIQCkPh8NBceUeVpXRiidnUatPhoo8NTUUTY=; 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=1712130637; v=1; b=0YF/KenPQusmDfojeBMDd2l9yxZ+SruVYOL//hFnrsNf7fGq28T4O1pDl5eLjHAH2kNQoCia n4fq1lcKiEi1G1qAKFFZ5i1uV9Ef4DxcO4oSSAaER/c18Y2jwcTl9dtdb+4UHIKVopcFXkcpHFS pxW/1XuA/VrgvtzYim2oPhbPGkL4BY2tI0xUqwJL4mqw8v0L7iMdORuWNiWZinijm3oKxWAaOfZ kv565e4GMGAo2XbKIYsx506Rry/0jy8QLCv+01U0fXsz8THCFADmyfL487cw7ysnRmobQekg4pU w7nfTVXMkyUQi5xUHUfux/4N6OIaEHadu0JboTm53DSjQ== X-Received: by 127.0.0.2 with SMTP id OR0vYY7687511xCu0M6M1v6u; Wed, 03 Apr 2024 00:50:37 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mx.groups.io with SMTP id smtpd.web11.5859.1712130636141857502 for ; Wed, 03 Apr 2024 00:50:36 -0700 X-CSE-ConnectionGUID: hVijZR4+QpC/3W3Jb6kNzA== X-CSE-MsgGUID: GAjhmeCQQAuvC0m+NeHWKA== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="10311932" X-IronPort-AV: E=Sophos;i="6.07,176,1708416000"; d="scan'208";a="10311932" X-Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 00:50:35 -0700 X-CSE-ConnectionGUID: Kxj+BzetS+Ssg/po4waFDw== X-CSE-MsgGUID: d439/wpgTBGPgYNR8z1ODg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,176,1708416000"; d="scan'208";a="18399053" X-Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 00:50:35 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu Subject: [edk2-devel] [PATCH v2 0/6] Support to unregister SMI handler in SMI handlers Date: Wed, 3 Apr 2024 15:50:11 +0800 Message-Id: <20240403075017.1997-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, 03 Apr 2024 00:50:36 -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: v6ECuHrnsV0oFbUyocWqXBJGx7686176AA= 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="0YF/KenP"; 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: A limit simplication 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 | 184 ++++++++++++++++------- StandaloneMmPkg/Core/Mmi.c | 188 +++++++++++++++++------- 3 files changed, 268 insertions(+), 105 deletions(-) -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117348): https://edk2.groups.io/g/devel/message/117348 Mute This Topic: https://groups.io/mt/105304502/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-