Re: [edk2] [PATCH] MdeModulePkg/PiSmmCore: AllocatePool should use MemoryType.

2016-12-06 Thread Fan, Jeff
/** + Convert a UEFI memory type to SMM pool type. + + @param[in] PoolType Type of pool to allocate. [Jeff] Typo. *PoolType* should be *MemoryType*. Reviewed-by: Jeff Fan with this typo fix. -Original Message- From: Yao, Jiewen Sent: Thursday,

Re: [edk2] [PATCH] MdeModulePkg/PiSmmCore: AllocatePool should use MemoryType.

2016-12-02 Thread Laszlo Ersek
..@ml01.01.org > *Cc:* Kinney, Michael D <michael.d.kin...@intel.com>; Fan, Jeff > <jeff@intel.com> > *Subject:* Re: [edk2] [PATCH] MdeModulePkg/PiSmmCore: AllocatePool > should use MemoryType. > > > > On 12/01/16 09:23, Jiewen Yao wrote: >> PiS

Re: [edk2] [PATCH] MdeModulePkg/PiSmmCore: AllocatePool should use MemoryType.

2016-12-01 Thread Yao, Jiewen
, 2016 5:51 AM To: Yao, Jiewen <jiewen@intel.com>; edk2-de...@ml01.01.org Cc: Kinney, Michael D <michael.d.kin...@intel.com>; Fan, Jeff <jeff@intel.com> Subject: Re: [edk2] [PATCH] MdeModulePkg/PiSmmCore: AllocatePool should use MemoryType. On 12/01/16 09:23, Jiewen Yao

Re: [edk2] [PATCH] MdeModulePkg/PiSmmCore: AllocatePool should use MemoryType.

2016-12-01 Thread Laszlo Ersek
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

[edk2] [PATCH] MdeModulePkg/PiSmmCore: AllocatePool should use MemoryType.

2016-12-01 Thread Jiewen Yao
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