From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 3EACD802A5 for ; Sun, 12 Mar 2017 20:11:23 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2017 20:11:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,156,1486454400"; d="scan'208";a="1121690641" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga001.fm.intel.com with ESMTP; 12 Mar 2017 20:11:22 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 12 Mar 2017 20:11:22 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.177]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.204]) with mapi id 14.03.0248.002; Mon, 13 Mar 2017 11:11:19 +0800 From: "Tian, Feng" To: "Fan, Jeff" , "Yao, Jiewen" , "edk2-devel@lists.01.org" CC: "Zeng, Star" , Bret Barkelew , "Tian, Feng" Thread-Topic: [PATCH 0/3] Add Context in SmiHandlerProfileUnregister. Thread-Index: AQHSmXDfPl+EPGyKzESk6ZzpkG9z9qGRg7SAgACYVPA= Date: Mon, 13 Mar 2017 03:11:18 +0000 Message-ID: <7F1BAD85ADEA444D97065A60D2E97EE5699B8F26@SHSMSX101.ccr.corp.intel.com> References: <1489131303-3732-1-git-send-email-jiewen.yao@intel.com> <542CF652F8836A4AB8DBFAAD40ED192A4C55D4DF@shsmsx102.ccr.corp.intel.com> In-Reply-To: <542CF652F8836A4AB8DBFAAD40ED192A4C55D4DF@shsmsx102.ccr.corp.intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [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: Mon, 13 Mar 2017 03:11:23 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Feng Tian Thanks Feng -----Original Message----- From: Fan, Jeff=20 Sent: Monday, March 13, 2017 10:06 AM To: Yao, Jiewen ; edk2-devel@lists.01.org Cc: Tian, Feng ; Zeng, Star ; Bre= t Barkelew Subject: RE: [PATCH 0/3] Add Context in SmiHandlerProfileUnregister. Reviewed-by: Jeff Fan -----Original Message----- From: Yao, Jiewen=20 Sent: Friday, March 10, 2017 3:35 PM To: edk2-devel@lists.01.org Cc: Fan, Jeff; Tian, Feng; Zeng, Star; Bret Barkelew Subject: [PATCH 0/3] Add Context in SmiHandlerProfileUnregister. 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 infor= mation 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 | 1= 03 ++++++++++++++++---- 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