[edk2-devel] [PATCH v3 1/1] IntelFsp2WrapperPkg/FspmWrapperPeim: Fix FspT/M address for measurement

2024-07-24 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4716 Tcg module should use permanent address of FSP-T/M for measurement. TCG notification checks MigatedFvInfoHob and transmits DRAM address for measurement. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Duggapu Chinni B Cc: Chen Gang C

Re: [edk2-devel] [PATCH v1 1/2] MdeModulePkg/Core/Pei: Install MigrateTempRamPpi

2024-06-18 Thread Li, Zhihao
/290d3347c45d359da3ff1ccd50f290a45767d43a Thanks a lot. BR, Zhihao -Original Message- From: gaoliming Sent: Saturday, June 15, 2024 11:16 AM To: Li, Zhihao ; devel@edk2.groups.io Cc: Chiu, Chasel ; Desimone, Nathaniel L ; Duggapu, Chinni B ; Chen, Gang C Subject: 回复: [edk2-devel] [PATCH v1 1/2

Re: [edk2-devel] [PATCH v1 1/2] MdeModulePkg/Core/Pei: Install MigrateTempRamPpi

2024-06-11 Thread Li, Zhihao
Hi Liming If there are no concerns about it, could you please help to review the patch in MdeModulePkg scope and check in? And then, I contact with the maintainers of IntelFsp2WrapperPkg for another patch review. BR, Zhihao -Original Message- From: Li, Zhihao Sent: Thursday, May 30

Re: [edk2-devel] [PATCH v1 1/2] MdeModulePkg/Core/Pei: Install MigrateTempRamPpi

2024-05-30 Thread Li, Zhihao
if they are not migrated but need to be measured. 2. Fix Tcg notification to use migrated address if the binaries had been migrated. BR, Zhihao -Original Message- From: gaoliming Sent: Thursday, May 30, 2024 1:12 PM To: devel@edk2.groups.io; Li, Zhihao Cc: Chiu, Chasel ; Desimone, Nathaniel L

Re: [edk2-devel] [PATCH v1 1/2] MdeModulePkg/Core/Pei: Install MigrateTempRamPpi

2024-05-28 Thread Li, Zhihao
s DRAM address for measurement. BR, Zhihao -Original Message- From: gaoliming Sent: Tuesday, May 28, 2024 5:44 PM To: Li, Zhihao ; devel@edk2.groups.io Cc: Chiu, Chasel ; Desimone, Nathaniel L ; Duggapu, Chinni B ; Chen, Gang C Subject: 回复: [PATCH v1 1/2] MdeModulePkg/Core/Pei: I

[edk2-devel] [PATCH v1 2/2] IntelFsp2WrapperPkg/FspmWrapperPeim: Migrate FspT/M to permanent memory

2024-04-28 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4716 Migrate FSP-T/M binary from temporary RAM to permanent RAM before NEM tear down. Tcg module will use permanent address of FSP-T/M for measurement. 1. PeiCore installs mMigrateTempRamPpi if PcdMigrateTemporaryRamFirmwareVolumes is True 2.

[edk2-devel] [PATCH v1 1/2] MdeModulePkg/Core/Pei: Install MigrateTempRamPpi

2024-04-28 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4716 Migrate FSP-T/M binary from temporary RAM to permanent RAM before NEM tear down. Tcg module will use permanent address of FSP-T/M for measurement. 1. PeiCore installs mMigrateTempRamPpi if PcdMigrateTemporaryRamFirmwareVolumes is True 2.

[edk2-devel] [PATCH v1] MdeModulePkg/Core/Pei: Improve the copy performance

2024-02-29 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4697 EvacuateTempRam function will copy the temporary memory context to the rebased pages and the raw pages. Migrations of rebased PEIMs is from cache to memory, while raw PEIMs is from memory to memory. So the migrations of raw PEIMs is slower

Re: [edk2-devel] [PATCH v1 1/1] MdeModulePkg/VariableSmm.c: add Ap rendezvous check before SmmSetVariable.

2023-05-19 Thread Li, Zhihao
. -Original Message- From: gaoliming Sent: Thursday, May 18, 2023 5:38 PM To: Li, Zhihao ; devel@edk2.groups.io; Ni, Ray ; kra...@redhat.com Cc: Wang, Jian J Subject: 回复: [PATCH v1 1/1] MdeModulePkg/VariableSmm.c: add Ap rendezvous check before SmmSetVariable. Zhihao: Have you root cause

[edk2-devel] [PATCH v1 1/1] MdeModulePkg/VariableSmm.c: add Ap rendezvous check before SmmSetVariable.

2023-05-10 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4429 For Ap-Relaxed sync mode, SmmVariableSetVariable() need to let all Aps arrive to smm before it set the variable. If not, it would return EFI_ACCESS_DENIED. Cc: Jian J Wang Cc: Liming Gao Signed-off-by: Zhihao Li ---

[edk2-devel] [PATCH v1 1/1] UefiCpuPkg/CpuService.c:check cpu sync mode in SmmCpuRendezvous()

2023-05-10 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4431 In Ap relaxed mode, some SMI handlers should call SmmWaitForApArrival() to let all ap arrive in SmmCpuRendezvous(). But in traditional mode, these SMI handlers don't need to call SmmWaitForApArrival() again. So it need to be check cpu

[edk2-devel] [PATCH v2 1/1] UefiCpuPkg/PiSmmCpuDxeSmm:add Ap Rendezvous check in PerformRemainingTasks.

2023-05-04 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4424 In Relaxed-AP Sync Mode, BSP will not wait for all Aps arrive. However, PerformRemainingTasks() needs to wait all Aps arrive before calling SetMemMapAttributes and ConfigSmmCodeAccessCheck() when mSmmReadyToLock is true. In

[edk2-devel] [PATCH v1 1/1] UefiCpuPkg/PiSmmCpuDxeSmm:add Ap Rendezvous check in PerformRemainingTasks.

2023-04-26 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4424 In Relaxed-AP Sync Mode, BSP will not wait for all Aps arrive. However, SmmReadyToLock needs all Aps to arrive to set memory map Attributes and check config Smm code access in PerformRemainingTasks. Cc: Eric Dong Cc: Ray Ni

[edk2-devel] [PATCH v1 1/1] CryptPkg: Enable CryptoPkg BaseCryptLib ParallelHash for PEI and DXE

2022-11-30 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4097 The BaseCryptLib in the CryptoPkg currently supports ParallelHash algorithm for SMM. The MP Services PPI and MP Services Protocol could be used to enable ParallelHash in PEI and DXE versions of the BaseCryptLib. Cc:

[edk2-devel] [PATCH v2 1/1] UefiCpuPkg: Reset a parameter when BSP Exit in CPU relaxed mode.

2022-10-07 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4083 In CPU relaxed mode, it doesn't reset the value of mSmmMpSyncData->AllApArrivedWithException when BSP exit smm mode. So this patch will reset this variable. Modified the flow of SmmCpuRendezvous to avoid enter

[edk2-devel] [PATCH v1 1/1] UefiCpuPkg: Reset a parameter when BSP Exit in CPU relaxed mode.

2022-09-27 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4083 In CPU relaxed mode, it doesn't reset the value of mSmmMpSyncData->AllApArrivedWithException when BSP exit smm mode. So this patch will reset this variable. Cc: Eric Dong Cc: Ray Ni Signed-off-by: Zhihao Li ---

[edk2-devel] [PATCH v1 1/1] MdePkg: Remove the restriction of SmmCpuRendezvousLibNull.

2022-08-28 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4034 In the implementation of SmmCpuRendezvousLib null version, there is a restriction in [LIBRARY_CLASS] section. So removing the restriction that other type driver can use SmmCpuRendezvousLib null version implemented. Cc: Michael D Kinney

[edk2-devel] [PATCH v1 1/1] SecurityPkg: use SmmWaitForAllProcessor in TcgSmm and Tcg2Smm driver.

2022-06-20 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3855 In UefiCpuPkg, there are a new Protocol with the new service SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. This patch use the

[edk2-devel] [PATCH 1/1] MdeModulePkg: Use SmmWaitForAllProcessor() in VariableSmm driver.

2022-06-20 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3854 In UefiCpuPkg, there are a new Protocol with the new service SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. This patch use the

[edk2-devel] [PATCH 1/1] MdePkg: add SmmCpuRendezvousLib.h and SmmCpuRendezvousLibNull implement.

2022-06-20 Thread Li, Zhihao
From: "Li, Zhihao" REF? https://bugzilla.tianocore.org/show_bug.cgi?id=3912 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. V

[edk2-devel] [PATCH 1/1] MdePkg: Remove "assert" from SmmCpuRendevousLibNull.c

2022-06-20 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3931 Some drivers will break down when they use SmmWaitForAllProcessor() which from SmmCpuRendezvousLibNull.c. Removing the code "ASSERT(False)" will make consumer work normally if they keep default setting for sync mode. Cc:

[edk2-devel] [PATCH 1/1] OvmfPkg: Add dependency of VariableSmm driver to make it work normally.

2022-06-20 Thread Li, Zhihao
From: Zhihao Li REF? https://bugzilla.tianocore.org/show_bug.cgi?id=3861 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm driver need use

[edk2-devel] [PATCH 1/1] UefiPayloadPkg: Add dependency of VariableSmm driver.

2022-06-20 Thread Li, Zhihao
From: "Li, Zhihao" REF? https://bugzilla.tianocore.org/show_bug.cgi?id=3882 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm d

[edk2-devel] [PATCH 1/1] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-06-20 Thread Li, Zhihao
From: "Li, Zhihao" REF? https://bugzilla.tianocore.org/show_bug.cgi?id=3815 This patch define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. A n

[edk2-devel] [PATCH 1/1] MdePkg: Remove "assert" from SmmCpuRendevousLibNull.c

2022-06-20 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3931 Some drivers will break down when they use SmmWaitForAllProcessor() which from SmmCpuRendezvousLibNull.c. Removing the code "ASSERT(False)" will make consumer work normally if they keep default setting for sync mode. Cc:

[edk2-devel] [PATCH v1 1/1] SecurityPkg: use SmmWaitForAllProcessor in TcgSmm and Tcg2Smm driver.

2022-06-20 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3855 In UefiCpuPkg, there are a new Protocol with the new service SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. This patch use the

[edk2-devel] [PATCH 1/1] MdePkg: add SmmCpuRendezvousLib.h and SmmCpuRendezvousLibNull implement.

2022-06-20 Thread Li, Zhihao
From: "Li, Zhihao" REF? https://bugzilla.tianocore.org/show_bug.cgi?id=3912 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. V

[edk2-devel] [PATCH 1/1] UefiPayloadPkg: Add dependency of VariableSmm driver.

2022-06-20 Thread Li, Zhihao
From: "Li, Zhihao" REF? https://bugzilla.tianocore.org/show_bug.cgi?id=3882 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm d

[edk2-devel] [PATCH 1/1] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-06-20 Thread Li, Zhihao
From: "Li, Zhihao" REF? https://bugzilla.tianocore.org/show_bug.cgi?id=3815 This patch define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. A n

[edk2-devel] [PATCH 1/1] OvmfPkg: Add dependency of VariableSmm driver to make it work normally.

2022-06-20 Thread Li, Zhihao
From: Zhihao Li REF? https://bugzilla.tianocore.org/show_bug.cgi?id=3861 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm driver need use

[edk2-devel] [PATCH v1 0/1] *** SUBJECT HERE ***

2022-06-20 Thread Li, Zhihao
*** BLURB HERE *** Zhihao Li (1): SecurityPkg: use SmmWaitForAllProcessor in TcgSmm and Tcg2Smm driver. SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c| 21 ++-- SecurityPkg/Tcg/TcgSmm/TcgSmm.c | 15 -- SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.h| 3

[edk2-devel] [PATCH v1 1/1] SecurityPkg: use SmmWaitForAllProcessor in TcgSmm and Tcg2Smm driver.

2022-06-13 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3855 In UefiCpuPkg, there are a new Protocol with the new service SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. This patch use the

[edk2-devel] [PATCH v4 1/1] MdeModulePkg: Use SmmWaitForAllProcessor() in VariableSmm driver.

2022-06-13 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3854 In UefiCpuPkg, there are a new Protocol with the new service SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. This patch use the

[edk2-devel] [PATCH v3 1/1] MdeModulePkg: Use SmmWaitForAllProcessor() in VariableSmm driver.

2022-05-31 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3854 In UefiCpuPkg, there are a new Protocol with the new service SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. This patch use the

[edk2-devel] [PATCH v1 1/1] MdePkg: Remove "assert" from SmmCpuRendevousLibNull.c

2022-05-18 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3931 Some drivers will break down when they use SmmWaitForAllProcessor() which from SmmCpuRendezvousLibNull.c. Removing the code "ASSERT(False)" will make consumer work normally if they keep default setting for sync mode. Cc:

[edk2-devel] [PATCH v2 1/1] MdePkg: add SmmCpuRendezvousLib.h and SmmCpuRendezvousLibNull implement.

2022-04-25 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3912 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm and VariableStandaloneMM driver

[edk2-devel] [PATCH v1 1/1] MdePkg: add SmmCpuRendezvousLib.h and SmmCpuRendezvousLibNull implement.

2022-04-22 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3912 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm and VariableStandaloneMM driver

Re: [edk2-devel] [PATCH v2 1/1] MdeModulePkg: Use SmmWaitForAllProcessor() in VariableSmm driver.

2022-04-21 Thread Li, Zhihao
Thank you for your comment. I will move the SmmCpuRendezvousLib.h file and NullLib implementation to MdePkg. Thanks Zhihao -Original Message- From: Michael Kubacki Sent: Thursday, April 21, 2022 2:42 AM To: devel@edk2.groups.io; Li, Zhihao Cc: Wang, Jian J ; Gao, Liming ; Fu

[edk2-devel] [PATCH v2 1/1] MdeModulePkg: Use SmmWaitForAllProcessor() in VariableSmm driver.

2022-04-20 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3854 In UefiCpuPkg, there are a new Protocol with the new service SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. This patch use the new service to let

Re: [edk2-devel] [PATCH v1 1/1] MdeModulePkg: Use SmmWaitForAllProcessor() in VariableSmm driver.

2022-04-20 Thread Li, Zhihao
; Platform\Socionext\DeveloperBox\DeveloperBoxMm.fdf > Platform\StandaloneMm\PlatformStandaloneMmPkg\PlatformStandaloneMmR > pmb.fdf > > Thanks > Liming > > -邮件原件- > > 发件人: devel@edk2.groups.io 代表 Li, Zhihao > > 发送时间: 2022年4月15日 17:12 > > 收件人: Gao, Lim

Re: [edk2-devel] [PATCH v1 1/1] MdeModulePkg: Use SmmWaitForAllProcessor() in VariableSmm driver.

2022-04-15 Thread Li, Zhihao
? Is that a acceptable solution for you? > -Original Message- > From: gaoliming > Sent: Wednesday, April 13, 2022 9:30 AM > To: Li, Zhihao ; devel@edk2.groups.io; 'Michael Kubacki' > ; 'Ard Biesheuvel' > ; 'Leif Lindholm' ; 'Sean > Brogan' > Cc: Wang, Jian J ; Fu, Siyuan ; > Ni

Re: [edk2-devel] [PATCH v1 1/1] MdeModulePkg: Use SmmWaitForAllProcessor() in VariableSmm driver.

2022-04-12 Thread Li, Zhihao
. As the patch following, it have passed the Edk2 CI test. The code can run successfully in practice, but I'm not sure if this is acceptable in terms of the standard. -Original Message- From: gaoliming Sent: Tuesday, April 12, 2022 9:00 AM To: devel@edk2.groups.io; Li, Zhihao Cc: Wang, Jian J

[edk2-devel] [PATCH v1 1/1] MdeModulePkg: Use SmmWaitForAllProcessor() in VariableSmm driver.

2022-04-11 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3854 In UefiCpuPkg, there are a new Protocol with the new service SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. This patch use the new service to let

Re: [edk2-devel] [PATCH v1 1/1] OvmfPkg: Add dependency of VariableSmm driver to make it work normally.

2022-04-01 Thread Li, Zhihao
need use new service complete SMM rendezvous. Thanks a lot. -Original Message- From: Yao, Jiewen Sent: Friday, April 1, 2022 7:35 PM To: Li, Zhihao ; devel@edk2.groups.io Cc: Ard Biesheuvel ; Justen, Jordan L ; Gerd Hoffmann ; Boeuf, Sebastien Subject: RE: [PATCH v1 1/1] OvmfPkg: Add

[edk2-devel] [PATCH v1 1/1] UefiPayloadPkg: Add dependency of VariableSmm driver.

2022-03-29 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3882 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm driver need use

[edk2-devel] [PATCH v1 1/1] UefiPayloadPkg: Add dependency of VariableSmm driver.

2022-03-29 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3882 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm driver need use

[edk2-devel] [PATCH v1 1/1] UefiPayloadPkg: Add dependency of VariableSmm driver.

2022-03-29 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3882 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm driver need use

[edk2-devel] [PATCH v1 1/1] OvmfPkg: Add dependency of VariableSmm driver to make it work normally.

2022-03-29 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3861 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm driver need use

[edk2-devel] [PATCH v1 1/1] UefiPayloadPkg: Add dependency of VariableSmm driver.

2022-03-29 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3882 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm driver need use

[edk2-devel] [PATCH v1 1/1] UefiPayloadPkg: Add dependency of VariableSmm driver.

2022-03-28 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3882 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm driver need use

[edk2-devel] [PATCH v1 1/1] UefiPayloadPkg: Add dependency of VariableSmm driver.

2022-03-28 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3882 UefiCpuPkg define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. VariableSmm driver need use

[edk2-devel] [PATCH v1 1/1] CryptoPkg: Redefinition bug in CrtLibSupport.h.

2022-03-25 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3885 Parallel hash patch redefines uint_64 type in CrtLibSupport.h which has been defined in openssl/include/openssl/e_os2.h. CryptMd5.c including e_os2.h cause redefinition bug. Cc: Jiewen Yao jiewen@intel.com Cc: Jian J Wang

[edk2-devel] [PATCH v7 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-03-17 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3596 Parallel hash function ParallelHash256HashAll, as defined in NIST's Special Publication 800-185, published December 2016. It utilizes multi-process to calculate the digest. Passed CI test. Onprotocol version code passed test. Cc: Jiewen

Re: [edk2-devel] [PATCH v6 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-03-17 Thread Li, Zhihao
OK > -Original Message- > From: Yao, Jiewen > Sent: Friday, March 18, 2022 9:59 AM > To: Li, Zhihao ; devel@edk2.groups.io > Cc: Wang, Jian J ; Lu, Xiaoyu1 ; > Jiang, Guomin ; Fu, Siyuan ; > Yao, Jiewen > Subject: RE: [PATCH v6 1/1] CryptoPkg

Re: [edk2-devel] [PATCH v6 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-03-17 Thread Li, Zhihao
judgment? > -Original Message- > From: Yao, Jiewen > Sent: Friday, March 18, 2022 8:56 AM > To: Li, Zhihao ; devel@edk2.groups.io > Cc: Wang, Jian J ; Lu, Xiaoyu1 ; > Jiang, Guomin ; Fu, Siyuan > Subject: RE: [PATCH v6 1/1] CryptoPkg: Add new hash algorithm >

Re: [edk2-devel] [PATCH v6 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-03-17 Thread Li, Zhihao
age- > From: Yao, Jiewen > Sent: Thursday, March 17, 2022 10:13 PM > To: Li, Zhihao ; devel@edk2.groups.io > Cc: Wang, Jian J ; Lu, Xiaoyu1 ; > Jiang, Guomin ; Fu, Siyuan > Subject: RE: [PATCH v6 1/1] CryptoPkg: Add new hash algorithm > ParallelHash256HashAll in BaseCryptLib. >

[edk2-devel] [PATCH v6 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-03-16 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3596 Parallel hash function ParallelHash256HashAll, as defined in NIST's Special Publication 800-185, published December 2016. It utilizes multi-process to calculate the digest. Passed CI test. Onprotocol version code passed test. Cc: Jiewen

Re: [edk2-devel] [PATCH v5 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-03-16 Thread Li, Zhihao
-Original Message- From: Yao, Jiewen Sent: Monday, March 14, 2022 1:50 PM To: devel@edk2.groups.io; Li, Zhihao Cc: Wang, Jian J ; Lu, Xiaoyu1 ; Jiang, Guomin ; Fu, Siyuan Subject: RE: [edk2-devel] [PATCH v5 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib. Thanks

[edk2-devel] [PATCH v5 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-03-09 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3596 Parallel hash function ParallelHash256HashAll, as defined in NIST's Special Publication 800-185, published December 2016. It utilizes multi-process to calculate the digest. Some modifications to pass CI test. Cc: Jiewen Yao Cc: Jian J

Re: [edk2-devel] [PATCH v4 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-03-04 Thread Li, Zhihao
file and let EFICodeStyleCheck ignore my new .h file. > -Original Message- > From: Yao, Jiewen > Sent: Friday, March 4, 2022 2:06 PM > To: Li, Zhihao ; devel@edk2.groups.io > Cc: Wang, Jian J ; Lu, Xiaoyu1 > ; Jiang, Guomin ; Fu, > Siyuan > Subject: RE: [PATCH v4

[edk2-devel] [PATCH v4 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-03-02 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3596 Parallel hash function ParallelHash256HashAll, as defined in NIST's Special Publication 800-185, published December 2016. It utilizes multi-process to calculate the digest. Some modifications to pass CI test. Cc: Jiewen Yao Cc: Jian J

[edk2-devel] [PATCH v3 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-03-02 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3596 Parallel hash function ParallelHash256HashAll, as defined in NIST's Special Publication 800-185, published December 2016. It utilizes multi-process to calculate the digest. Some modifications to pass CI test. Cc: Jiewen Yao Cc: Jian J

[edk2-devel] [PATCH v5 1/1] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-03-01 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3815 This patch define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. A new library SmmCpuRendezvousLib is provided

FW: [edk2-devel] [PATCH v4 1/1] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-03-01 Thread Li, Zhihao
t in function header. 2) For this, I plan to modified name of SmmWaitForAllProcessor in SmmCpuRendezvousLib to be SmmCpuRendezvous() and keep PiSmmCpuDxe driver the same. -Original Message- From: Fu, Siyuan Sent: Tuesday, March 1, 2022 3:46 PM To: Li, Zhihao Subject: FW: [edk2-devel]

Re: [edk2-devel] [PATCH v2 1/1] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-02-23 Thread Li, Zhihao
Send patch v4 following Siyuan comments. > -Original Message- > From: Fu, Siyuan > Sent: Wednesday, February 23, 2022 6:20 PM > To: devel@edk2.groups.io; Li, Zhihao > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul1 > Subject: RE: [edk2-devel] [PATCH v2 1/1] UefiC

[edk2-devel] [PATCH v4 1/1] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-02-23 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3815 This patch define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. A new library SmmCpuRendezvousLib is provided

[edk2-devel] [PATCH v2 1/1] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-02-22 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3815 This patch define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. A new library SmmCpuRendezvousLib is provided

[edk2-devel] [PATCH v2 1/1] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-02-18 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3815 This patch define a new Protocol with the new services SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. A new library SmmCpuRendezvousLib is provided

Re: [edk2-devel] [PATCH v1 1/2] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-02-17 Thread Li, Zhihao
function, move its action into SmmWaitForAllProcessor function. > -Original Message- > From: Fu, Siyuan > Sent: Thursday, February 10, 2022 4:19 PM > To: devel@edk2.groups.io; Kinney, Michael D ; > Li, Zhihao ; Ni, Ray > Cc: Dong, Eric ; Kumar, Rahul1 > > Subject:

Re: [edk2-devel] [PATCH v1 1/2] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-02-17 Thread Li, Zhihao
function, move its action into SmmWaitForAllProcessor function. > -Original Message- > From: Marvin Häuser > Sent: Friday, February 11, 2022 6:30 PM > To: devel@edk2.groups.io; Li, Zhihao > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul1 > Subject: Re: [edk2-devel] [PAT

[edk2-devel] [PATCH v2 1/1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-02-17 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3596 Parallel hash function ParallelHash256HashAll, as defined in NIST's Special Publication 800-185, published December 2016. It utilizes multi-process to calculate the digest. Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang

Re: [edk2-devel] [PATCH v1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-02-16 Thread Li, Zhihao
define into CryptCshake256.c. > -Original Message- > From: Yao, Jiewen > Sent: Wednesday, February 16, 2022 3:52 PM > To: Li, Zhihao ; devel@edk2.groups.io > Cc: Wang, Jian J ; Lu, Xiaoyu1 > ; Jiang, Guomin ; Fu, > Siyuan > Subject: RE: [PATCH v1] CryptoPkg

[edk2-devel] Recall: [PATCH v1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-02-16 Thread Li, Zhihao
Li, Zhihao would like to recall the message, "[PATCH v1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.". -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#86703): https://edk2.groups.io/g/devel/message/

Re: [edk2-devel] [PATCH v1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-02-16 Thread Li, Zhihao
the declaration and structure define into CryptCshake256.c if head file not within the scope of CT46 suggestion. > -Original Message- > From: Yao, Jiewen > Sent: Wednesday, February 16, 2022 3:52 PM > To: Li, Zhihao ; devel@edk2.groups.io > Cc: Wang, Jian J ; Lu, Xiaoyu1 > ;

Re: [edk2-devel] [PATCH v1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-02-15 Thread Li, Zhihao
age- > From: Yao, Jiewen > Sent: Tuesday, February 15, 2022 2:09 PM > To: Li, Zhihao ; devel@edk2.groups.io > Cc: Wang, Jian J ; Lu, Xiaoyu1 > ; Jiang, Guomin ; Fu, > Siyuan > Subject: RE: [PATCH v1] CryptoPkg: Add new hash algorithm > ParallelHash256HashAll in BaseCryptLib.

[edk2-devel] [PATCH v1] CryptoPkg: Add new hash algorithm ParallelHash256HashAll in BaseCryptLib.

2022-02-11 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3596 Parallel hash function ParallelHash256HashAll, as defined in NIST's Special Publication 800-185, published December 2016. It utilizes multi-process to calculate the digest. Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang

[edk2-devel] [PATCH v1 1/2] UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

2022-02-07 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3815 This patch extends the SMM CPU Service protocol with new interface SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. A new library

[edk2-devel] [PATCH v1 2/2] MdeModulePkg: Modified VariableSmm driver to use new interface SmmWaitForAllProcessor().

2022-02-07 Thread Li, Zhihao
From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3815 Last patch extends the SMM CPU Service protocol with new interface SmmWaitForAllProcessor(), which can be used by SMI handler to optionally wait for other APs to complete SMM rendezvous in relaxed AP mode. A new library

Re: [edk2-devel] [RFC] Add parallel hash feature into CryptoPkg.BaseCryptLib.

2021-09-13 Thread Li, Zhihao
, Jiewen Sent: Thursday, September 9, 2021 6:04 PM To: Li, Zhihao ; Andrew Fish ; Ethin Probst ; Kinney, Michael D ; edk2-devel-groups-io Cc: Wang, Jian J ; Wu, Hao A ; Lu, XiaoyuX ; Jiang, Guomin ; gaolim...@byosoft.com.cn; Fu, Siyuan ; Wu, Yidong ; Li, Aaron Subject: RE: [edk2-devel] [RFC

Re: [edk2-devel] [RFC] Add parallel hash feature into CryptoPkg.BaseCryptLib.

2021-09-09 Thread Li, Zhihao
/MdeModulePkg/Include/Library/FmpAuthenticationLib.h line59-67 SecurityPkg: https://github.com/zhihaoli1064/edk2/blob/master/SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.c line119-188,287-350 From: Li, Zhihao Sent: Friday, September 3, 2021 4:44 PM To: Yao

Re: [edk2-devel] [RFC] Add parallel hash feature into CryptoPkg.BaseCryptLib.

2021-09-03 Thread Li, Zhihao
6 AM > To: edk2-devel-groups-io mailto:devel@edk2.groups.io>>; > Kinney, Michael D > mailto:michael.d.kin...@intel.com>> > Cc: Li, Zhihao mailto:zhihao...@intel.com>>; Yao, Jiewen > mailto:jiewen@intel.com>>; Wang, Jian J > mailto:jian.j.w..

Re: [edk2-devel] [RFC] Add parallel hash feature into CryptoPkg.BaseCryptLib.

2021-09-03 Thread Li, Zhihao
ub.com/zhihaoli1064/edk2/blob/master/CryptoPkg/Library/BaseCryptLib/Hash/Smm/ParallelHashSmm.c From: Yao, Jiewen Sent: Friday, September 3, 2021 3:07 PM To: Li, Zhihao ; Andrew Fish ; edk2-devel-groups-io ; Kinney, Michael D Cc: Wang, Jian J ; Wu, Hao A ; Lu, XiaoyuX ; Jiang, Guomin ;

Re: [edk2-devel] [RFC] Add parallel hash feature into CryptoPkg.BaseCryptLib.

2021-09-03 Thread Li, Zhihao
Pool(TempBuffer); From: Yao, Jiewen Sent: Friday, September 3, 2021 9:02 AM To: Andrew Fish ; edk2-devel-groups-io ; Kinney, Michael D Cc: Li, Zhihao ; Wang, Jian J ; Wu, Hao A ; Lu, XiaoyuX ; Jiang, Guomin ; gaolim...@byosoft.com.cn; Fu, Siyuan ; Wu, Yidong ; Li, Aaron Subject: RE: [edk2-d

[edk2-devel] [RFC] Add parallel hash feature into CryptoPkg.BaseCryptLib

2021-09-02 Thread Li, Zhihao
Hi, everyone. We want to add new hash algorithm-cSHAKE256/ParallelHash256 defined by NIST SP 800-185-into BaseCryptLib of CryptoPkg. This feature can be applied for digital authentication functions like Capsule Update. It utilizes multi-processor to calculate the image digest in parallel for