From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 59AA18028E for ; Sun, 12 Mar 2017 19:05:59 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP; 12 Mar 2017 19:05:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,156,1486454400"; d="scan'208";a="74608926" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 12 Mar 2017 19:05:58 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 12 Mar 2017 19:05:58 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 12 Mar 2017 19:05:58 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Mon, 13 Mar 2017 10:05:56 +0800 From: "Fan, Jeff" To: "Yao, Jiewen" , "edk2-devel@lists.01.org" CC: "Tian, Feng" , "Zeng, Star" , Bret Barkelew Thread-Topic: [PATCH 0/3] Add Context in SmiHandlerProfileUnregister. Thread-Index: AQHSmXDewnPUbtip2Uun3+bIFUxeqKGSCagQ Date: Mon, 13 Mar 2017 02:05:55 +0000 Message-ID: <542CF652F8836A4AB8DBFAAD40ED192A4C55D4DF@shsmsx102.ccr.corp.intel.com> References: <1489131303-3732-1-git-send-email-jiewen.yao@intel.com> In-Reply-To: <1489131303-3732-1-git-send-email-jiewen.yao@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzBhMzVmNWYtODI4Yi00MzgwLWE4YmQtNTAxODFkZTQ4YjVlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlBMeWk3Y0s2ZGNjRVwvemNwS0dZTnBQRXpwREFZSktQSGFkTWc2Y2tvYURFPSJ9 x-ctpclassification: CTP_IC 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 02:05:59 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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