From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 8684D81F42 for ; Thu, 1 Dec 2016 18:03:13 -0800 (PST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP; 01 Dec 2016 18:03:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,284,1477983600"; d="scan'208,217";a="38106195" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga006.fm.intel.com with ESMTP; 01 Dec 2016 18:03:12 -0800 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 1 Dec 2016 18:03:12 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 1 Dec 2016 18:03:12 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.239]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.142]) with mapi id 14.03.0248.002; Fri, 2 Dec 2016 10:03:10 +0800 From: "Yao, Jiewen" To: Laszlo Ersek , "edk2-devel@ml01.01.org" CC: "Kinney, Michael D" , "Fan, Jeff" Thread-Topic: [edk2] [PATCH] MdeModulePkg/PiSmmCore: AllocatePool should use MemoryType. Thread-Index: AQHSS6xJKJCHGzPgHUm9s7U2l/WD3KDzHKAAgADLpNA= Date: Fri, 2 Dec 2016 02:03:10 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C50386DF3E3@shsmsx102.ccr.corp.intel.com> References: <1480580607-19928-1-git-send-email-jiewen.yao@intel.com> In-Reply-To: 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: [PATCH] MdeModulePkg/PiSmmCore: AllocatePool should use MemoryType. 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, 02 Dec 2016 02:03:13 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thank you Laszlo. This time, I did not use number purposely. My thinking is that each patch resolves a specific problem. Although I fixe= d all of them at same time, they can be check in independently. Thank you Yao Jiewen From: Laszlo Ersek [mailto:lersek@redhat.com] Sent: Friday, December 2, 2016 5:51 AM To: Yao, Jiewen ; edk2-devel@ml01.01.org Cc: Kinney, Michael D ; Fan, Jeff Subject: Re: [edk2] [PATCH] MdeModulePkg/PiSmmCore: AllocatePool should use= MemoryType. On 12/01/16 09:23, Jiewen Yao wrote: > PiSmmCore supports page level protection based upon the Memory Type > (EfiRuntimeServicesCode/EfiRuntimeServicesData) and PE image. > > However, the Memory Type information is ignored in AllocatePool(). > If a caller calls AllocatePool with EfiRuntimeServicesCode, > the final memory is still allocated as EfiRuntimeServicesData. > > This patch supports AllocatePool with EfiRuntimeServicesCode. > > Cc: Jeff Fan > > Cc: Michael D Kinney > > Cc: Laszlo Ersek > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Jiewen Yao > > --- > MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | 13 ++- > MdeModulePkg/Core/PiSmmCore/Pool.c | 66 +++++++++--- > MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c | 114 +++++++++++------= --- > 3 files changed, 124 insertions(+), 69 deletions(-) series Regression-tested-by: Laszlo Ersek > (Please make sure to number the patches in the series next time.) Thanks Laszlo