Re: [edk2-devel] [PATCH v5 4/9] UefiCpuPkg/SecMigrationPei: Add initial PEIM (CVE-2019-11098)

2020-07-12 Thread Wang, Jian J
Guomin, Just one minor comment below. Regards, Jian > -Original Message- > From: devel@edk2.groups.io On Behalf Of Guomin > Jiang > Sent: Thursday, July 09, 2020 9:57 AM > To: devel@edk2.groups.io > Cc: Michael Kubacki ; Dong, Eric > ; Ni, Ray ; Laszlo Ersek > ; Kumar, Rahul1 ; De, > De

Re: [edk2-devel] [PATCH V2 2/3] MdeModulePkg/PartitionDxe: Skip the MBR that add for CD-ROM

2020-07-12 Thread Ni, Ray
> +// > +// If the MBR with partition entry contains itself, i.e. start with LBA0, > +// and have the same size with the media, we treat it as a El Torito > partition. > +// > +if ((StartingLBA == 0) && > +(SizeInLBA != 0) && 1. Can this check "SizeInLBA != 0" be remove

Re: [edk2-devel] [PATCH v5 2/9] MdeModulePkg/PeiCore: Enable T-RAM evacuation in PeiCore (CVE-2019-11098)

2020-07-12 Thread Wang, Jian J
Guomin, See my 16 comments embedded below. About PcdMigrateTemporaryRamFirmwareVolumes, I think we need more discussions on its use scenario along with PcdShadowPeimOnBoot and PcdShadowPeimOnS3Boot. Currently it need all of them enabled to make this solution work, which is a bit complex and confu

Re: [edk2-devel] [PATCH V2 1/3] MdeModulePkg/PartitionDxe: Correct the MBR last block value

2020-07-12 Thread Ni, Ray
1. Can you rename LastBlock to LastSector and remove the MediaSize local variable? 2. Can you add comments to describe that sector size is 512? 3. Can you explain why this fix is needed in the commit message? Thanks, Ray > -Original Message- > From: Gao, Zhichao > Sent: Wednesday, Jul

Re: [edk2-devel] [PATCH 0/1] Add BhyvePkg, to support the bhyve hypervisor

2020-07-12 Thread Rebecca Cran
On 7/12/20 11:43 PM, Gao, Liming wrote: PatchCheck change is tracked in BZ https://bugzilla.tianocore.org/show_bug.cgi?id=2833. Thanks. I think that also,  the change "[edk2-devel] [PATCH 1/2] Revert "BaseTools/PatchCheck.py: Add LicenseCheck"" will allow this changeset to be committed.

Re: [edk2-devel] [PATCH 0/1] Add BhyvePkg, to support the bhyve hypervisor

2020-07-12 Thread Liming Gao
Rebecca: PatchCheck change is tracked in BZ https://bugzilla.tianocore.org/show_bug.cgi?id=2833. Thanks Liming -Original Message- From: Rebecca Cran Sent: 2020年7月13日 13:42 To: devel@edk2.groups.io Cc: Ard Biesheuvel ; Andrew Fish ; Leif Lindholm ; Justen, Jordan L ; Kinney, Michael

[edk2-devel] [PATCH 0/1] Add BhyvePkg, to support the bhyve hypervisor

2020-07-12 Thread Rebecca Cran
This depends on the pending changes to PatchCheck.py Rebecca Cran (1): Add BhyvePkg, to support the bhyve hypervisor OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c | 251 +++ OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.h | 77 + .../Bhyve/AcpiPlatformDxe/AcpiPlatformDxe.inf | 65 + OvmfPkg

Re: [edk2-devel] [PATCH v5 1/9] MdeModulePkg: Add new PCD to control the evacuate temporary memory feature (CVE-2019-11098)

2020-07-12 Thread Wang, Jian J
Guomin, > -Original Message- > From: Jiang, Guomin > Sent: Thursday, July 09, 2020 9:57 AM > To: devel@edk2.groups.io > Cc: Wang, Jian J ; Wu, Hao A ; > Laszlo Ersek > Subject: [PATCH v5 1/9] MdeModulePkg: Add new PCD to control the evacuate > temporary memory feature (CVE-2019-11098) >

Re: [edk2-devel] [Patch v3 01/16] BaseTools/Python: Allow HOST_APPLICATION to use NULL libraries

2020-07-12 Thread Bob Feng
Reviewed-by: Bob Feng -Original Message- From: Kinney, Michael D Sent: Saturday, July 11, 2020 10:09 AM To: devel@edk2.groups.io Cc: Feng, Bob C ; Gao, Liming ; Sean Brogan ; Bret Barkelew ; Yao, Jiewen Subject: [Patch v3 01/16] BaseTools/Python: Allow HOST_APPLICATION to use NULL l

Re: [edk2-devel] [edk2-discuss] Need memory barriers in IoLib for AARCH64

2020-07-12 Thread Andrew Fish via groups.io
> On Jul 11, 2020, at 10:17 PM, Wasim Khan wrote: > > Hello > > Any comments ? > I don’t see IoLibArm.c in master? I see IoLibNoIo.c. The MMIO function look like ARM assembler with the correct barrier instructions. The IO operations in this lib are the x86 in/out instructions, so they j

[edk2-devel] openssl.exe disappeared

2020-07-12 Thread Kilian Kegel
Hi Mike, the link https://indy.fulgan.com/SSL/openssl-1.0.2r-x64_86-win64.zip from your script https://github.com/tianocore/edk2-platforms/blob/master/Platform/Intel/Vlv2TbltDevicePkg/Readme.md#download-and-build-minnowmax-using-windowsvisual-studio is not available anymore. Do you know if anyon

Re: [edk2-devel] "Error 4000" EDK II Build Issue

2020-07-12 Thread Kilian Kegel
Hi Zach, I have fixed "Error 4000" EDK II Build Issue in my MinnowBoard reference project CdePkg that you can find at edk2-staging: https://github.com/tianocore/edk2-staging/tree/CdePkg https://github.com/tianocore/edk2-staging/commit/5c2c7662f52cabc741464218b35282b7829a7908 The problem is, th

[edk2-devel] [PATCH v2 0/8] ShellPkg/AcpiView: Refactor Error Logging

2020-07-12 Thread Tomas Pilar (tpilar)
This patch series refactors the error logging in the AcpiView functionality to a newly created logging facility. The new error logging facility in AcpiViewLog.[ch] contains helper functions to log messages of various types and severities, enumerations of known error types as well as common abstrac

[edk2-devel] [PATCH v2 7/8] ShellPkg/AcpiView: Refactor AcpiView

2020-07-12 Thread Tomas Pilar (tpilar)
Refactor logging using the AcpiViewLog facility. Trim some of the source to more elegant state. Change-Id: I98b2c49b155e8c8b91aaf9bbd2ab21ebad5b36f0 Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Tomas Pilar --- .../UefiShellAcpiViewCommandLib/AcpiParser.c | 225 -- .../UefiShellAc

[edk2-devel] [PATCH v2 1/8] ShellPkg/AcpiView: Extract configuration struct

2020-07-12 Thread Tomas Pilar (tpilar)
Remove accessor method bloat by creating a configuration struct that is linked using an extern symbol in the config header file. Directly reference the config struct for all read and write accesses in the entire module. Rationalise the remaining methods in the config header and source. Change-Id:

[edk2-devel] [PATCH v2 8/8] ShellPkg/AcpiView: Refactor table parsers

2020-07-12 Thread Tomas Pilar (tpilar)
The tests for checking specific constraints and checking for buffer overflows have been simplified to use a standard set of templates defined in the logging facility. This regularises some of the error handling and makes it easier to write more tests like this in the future. Change-Id: Ica35c9ca1

[edk2-devel] [PATCH v2 4/8] ShellPkg/AcpiView: Create a logging facility

2020-07-12 Thread Tomas Pilar (tpilar)
Extract error and warning logging into separate methods. Fold highlighting and other output properties into the logging methods. Change-Id: I46bba2afc6fe8d7bc0c92ec7054f2af2d2254441 Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Tomas Pilar --- .../UefiShellAcpiViewCommandLib/AcpiParser.c | 5 +-

[edk2-devel] [PATCH v2 6/8] ShellPkg/AcpiView: Refactor dump helpers

2020-07-12 Thread Tomas Pilar (tpilar)
The dump variable helper functions are refactored into a separate header file as inline functions to declutter code. Change-Id: I9c43c9ce1e9809813949b4f45b1b19b6265e18c4 Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Tomas Pilar --- .../UefiShellAcpiViewCommandLib/AcpiParser.c | 212 --

[edk2-devel] [PATCH v2 5/8] ShellPkg/AcpiView: Refactor PrintFieldName

2020-07-12 Thread Tomas Pilar (tpilar)
The AcpiView core method is refactored to take format and parameters rather than a fully formatted string. This allows for far more flexible parser writing. Change-Id: I02c30939f2c5ad98da7174303ae241839d2c8eba Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Tomas Pilar --- .../UefiShellAcpiViewComma

[edk2-devel] [PATCH v2 3/8] ShellPkg/AcpiView: Modify error message

2020-07-12 Thread Tomas Pilar (tpilar)
Modify the DumpFile error message to be more in line with the rest of the error messages in the same file. Change-Id: I8f074178154e13db06a67f2158448fc625ee4216 Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Tomas Pilar --- .../UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.c | 4 +--- 1 fi

[edk2-devel] [PATCH v2 2/8] ShellPkg/AcpiView: Declutter error counters

2020-07-12 Thread Tomas Pilar (tpilar)
Remove superfluous accessor methods for error and warning counters. Change-Id: I23df0aa10cfc757f37d83dee7ecce8a188a3ad1c Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Tomas Pilar --- .../UefiShellAcpiViewCommandLib/AcpiParser.c | 54 ++- .../UefiShellAcpiViewCommandLib/AcpiParser.