[edk2-devel] [PATCH] RedfishPkg/RedfishDiscoverDxe: Fix memory free issue

2022-10-28 Thread Chang, Abner via groups.io
From: Abner Chang Check the memory block pointer before freeing it. Cc: Nickle Wang Cc: Igor Kulchytskyy Signed-off-by: Abner Chang --- .../RedfishDiscoverDxe/RedfishDiscoverDxe.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git

Re: [edk2-devel] [edk2-CCodingStandardsSpecification] Create release/2.30 branch

2022-10-28 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] Hi Mike, Below are the tickets pulled out from BZ, is there any one you think is not necessary now? Abner 713 EDK2Documentmichael.d.kin...@intel.com CONF--- Update EDK II C Coding standard to state a stronger preference for 80

Re: [edk2-devel] [edk2-platforms][PATCH V4 01/14] Platform/Loongson: Add Serial Port library

2022-10-28 Thread maobibo
Hi xianglai, I reply inline. 在 2022/10/21 15:11, xianglai li 写道: > Serial Port library for LoongarchQemuPkg > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > Signed-off-by: xianglai li > --- > .../LoongArchQemuPkg/Include/Library/Cpu.h| 387 +++ >

Re: [edk2-devel] [PATCH] RedfishPkg/RedfishPlatformCredentialLib: IPMI implementation

2022-10-28 Thread Nickle Wang via groups.io
Hi Igor, Yes, we should get the URI to computer system collection by parsing "/redfish/v1". Hi Abner, What do you think about this? And if we like to select authentication method for Redfish communication in this way, we need to update RedfishCredentialLib.h because now the authentication

Re: [edk2-devel] [PATCH V1 0/2] CryptoPkg bug fixes

2022-10-28 Thread Judah Vang
Hi Mike, This is not my realm of expertise. I'm just trying to fix an issue that I ran into when enabling crypto. Can I suggest that someone like the maintainers or someone who knows how the build works update the build? Judah -Original Message- From: Kinney, Michael D Sent:

Re: [edk2-devel] [PATCH v4] NetworkPkg/WifiProfileSync: Add WiFi profile sync protocol support

2022-10-28 Thread Clark-williams, Zachary
++More for reviewal! -Original Message- From: Clark-williams, Zachary Sent: Friday, October 28, 2022 1:10 PM To: Kinney, Michael D ; Rabeda, Maciej ; Luo, Heng ; Kuo, Scottie ; Kuo, Ted ; Dutkiewicz, Michal ; devel@edk2.groups.io Subject: RE: [PATCH v4] NetworkPkg/WifiProfileSync: Add

Re: [edk2-devel] [PATCH v4] NetworkPkg/WifiProfileSync: Add WiFi profile sync protocol support

2022-10-28 Thread Clark-williams, Zachary
Thanks for the forward Mike! Maciej and All, If you could please review the PR below. I would like to get this review completed within the week. Thanks, Zack -Original Message- From: Kinney, Michael D Sent: Thursday, October 27, 2022 1:09 PM To: Rabeda, Maciej ; Kinney, Michael D

[edk2-devel] [Patch 1/1] CryptoPkg/Test: Simplify BaseCryptLib host based unit tests

2022-10-28 Thread Michael D Kinney
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4130 Remove TestBaseCryptLibHostAccel.inf and instead use FILE_GUID override in DSC file to run the same unit test INF against OpensslLibFull.inf and OpensslLibFullAccel.inf Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang

Re: [edk2-devel] [PATCH edk2-platforms 1/2] Maintainers.txt: fix incorrect line ending

2022-10-28 Thread Leif Lindholm
On Thu, Oct 27, 2022 at 15:53:58 +, Michael D Kinney wrote: > Reviewed-by: Michael D Kinney Thanks. Since this is a trivial fix, I just pushed this patch as 4722554cd0a7. Waiting for Graeme to come back and ack 2/2 on Monday. / Leif > > -Original Message- > > From:

Re: [edk2-devel] [PATCH] RedfishPkg/RedfishPlatformCredentialLib: IPMI implementation

2022-10-28 Thread Igor Kulchytskyy via groups.io
Hi Nickle, I think this is a good idea to send a request to the URI which requires the authentication and then analyze the header of response. The only thing I would like to discuss is a hardcoded URI - "/redfish/v1/Systems". Shouldn't we parse "redfish/v1" json response and get the URI from

[edk2-devel] [Patch 1/1] UnitTestFrameworkPkg: Support FILE_GUID override in host based unit tests

2022-10-28 Thread Michael D Kinney
Always use the module name with FILE_GUID to generate the host-based unit test executable image and symbol files. This allows the same host-based unit test INF file to be used more than once in a single DSC file with FILE_GUID override. This is valuable when there is a requirement to run the

[edk2-devel] [PATCH v9 02/19] ArmPkg/ArmMonitorLib: Definition for ArmMonitorLib library class

2022-10-28 Thread PierreGondois
From: Pierre Gondois The ArmMonitorLib provides an abstract interface to issue an HyperVisor Call (HVC) or System Monitor Call (SMC) depending on the default conduit. The PcdMonitorConduitHvc PCD allows to select the default conduit. The new library relies on the ArmHvcLib and ArmSmcLib

[edk2-devel] [PATCH v9 19/19] ArmVirtPkg: Kvmtool: Add RNG support using Arm TRNG interface

2022-10-28 Thread PierreGondois
From: Sami Mujawar Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) The EFI_RNG_PROTOCOL published by RngDxe has been updated to implement the EFI_RNG_ALGORITHM_RAW using the Arm TRNG interface to provide access to entropy. Therefore, enable EFI_RNG_PROTOCOL for the Kvmtool

[edk2-devel] [PATCH v9 18/19] SecurityPkg/RngDxe: Add Arm support of RngDxe

2022-10-28 Thread PierreGondois
From: Pierre Gondois Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) Add RngDxe support for Arm. This implementation uses the ArmTrngLib to support the RawAlgorithm and doens't support the RNDR instruction. To re-use the RngGetRNG(), RngGetInfo() and

[edk2-devel] [PATCH v9 17/19] SecurityPkg/RngDxe: Rename AArch64/RngDxe.c

2022-10-28 Thread PierreGondois
From: Pierre Gondois To re-use the AArch64/RngDxe.c for an Arm implementation, rename AArch64/RngDxe.c to ArmRngDxe.c. Acked-by: Leif Lindholm Signed-off-by: Pierre Gondois --- .../RngDxe/{AArch64/RngDxe.c => ArmRngDxe.c}| 0

[edk2-devel] [PATCH v9 16/19] SecurityPkg/RngDxe: Add debug warning for NULL PcdCpuRngSupportedAlgorithm

2022-10-28 Thread PierreGondois
From: Pierre Gondois PcdCpuRngSupportedAlgorithm should allow to identify the the algorithm used by the RNDR CPU instruction to generate a random number. Add a debug warning if the Pcd is not set. Signed-off-by: Pierre Gondois --- .../RandomNumberGenerator/RngDxe/AArch64/RngDxe.c | 10

[edk2-devel] [PATCH v9 11/19] SecurityPkg/RngDxe: Replace Pcd with Sp80090Ctr256Guid

2022-10-28 Thread PierreGondois
From: Pierre Gondois gEfiRngAlgorithmSp80090Ctr256Guid was used as the default algorithm in RngGetRNG(). The commit below set the default algorithm to PcdCpuRngSupportedAlgorithm, which is a zero GUID by default. As the Pcd value is not defined for any platform in the edk2-platfoms repository,

[edk2-devel] [PATCH v9 15/19] SecurityPkg/RngDxe: Add AArch64 RawAlgorithm support through ArmTrngLib

2022-10-28 Thread PierreGondois
From: Sami Mujawar Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) RawAlgorithm is used to provide access to entropy that is suitable for cryptographic applications. Therefore, add RawAlgorithm support that provides access to entropy using the ArmTrngLib. Also remove

[edk2-devel] [PATCH v9 14/19] SecurityPkg/RngDxe: Check before advertising Cpu Rng algo

2022-10-28 Thread PierreGondois
From: Pierre Gondois RngGetBytes() relies on the RngLib. The RngLib might use the RNDR instruction if the FEAT_RNG feature is present. RngGetInfo and RngGetRNG both must check that RngGetBytes() is working before advertising/using it. To do so, allocate an array storing the available

[edk2-devel] [PATCH v9 13/19] SecurityPkg/RngDxe: Documentation/include/parameter cleanup

2022-10-28 Thread PierreGondois
From: Pierre Gondois This patch: -Update RngGetBytes() documentation to align the function definition and declaration. -Improve input parameter checking. Even though 'This' it is not used, the parameter should always point to the current EFI_RNG_PROTOCOL. -Removes TimerLib inclusion as

[edk2-devel] [PATCH v9 12/19] SecurityPkg/RngDxe: Remove ArchGetSupportedRngAlgorithms()

2022-10-28 Thread PierreGondois
From: Pierre Gondois RngGetInfo() is one of the 2 functions of the EFI_RNG_PROTOCOL. RngGetInfo() is currently a mere wrapper around ArchGetSupportedRngAlgorithms() which is implemented differently depending on the architecture used. RngGetInfo() does nothing more than calling

[edk2-devel] [PATCH v9 10/19] SecurityPkg/RngDxe: Rename RdRandGenerateEntropy to generic name

2022-10-28 Thread PierreGondois
From: Sami Mujawar Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) Rename RdRandGenerateEntropy() to GenerateEntropy() to provide a common interface to generate entropy on other architectures. GenerateEntropy() is intended to generate high quality entropy. Also move the

[edk2-devel] [PATCH v9 09/19] ArmPkg/ArmTrngLib: Add Arm TRNG library

2022-10-28 Thread PierreGondois
From: Sami Mujawar Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) The Arm True Random Number Generator Firmware, Interface 1.0, Platform Design Document (https://developer.arm.com/documentation/den0098/latest/) defines an interface between an Operating System (OS)

[edk2-devel] [PATCH v9 08/19] ArmPkg: Add FID definitions for Arm TRNG

2022-10-28 Thread PierreGondois
From: Sami Mujawar Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) The Arm True Random Number Generator Firmware, Interface 1.0, Platform Design Document (https://developer.arm.com/documentation/den0098/latest/) defines an interface between an Operating System (OS)

[edk2-devel] [PATCH v9 07/19] MdePkg/ArmTrngLib: Add NULL instance of Arm TRNG Library

2022-10-28 Thread PierreGondois
From: Sami Mujawar Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) The Arm True Random Number Generator (TRNG) library defines an interface to access the entropy source on a platform. On platforms that do not have access to an entropy source, a NULL instance of the TRNG

[edk2-devel] [PATCH v9 06/19] MdePkg/ArmTrngLib: Definition for Arm TRNG library class interface

2022-10-28 Thread PierreGondois
From: Sami Mujawar Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) The NIST Special Publications 800-90A, 800-90B and 800-90C provide recommendations for random number generation. The NIST 800-90C, Recommendation for Random Bit Generator (RBG) Constructions, defines the

[edk2-devel] [PATCH v9 04/19] ArmPkg: Sort HVC/SMC section alphbetically in ArmPkg.dsc

2022-10-28 Thread PierreGondois
From: Pierre Gondois Sort the section containing HVC/SMC libraries prior to adding new libraries in this specific section. Reviewed-by: Leif Lindholm Signed-off-by: Pierre Gondois --- ArmPkg/ArmPkg.dsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArmPkg/ArmPkg.dsc

[edk2-devel] [PATCH v9 05/19] ArmPkg/ArmHvcLibNull: Add NULL instance of ArmHvcLib

2022-10-28 Thread PierreGondois
From: Pierre Gondois Add a Null instance of ArmHvcLib in case of library dependencies. Reviewed-by: Leif Lindholm Signed-off-by: Pierre Gondois --- ArmPkg/ArmPkg.dsc | 1 + ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.c | 29 +++

[edk2-devel] [PATCH v9 03/19] ArmPkg/ArmMonitorLib: Add ArmMonitorLib

2022-10-28 Thread PierreGondois
From: Pierre Gondois The ArmMonitorLib provides an abstract interface to issue an HyperVisor Call (HVC) or System Monitor Call (SMC) depending on the default conduit. The PcdMonitorConduitHvc PCD allows to select the default conduit. Reviewed-by: Leif Lindholm Signed-off-by: Pierre Gondois

[edk2-devel] [PATCH v9 01/19] ArmPkg: PCD to select conduit for monitor calls

2022-10-28 Thread PierreGondois
From: Sami Mujawar Define a PCD 'PcdMonitorConduitHvc' to select the conduit to use for monitor calls. PcdMonitorConduitHvc is defined as FALSE by default, meaning the SMC conduit is enabled as default. Adding PcdMonitorConduitHvc allows selection of HVC conduit to be used by virtual firmware

[edk2-devel] [PATCH v9 00/19] Add Raw algorithm support using Arm TRNG interface

2022-10-28 Thread PierreGondois
From: Pierre Gondois Bugzilla: Bug 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) The Arm True Random Number Generator Firmware, Interface 1.0, specification defines an interface between an Operating System (OS) executing at EL1 and Firmware (FW) exposing a conditioned entropy

Re: [edk2-devel] [edk2-CCodingStandardsSpecification] Create release/2.30 branch

2022-10-28 Thread Michael D Kinney
Hi Abner, Have you reviewed the open BZs against the EDK II C Coding Standard. Are there any other issues that are considered important to fix before making a new official release? Thanks, Mike > -Original Message- > From: devel@edk2.groups.io On Behalf Of Chang, Abner > via

Re: [edk2-devel] [PATCH] RedfishPkg/RedfishPlatformCredentialLib: IPMI implementation

2022-10-28 Thread Nickle Wang via groups.io
Hi Igor, Abner, Thanks for your comments. A quick summary as below: - BIOS is not supported to disable bootstrap credential service. For security purposes, BIOS should shutdown credential service with its internal control mechanism. - Credential libraries need a cache mechanism to prevent

Re: [edk2-devel] [PATCH v2] edk2Platforms-Silicon:Add VAB FIT record types support in FitGen.c

2022-10-28 Thread Hv, Pavamana
Hi Bob, I had run the check and ran it again and this is what I get C:\Work\Tianocore\edk2-platforms> c:\python38\python ..\edk2\BaseTools\Scripts\PatchCheck.py .\0001-edk2Platforms-Silicon-Add-VAB-FIT-record-types-suppo.patch Checking patch file:

Re: [edk2-devel] [PATCH] RedfishPkg/RedfishPlatformCredentialLib: IPMI implementation

2022-10-28 Thread Igor Kulchytskyy via groups.io
Hi Abner, Yes, you are right that NVRAM variables were deprecated by DMTF. But we can use our own boot time NVRAM variable to keep FW credentials. That variable will not be accessible from OS, but since we agreed not to disable bootstrap credentials service on exit boot event, then OS may get

Re: [edk2-devel] [PATCH 03/14] DynamicTablesPkg: Update CmObjParser for IORT Rev E.d

2022-10-28 Thread PierreGondois
Hi Sami, On 10/26/22 14:34, Sami Mujawar wrote: Hi Pierre, I have one comment marked inline as [SAMI]. Other than that change this patch should be good. Yes indeed, thanks for spotting it and for making the modification, Regards, Pierre Regards, Sami Mujawar On 10/10/2022 10:20 am,

Re: [edk2-devel] [PATCH 06/14] DynamicTablesPkg: Fix wrong/missing fields in CmObjParser

2022-10-28 Thread PierreGondois
Hi Sami, On 10/26/22 14:34, Sami Mujawar wrote: Hi Pierre, I have one comment marked inline as [SAMI]. I believe other than that change this patch should be good. Yes indeed, thanks for spotting it and for making the modification, Regards, Pierre Regards, Sami Mujawar On 10/10/2022

Re: [edk2-devel] [PATCH 10/14] DynamicTablesPkg: Add PCCT related objects

2022-10-28 Thread PierreGondois
Hi Sami, On 10/26/22 14:34, Sami Mujawar wrote: Hi Pierre, There are some minor updates that are required for this patch marked inline as [SAMI]. If you agree, I will make these changes before merging. Yes indeed, thanks for spotting it and for making the modification, Regards, Pierre

Re: [edk2-devel] [PATCH 12/14] DynamicTablesPkg/AmlLib: Allow larger AccessSize for Pcc address space

2022-10-28 Thread PierreGondois
Hi Sami, On 10/26/22 14:34, Sami Mujawar wrote: Hi Pierre, There are some minor changes required marked inline as [SAMI]. If you agree, I will make the changes before merging. Yes indeed, thanks for spotting it and for making the modification, Regards, Pierre Regards, Sami Mujawar On

Re: [edk2-devel] [PATCH 11/14] DynamicTablesPkg: Add PCCT Generator

2022-10-28 Thread PierreGondois
Hi Sami, On 10/26/22 14:35, Sami Mujawar wrote: Hi Pierre, There is a change required for this patch marked inline as [SAMI]. If you agree, I will make the changes before merging. Yes indeed, this is a rebase error, thanks for spotting it, Regards, Pierre Regards, Sami Mujawar On

Re: [edk2-devel] [PATCH 1/2] UefiCpuPkg/SmmCpuFeaturesLib: Abstract arch dependent code

2022-10-28 Thread Ni, Ray
Can you do rename SmmCpuFeaturesLibCommon.c to IntelSmmCpuFeaturesLib.c? This helps to keep the change history because I see that almost all content from Common.c is moved to Intelxxx.c. > -Original Message- > From: devel@edk2.groups.io On Behalf Of Chang, > Abner via groups.io > Sent:

Re: [edk2-devel] [PATCH 1/1] ArmPlatformPkg: Remove AP support from PrePi/PrePeiCore

2022-10-28 Thread Leif Lindholm
On Thu, Oct 27, 2022 at 20:10:33 +0200, Ard Biesheuvel wrote: > On Thu, 27 Oct 2022 at 19:31, Rebecca Cran wrote: > > > > Modern platforms use TF-A, so there's no need for support of > > secondary cores in EDK2 since TF-A will keep them in a holding > > pen until the PSCI_CPU_ON SMC call is

Re: [edk2-devel] [Patch V2] UefiCpuPkg: Restore HpetTimer after CpuExceptionHandlerLib test

2022-10-28 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Friday, October 28, 2022 11:51 AM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Kinney, Michael D > > Subject: [Patch V2] UefiCpuPkg: Restore HpetTimer after > CpuExceptionHandlerLib test >

Re: [edk2-devel] [PATCH] BaseTools: Fix build option overrides Pcd Feature Flag issue

2022-10-28 Thread Yuwei Chen
Cc Mike. Thanks, Christine > -Original Message- > From: devel@edk2.groups.io On Behalf Of Yuwei > Chen > Sent: Tuesday, October 25, 2022 4:51 PM > To: devel@edk2.groups.io > Cc: Feng, Bob C ; Gao, Liming > > Subject: [edk2-devel] [PATCH] BaseTools: Fix build option overrides Pcd >

Re: [edk2-devel] [PATCH V2 1/1] OvmfPkg/VmgExitLig: HALT on #VE when access to private memory

2022-10-28 Thread Yao, Jiewen
Reviewed-by: Jiewen Yao > -Original Message- > From: Xu, Min M > Sent: Friday, October 28, 2022 4:24 PM > To: devel@edk2.groups.io > Cc: Xu, Min M ; Aktas, Erdem > ; Gerd Hoffmann ; James > Bottomley ; Yao, Jiewen ; > Tom Lendacky > Subject: [PATCH V2 1/1] OvmfPkg/VmgExitLig: HALT on

[edk2-devel] [PATCH V2 1/1] OvmfPkg/VmgExitLig: HALT on #VE when access to private memory

2022-10-28 Thread Min Xu
From: Min M Xu BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4125 EPT-violation #VE should be always on shared memory, which means the shared bit of the GuestPA should be set. But in current #VE Handler it is not checked. When it occurs, stop TD immediately and log out the error. Cc:

Re: [edk2-devel] 回复: [edk2-devel] 回复: [edk2-devel] 回复: [edk2-devel] [PATCH] [PATCH]MdeModulePkg/Ufs: Coverity scan flags multiple issues in edk2-stable202205 Signed-off-by: sivaparvat...@ami.com

2022-10-28 Thread sivaparvathi C via groups.io
Hi mikub...@linux.microsoft.com, gaolim...@byosoft.com.cn,michael.d.kin...@intel.com, vasudev...@ami.com, sundares...@ami.com Created PULL request for Coverity Issue changes. UFS PR: https://github.com/tianocore/edk2/pull/3552 BugZilla ID: https://bugzilla.tianocore.org/show_bug.cgi?id=3989 (

Re: [edk2-devel] 回复: [edk2-devel] 回复: [edk2-devel] [edk2] [PATCH]MdeModulePkg\scsi: Coverity scan flags multiple issues in edk2-stable202205

2022-10-28 Thread sivaparvathi C via groups.io
Hi mikub...@linux.microsoft.com, gaolim...@byosoft.com.cn,michael.d.kin...@intel.com, vasudev...@ami.com, sundares...@ami.com Created PULL request for Coverity Issue changes. SCSI PR: https://github.com/tianocore/edk2/pull/3544 BugZilla ID: https://bugzilla.tianocore.org/show_bug.cgi?id=3994

Re: [edk2-devel] [PATCH] RedfishPkg/RedfishPlatformCredentialLib: IPMI implementation

2022-10-28 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] > -Original Message- > From: devel@edk2.groups.io On Behalf Of Igor > Kulchytskyy via groups.io > Sent: Thursday, October 27, 2022 10:42 PM > To: devel@edk2.groups.io; nick...@nvidia.com; Chang, Abner > > Cc: Nick Ramirez > Subject: Re: [edk2-devel]

Re: [edk2-devel] [PATCH 1/1] OvmfPkg/VmgExitLib: HALT on #VE when access to private memory

2022-10-28 Thread Yao, Jiewen
Thanks for the patch. 1) I suggest to say "EPT-violation #VE on private memory is not allowed!" 2) The VMM is not trusted. We need put an unconditional CpuDeadLoop() after TDVMCALL_HALT. 3) Please test both shared address and private address in EPT-violation case. Thank you Yao Jiewen > +

[edk2-devel] [PATCH 1/1] OvmfPkg/VmgExitLib: HALT on #VE when access to private memory

2022-10-28 Thread Min Xu
From: Min M Xu BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4125 EPT-violation #VE should be always on shared memory, which means the shared bit of the GuestPA should be set. But in current #VE Handler it is not checked. When it occurs, stop TD immediately and log out the error. Cc: