Re: [edk2] [Patch v3 1/3] MdeModulePkg/Bds: Allocate reserved memory for RAM Disk boot media

2016-04-05 Thread Wang, Sunny (HPS SW)
Sorry for late to reply you. (Both Monday and Tuesday are public holidays in my location) Yeah, you concern is more effective than preventing potential issue. Thanks for the clarifying this. Reviewed-by: Sunny Wang -Original Message- From: Ni, Ruiyu [mailto:ruiyu...@intel.com]

Re: [edk2] [Patch] MdeModulePkg/Bds: Fix a boot hang due to Ram Disk boot support

2016-04-05 Thread Wang, Sunny (HPS SW)
Tested it in my side as well. Looks good! Thanks for the quick fix. Reviewed-by: Sunny Wang -Original Message- From: Ruiyu Ni [mailto:ruiyu...@intel.com] Sent: Wednesday, April 06, 2016 2:37 PM To: edk2-devel@lists.01.org Cc: Ruiyu Ni ; Wang, Sunny (HPS SW) Subject: [Patch] MdeModulePk

[edk2] [Patch] MdeModulePkg/Bds: Fix a boot hang due to Ram Disk boot support

2016-04-05 Thread Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: Sunny Wang --- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/Ue

[edk2] [PATCH v2 2/2] NetworkPkg: Add new macros and refine codes

2016-04-05 Thread Zhang Lubo
v2: *refine some codes Add 2 macros in NetLib.h #define IP4_MASK_MAX 32 #define IP6_PREFIX_MAX128 we will use these two macros to check the max mask/prefix length, instead of #define IP4_MASK_NUM 33 #define IP6_PREFIX_NUM129 which means a valid number This wil

Re: [edk2] [patch 1/2] NetworkPkg: Add new macros and refine codes

2016-04-05 Thread Zhang, Lubo
Hi Sriram I will send a new patch v2 later for your comment and this may be more clear. Thanks Best regards Lubo -Original Message- From: Subramanian, Sriram (EG Servers Platform SW) [mailto:srira...@hpe.com] Sent: Wednesday, April 06, 2016 1:51 PM To: Zhang, Lubo ; edk2-devel@

Re: [edk2] [patch 1/2] NetworkPkg: Add new macros and refine codes

2016-04-05 Thread Subramanian, Sriram (EG Servers Platform SW)
Lubo, Will you be sending out a patch for this, or will you update them at commit time? I'm fine with either. In case you plan to address this at commit time, I can add my Rb for this with the two changes suggested below. Reviewed-by: Sriram Subramanian Thanks, Sriram. -Original Messag

Re: [edk2] [wave 3 PATCH 00/15] OvmfPkg, ArmVirtPkg: VirtIo 1.0

2016-04-05 Thread Jordan Justen
On 2016-03-14 05:53:17, Laszlo Ersek wrote: > This series enables OvmfPkg and ArmVirtPkg to work with non-transitional > VirtIo 1.0 PCI devices. The first 12 patches rework our edk2-only, > private VIRTIO_DEVICE_PROTOCOL (and its two existent implementations), > and adapt the four device drivers we

Re: [edk2] [Patch 0/4] Enhance the code of Opal Password solution.

2016-04-05 Thread Tian, Feng
I have given comments on 3rd patch in the series. Others look good to me Reviewed-by: Feng Tian Thanks Feng -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Eric Dong Sent: Friday, April 1, 2016 1:38 PM To: edk2-devel@lists.01.org Subject: [edk2

Re: [edk2] [Patch] SecurityPkg OpalPasswordDxe: Enhance code to make it more safely.

2016-04-05 Thread Tian, Feng
It's better to split it to two patches. One is for removing unnecessary build option in INF. Another is for pointer check. And the title is better to be updated to reflect the action you take in code. Others look good to me Reviewed-by: Feng Tian Thanks Feng -Original Message- From:

Re: [edk2] Using multiple SNP drivers on Shell

2016-04-05 Thread Bhupesh Sharma
> From: Wu, Jiaxin [mailto:jiaxin...@intel.com] > Sent: Wednesday, April 06, 2016 8:41 AM > > More Info: > '-s SourceIp' operation is not defined in shell Spec 2.1 or any old > version, but for ping usage convenience(like Bhupesh's case), the code > implementation added the additional option '-_

Re: [edk2] [PATCH v2 1/9] MmcDxe: wait OCR busy bit free

2016-04-05 Thread Heyi Guo
On 03/22/2016 08:48 PM, Haojian Zhuang wrote: According to eMMC spec, OCR.PowerUp bit is also busy bit. If the busy bit is '0', CMD1 should be sent and OCR should be fetched again. And add a timeout counter on the repeated steps. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-o

Re: [edk2] [patch 2/2] MdeModulePkg: Add new macros and refine codes

2016-04-05 Thread Zhang, Lubo
Ok, I will modify that when to check in. Best regards Lubo -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Subramanian, Sriram (EG Servers Platform SW) Sent: Wednesday, April 06, 2016 11:01 AM To: Zhang, Lubo ; edk2-devel@lists.01.org Cc: Ye, Ti

Re: [edk2] Using multiple SNP drivers on Shell

2016-04-05 Thread Wu, Jiaxin
More Info: '-s SourceIp' operation is not defined in shell Spec 2.1 or any old version, but for ping usage convenience(like Bhupesh's case), the code implementation added the additional option '-_s'. That is a non-standard option in shell Spec 2.1 but it's allowed by the Shell Spec. Because the

Re: [edk2] [patch 2/2] MdeModulePkg: Add new macros and refine codes

2016-04-05 Thread Subramanian, Sriram (EG Servers Platform SW)
Thanks Lubo. Please address this if you agree. Reviewed-by: Sriram Subramanian Thanks, Sriram. -Original Message- From: Zhang, Lubo [mailto:lubo.zh...@intel.com] Sent: Wednesday, April 6, 2016 7:37 AM To: Subramanian, Sriram (EG Servers Platform SW) ; edk2-devel@lists.01.org Cc: Ye, T

Re: [edk2] [patch 1/2] NetworkPkg: Add new macros and refine codes

2016-04-05 Thread Subramanian, Sriram (EG Servers Platform SW)
Ok - I agree. Thanks Siyuan. From: Fu, Siyuan [mailto:siyuan...@intel.com] Sent: Wednesday, April 6, 2016 8:07 AM To: Palmer, Thomas ; Subramanian, Sriram (EG Servers Platform SW) ; Zhang, Lubo ; edk2-devel@lists.01.org Cc: Ye, Ting ; Wu, Jiaxin Subject: RE: [patch 1/2] NetworkPkg: Add new macr

Re: [edk2] [patch 1/2] NetworkPkg: Add new macros and refine codes

2016-04-05 Thread Fu, Siyuan
Hi, Sriram There is no error return path in Ip6GetPrefix() function. On any output, the Prefix will be updated with the useless bit clear. So below code in Ip6GetPrefix() doesn't mean it reject the prefix length 128, instead, it's a success return because the output value of Prefix will be iden

Re: [edk2] [patch 2/2] MdeModulePkg: Add new macros and refine codes

2016-04-05 Thread Fu, Siyuan
Hi, Sriram There is no error return path in Ip6GetPrefix() function. On any output, the Prefix will be updated with the useless bit clear. So below code in Ip6GetPrefix() doesn't mean it reject the prefix length 128, instead, it's a success return because the output value of Prefix will be iden

Re: [edk2] [patch 2/2] MdeModulePkg: Add new macros and refine codes

2016-04-05 Thread Zhang, Lubo
I think the code seems same, may be "if (Length > IP6_PREFIX_MAX)" more readable. -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Subramanian, Sriram (EG Servers Platform SW) Sent: Tuesday, April 05, 2016 10:21 PM To: Zhang, Lubo ; edk2-devel@lis

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Laszlo Ersek
On 04/05/16 20:20, Jordan Justen wrote: > On 2016-04-05 11:06:39, Laszlo Ersek wrote: >> On 04/05/16 19:26, Jordan Justen wrote: >>> On 2016-04-05 09:46:33, Laszlo Ersek wrote: (I've snipped liberally below, but I've been careful to follow up on all of your comments.) On 04/05/1

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Jordan Justen
On 2016-04-05 11:06:39, Laszlo Ersek wrote: > On 04/05/16 19:26, Jordan Justen wrote: > > On 2016-04-05 09:46:33, Laszlo Ersek wrote: > >> (I've snipped liberally below, but I've been careful to follow up on all > >> of your comments.) > >> > >> On 04/05/16 18:08, Jordan Justen wrote: > >>> On 2016

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Laszlo Ersek
On 04/05/16 19:46, Andrew Fish wrote: > >> On Apr 5, 2016, at 10:26 AM, Jordan Justen wrote: >> >> I don't think it conflicts either. >> >> I wonder if Mike or Andrew have any thoughts about why the ACPI >> includes (and arguably EDK II) go out of their way to define flattened >> (duplicated) str

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Jordan Justen
On 2016-04-05 10:46:15, Andrew Fish wrote: > > > On Apr 5, 2016, at 10:26 AM, Jordan Justen > > wrote: > > > > I don't think it conflicts either. > > > > I wonder if Mike or Andrew have any thoughts about why the ACPI > > includes (and arguably EDK II) go out of their way to define flattened >

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Laszlo Ersek
On 04/05/16 19:26, Jordan Justen wrote: > On 2016-04-05 09:46:33, Laszlo Ersek wrote: >> (I've snipped liberally below, but I've been careful to follow up on all >> of your comments.) >> >> On 04/05/16 18:08, Jordan Justen wrote: >>> On 2016-04-05 01:31:27, Laszlo Ersek wrote: On 04/05/16 09:0

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Andrew Fish
> On Apr 5, 2016, at 10:26 AM, Jordan Justen wrote: > > I don't think it conflicts either. > > I wonder if Mike or Andrew have any thoughts about why the ACPI > includes (and arguably EDK II) go out of their way to define flattened > (duplicated) structures for different spec versions. > > Onc

Re: [edk2] [Patch v4 0/3] HTTP Boot to RAM Disk

2016-04-05 Thread El-Haj-Mahmoud, Samer
Series reviewed-by: Samer El-Haj-Mahmoud -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Ruiyu Ni Sent: Tuesday, April 5, 2016 2:54 AM To: edk2-devel@lists.01.org Cc: Ruiyu Ni Subject: [edk2] [Patch v4 0/3] HTTP Boot to RAM Disk The existing co

Re: [edk2] Using multiple SNP drivers on Shell

2016-04-05 Thread David Van Arnem
On 04/04/2016 10:30 PM, Andrew Fish wrote: On Apr 4, 2016, at 9:17 PM, Bhupesh Sharma wrote: -Original Message- From: Carsey, Jaben [mailto:jaben.car...@intel.com] Sent: Monday, April 04, 2016 11:28 PM To: Laszlo Ersek; Bhupesh Sharma Cc: edk2-devel@lists.01.org; David Van Arnem; C

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Jordan Justen
On 2016-04-05 09:46:33, Laszlo Ersek wrote: > (I've snipped liberally below, but I've been careful to follow up on all > of your comments.) > > On 04/05/16 18:08, Jordan Justen wrote: > > On 2016-04-05 01:31:27, Laszlo Ersek wrote: > >> On 04/05/16 09:03, Jordan Justen wrote: > >>> On 2016-03-14 0

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Laszlo Ersek
(I've snipped liberally below, but I've been careful to follow up on all of your comments.) On 04/05/16 18:08, Jordan Justen wrote: > On 2016-04-05 01:31:27, Laszlo Ersek wrote: >> On 04/05/16 09:03, Jordan Justen wrote: >>> On 2016-03-14 05:53:23, Laszlo Ersek wrote: These header files are i

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Ard Biesheuvel
On 5 April 2016 at 18:08, Jordan Justen wrote: > On 2016-04-05 01:31:27, Laszlo Ersek wrote: >> On 04/05/16 09:03, Jordan Justen wrote: >> > On 2016-03-14 05:53:23, Laszlo Ersek wrote: >> >> These header files are intentionally minimal, and intentionally kept apart >> >> from the VirtIo 0.9.5 head

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Jordan Justen
On 2016-04-05 01:31:27, Laszlo Ersek wrote: > On 04/05/16 09:03, Jordan Justen wrote: > > On 2016-03-14 05:53:23, Laszlo Ersek wrote: > >> These header files are intentionally minimal, and intentionally kept apart > >> from the VirtIo 0.9.5 headers. > >> > >> Cc: Ard Biesheuvel > >> Cc: Jordan Jus

Re: [edk2] [PATCH v2 8/9] MmcDxe: set iospeed and bus width in SD stack

2016-04-05 Thread Ryan Harkin
On 5 April 2016 at 11:18, Haojian Zhuang wrote: > On 5 April 2016 at 17:49, Ryan Harkin wrote: >> On 5 April 2016 at 09:37, Ryan Harkin wrote: >>> On 5 April 2016 at 03:57, Haojian Zhuang wrote: On 5 April 2016 at 01:17, Ryan Harkin wrote: > Hi Haojian, > > I've had time to in

Re: [edk2] [patch 1/2] NetworkPkg: Add new macros and refine codes

2016-04-05 Thread Palmer, Thomas
Sriram, If PrefixLength is allowed to be 128 in Ip6GetPrefix, then the Addr array is overrun on line 489: Value = Prefix->Addr[Byte]; Where Byte = PrefixLength / 8. If 128 should be allowed, then the function should have a separate condition for that (like wh

Re: [edk2] [patch 2/2] MdeModulePkg: Add new macros and refine codes

2016-04-05 Thread Subramanian, Sriram (EG Servers Platform SW)
> @@ -3113,11 +3113,11 @@ NetLibStrToIp6andPrefix ( > Status = EFI_INVALID_PARAMETER; > Length = 0; > while (*PrefixStr != '\0') { >if (NET_IS_DIGIT (*PrefixStr)) { > Length = (UINT8) (Length * 10 + (*PrefixStr - '0')); > -if (Length >= IP6_PREFIX_NUM) { > +

Re: [edk2] [patch 1/2] NetworkPkg: Add new macros and refine codes

2016-04-05 Thread Subramanian, Sriram (EG Servers Platform SW)
> diff --git a/NetworkPkg/Ip6Dxe/Ip6Common.c b/NetworkPkg/Ip6Dxe/Ip6Common.c > index 4f71d05..9e6d368 100644 > --- a/NetworkPkg/Ip6Dxe/Ip6Common.c > +++ b/NetworkPkg/Ip6Dxe/Ip6Common.c > @@ -426,11 +426,11 @@ Ip6RemoveAddr ( >LIST_ENTRY *Entry; >LIST_ENTRY *Next; >IP

Re: [edk2] [PATCH v2 8/9] MmcDxe: set iospeed and bus width in SD stack

2016-04-05 Thread Haojian Zhuang
On 5 April 2016 at 17:49, Ryan Harkin wrote: > On 5 April 2016 at 09:37, Ryan Harkin wrote: >> On 5 April 2016 at 03:57, Haojian Zhuang wrote: >>> On 5 April 2016 at 01:17, Ryan Harkin wrote: Hi Haojian, I've had time to investigate where TC2 is hanging with your patches app

Re: [edk2] [PATCH v2 8/9] MmcDxe: set iospeed and bus width in SD stack

2016-04-05 Thread Ryan Harkin
On 5 April 2016 at 09:37, Ryan Harkin wrote: > On 5 April 2016 at 03:57, Haojian Zhuang wrote: >> On 5 April 2016 at 01:17, Ryan Harkin wrote: >>> Hi Haojian, >>> >>> I've had time to investigate where TC2 is hanging with your patches >>> applied and narrowed it down to the single line of code m

Re: [edk2] [Patch v3 2/3] MdeModulePkg/Bds: Free resources after ram disk boot finishes

2016-04-05 Thread Ni, Ruiyu
Sunny, I reposted the patch serials to follow your suggestions. Regards, Ray >-Original Message- >From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Wang, >Sunny (HPS SW) >Sent: Friday, April 1, 2016 7:42 PM >To: Ni, Ruiyu >Cc: Fu, Siyuan ; edk2-devel@lists.01.org;

[edk2] [patch 0/2] *** Add new macros and refine codes ***

2016-04-05 Thread Zhang Lubo
Zhang Lubo (2): NetworkPkg: Add new macros and refine codes MdeModulePkg: Add new macros and refine codes MdeModulePkg/Include/Library/NetLib.h | 5 - MdeModulePkg/Library/DxeNetLib/DxeNetLib.c | 6 +++--- MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c

[edk2] [patch 2/2] MdeModulePkg: Add new macros and refine codes

2016-04-05 Thread Zhang Lubo
Add 2 macros inNetLib.h #define IP4_MASK_MAX 32 #define IP6_PREFIX_MAX128 we will use these two macros to check the max mask/prefix length, instead of #define IP4_MASK_NUM 33 #define IP6_PREFIX_NUM129 which means a valid number. This will make the code readabil

[edk2] [patch 1/2] NetworkPkg: Add new macros and refine codes

2016-04-05 Thread Zhang Lubo
Add 2 macros in NetLib.h #define IP4_MASK_MAX 32 #define IP6_PREFIX_MAX128 we will use these two macros to check the max mask/prefix length, instead of #define IP4_MASK_NUM 33 #define IP6_PREFIX_NUM129 which means a valid number This will make the code readabil

Re: [edk2] [PATCH v2 8/9] MmcDxe: set iospeed and bus width in SD stack

2016-04-05 Thread Ryan Harkin
On 5 April 2016 at 03:57, Haojian Zhuang wrote: > On 5 April 2016 at 01:17, Ryan Harkin wrote: >> Hi Haojian, >> >> I've had time to investigate where TC2 is hanging with your patches >> applied and narrowed it down to the single line of code marked below. >> >> I'm going to read the code now and

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Laszlo Ersek
On 04/05/16 09:03, Jordan Justen wrote: > On 2016-03-14 05:53:23, Laszlo Ersek wrote: >> These header files are intentionally minimal, and intentionally kept apart >> from the VirtIo 0.9.5 headers. >> >> Cc: Ard Biesheuvel >> Cc: Jordan Justen >> Contributed-under: TianoCore Contribution Agreemen

Re: [edk2] [Patch] SourceLevelDebugPkg/SmmDebugAgent: mMailboxPointer is used before set

2016-04-05 Thread Ni, Ruiyu
Reviewed-by: Ruiyu Ni > >-Original Message- >From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Jeff Fan >Sent: Friday, April 01, 2016 12:57 PM >To: edk2-devel@lists.01.org >Cc: Ni, Ruiyu; Wu, Hao A >Subject: [edk2] [Patch] SourceLevelDebugPkg/SmmDebugAgent: mMailbo

[edk2] [Patch v4 2/3] MdeModulePkg/Bds: Free resources after ram disk boot finishes

2016-04-05 Thread Ruiyu Ni
From: "Ni, Ruiyu" The resource free includes to un-register the ram disk device and free the memory occupied by the ram disk. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Siyuan Fu --- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 155 +++

[edk2] [Patch v4 3/3] MdeModulePkg/Bds: Memory Bins don't count the memory used by RAM Disk

2016-04-05 Thread Ruiyu Ni
From: "Ni, Ruiyu" MemoryTypeInformation don't count the reserved memory used by RAM Disk, but it still check all types of memory and do reset when any type of memory size changes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Siyuan Fu --- MdeMod

[edk2] [Patch v4 1/3] MdeModulePkg/Bds: Allocate reserved memory for RAM Disk boot media

2016-04-05 Thread Ruiyu Ni
From: "Ni, Ruiyu" Use reserved memory to hold the buffer for the RAM disk to follow the ACPI spec requirement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Siyuan Fu --- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 149 +++---

[edk2] [Patch v4 0/3] HTTP Boot to RAM Disk

2016-04-05 Thread Ruiyu Ni
The existing code already supports HTTP boot to RAM Disk. The patch 1/3 is to follow the ACPI spec to use reserved memory instead of BS memory. Patch 2/3 is to fix the memory leak issue when Http Boot finishes or fails. Patch 3/3 is to update memory type information check algorithm to support Ram D

Re: [edk2] [PATCH v2] Merge 2-clause BSD licensed FatPkg

2016-04-05 Thread Laszlo Ersek
On 04/05/16 06:43, Jordan Justen wrote: > === > > web: https://github.com/jljusten/edk2/tree/fatpkg-open-source-v2 > > git: https://github.com/jljusten/edk2.git fatpkg-open-source-v2 > > In this commit 4cefb4cd738fc2bba95ae2e6382f4617bd86aff4. > > If no one has any concerns, then I'll push this

Re: [edk2] [PATCH V2] MdePkg Cper.h: Add missing structure for 'Processor Error Record'

2016-04-05 Thread Fan, Jeff
Reviewed-off-by: Jeff Fan -Original Message- From: Wu, Hao A Sent: Tuesday, April 05, 2016 2:55 PM To: edk2-devel@lists.01.org; Fan, Jeff; Gao, Liming; Kinney, Michael D Cc: Wu, Hao A Subject: [PATCH V2] MdePkg Cper.h: Add missing structure for 'Processor Error Record' Contributed-unde

[edk2] [Patch] UefiCpuPkg/PiSmmCpuDxeSmm: Add alignment check on SMM Base

2016-04-05 Thread Jeff Fan
Add alignment (4K) check on each processor's SMM Base address, it could help to detect SMRR programming issue early in DEBUG image. Cc: Michael Kinney Cc: Jiewen Yao Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- UefiCpuPkg/PiSmmCpuDxeSmm/PiS

[edk2] [Patch] UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile: Remove unnecessary BTS MSRs

2016-04-05 Thread Jeff Fan
BTS used DS save area by IA32_DS_AREA MSR to get invoker IP instead of the Last Branch Record Stack. So, removed the unnecessary BTS MSRs. Cc: Michael Kinney Cc: Jiewen Yao Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- UefiCpuPkg/PiSmmCpuDxe

[edk2] [Patch] UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile: Fix BTS support check bug

2016-04-05 Thread Jeff Fan
SmmProfile feature depends on BTS feature to get the invoker IP (in SMM) from last branch record. If this feature is not supported, SmmProfile cannot get the invoker IP (in SMM). Per IA-32 Architectures Software Developer's Manual, BTS feature is detected by IA32_MISC_ENABLE. If BIT11 of IA32_MISC_

Re: [edk2] [wave 3 PATCH 06/15] OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec

2016-04-05 Thread Jordan Justen
On 2016-03-14 05:53:23, Laszlo Ersek wrote: > These header files are intentionally minimal, and intentionally kept apart > from the VirtIo 0.9.5 headers. > > Cc: Ard Biesheuvel > Cc: Jordan Justen > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Laszlo Ersek > --- > O

[edk2] [Patch] BaseTools: Add support to merge Prebuild and Postbuild into build Process

2016-04-05 Thread Yonghong Zhu
This feature is enhance build tool to incorporate execution of prebuild and postbuild. 1.Prebuild script a.DEFINE PREBUILD in DSC [Defines] section b.Build command -D PREBUILD to override the one in DSC [Defines] section 1)If PREBUILD is a file, then this file will be used as prebuild script. 2)If