From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AA7D48038F for ; Thu, 9 Mar 2017 23:35:07 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Mar 2017 23:35:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,139,1486454400"; d="scan'208";a="234483235" Received: from jyao1-mobl.ccr.corp.intel.com ([10.239.192.59]) by fmsmga004.fm.intel.com with ESMTP; 09 Mar 2017 23:35:06 -0800 From: Jiewen Yao To: edk2-devel@lists.01.org Cc: Jeff Fan , Feng Tian , Star Zeng , Bret Barkelew Date: Fri, 10 Mar 2017 15:35:00 +0800 Message-Id: <1489131303-3732-1-git-send-email-jiewen.yao@intel.com> X-Mailer: git-send-email 2.7.4.windows.1 Subject: [PATCH 0/3] Add Context in SmiHandlerProfileUnregister. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2017 07:35:07 -0000 This issue is reported by Bret.Barkelew@microsoft.com. We observe that a platform may use same Handler for different context. In order to support Unregister such handler, we have to input context information as well. The patch does not impact any platform with SmiHandlerProfile disabled. Unit tests below: 1) register same handler with different context, and unregister each. 2) register and unregister UsbContext. Cc: Jeff Fan Cc: Feng Tian Cc: Star Zeng Cc: Bret Barkelew Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao Jiewen Yao (3): MdePkg/SmiHandlerProfile: Add Context support in Unregister MdeModulePkg/SmiHandlerProfile: Add Context support in Unregister MdeModulePkg/SmmCore: Add Context in SmiHandlerProfileUnregister. MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | 8 +- MdeModulePkg/Core/PiSmmCore/SmiHandlerProfile.c | 103 ++++++++++++++++---- MdeModulePkg/Include/Guid/SmiHandlerProfile.h | 41 +++++++- MdeModulePkg/Library/SmmSmiHandlerProfileLib/SmmSmiHandlerProfileLib.c | 10 +- MdePkg/Include/Library/SmiHandlerProfileLib.h | 8 +- MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c | 8 +- 6 files changed, 151 insertions(+), 27 deletions(-) -- 2.7.4.windows.1