Re: [edk2-devel] [edk2-redfish-client][PATCH v2] Initial edk2 redfish client repository

2023-04-21 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] Reviewed-by: Abner Chang > -Original Message- > From: devel@edk2.groups.io On Behalf Of Nickle > Wang via groups.io > Sent: Saturday, April 22, 2023 10:45 AM > To: devel@edk2.groups.io > Cc: Chang, Abner ; Igor Kulchytskyy > ; Michael D Kinney > Subjec

[edk2-devel] [edk2-redfish-client][PATCH v2] Initial edk2 redfish client repository

2023-04-21 Thread Nickle Wang via groups.io
Add required files to initial edk2 redfish client repository. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Michael D Kinney --- .gitignore | 6 + CONTRIBUTING.md | 3 +++ LICENSE | 51 ++ Maintainers.txt | 48 ++

Re: [edk2-devel] [edk2-redfish-client][PATCH] Initial edk2 redfish client repository

2023-04-21 Thread Nickle Wang via groups.io
Thanks, Mike! I mistook this file as some information related to this repository, but it is not. I will keep it as what I copied from edk2 repository. Regards, Nickle From: Kinney, Michael D Sent: Friday, April 21, 2023 11:38 PM To: Nickle Wang ; devel@edk2.groups.io Cc: Abner Chang ; Igor Kul

Re: [edk2-devel] [PATCH tianocore.github.io.wiki 1/1] Update gitbook.io links to point to tianocore-docs.github.io

2023-04-21 Thread Michael D Kinney
Reviewed-by: Michael D Kinney > -Original Message- > From: devel@edk2.groups.io On Behalf Of Rebecca Cran > Sent: Friday, April 21, 2023 2:27 PM > To: devel@edk2.groups.io; Ard Biesheuvel ; > Demeter, Miki ; Kinney, Michael D > ; Leif Lindholm > Cc: Rebecca Cran > Subject: [edk2-deve

[edk2-devel] [PATCH tianocore.github.io.wiki 1/1] Update gitbook.io links to point to tianocore-docs.github.io

2023-04-21 Thread Rebecca Cran
Since gitbook.io is no longer used, update the remaining links to point to the documents on tianocore-docs.github.io instead. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Rebecca Cran --- CET-in-SMM.md | 2 +- EDK-II-Code-Formatting.md | 2 +- ED

Re: [edk2-devel] [PATCH V1 1/1] OvmfPkg/PlatformPei: Skip PlatformInitEmuVariableNvStore in SEV guest

2023-04-21 Thread Lendacky, Thomas via groups.io
On 4/21/23 04:18, Gerd Hoffmann wrote: Hmm, good question. Can the guest figure what memory ranges are part of the launch measurement? I have a patch here (attached below) which refines flash detection and can detect whenever varstore flash is writable or not. I suspect that doesn't help much

Re: [edk2-devel] [PATCH v7 2/2] add ArmCpuInfo EFI application

2023-04-21 Thread Leif Lindholm
I addressed some final few ECC complaints, and it finally went through - now merged as ed2ff315db7e..2c2cb2352896. Thanks! On Fri, Apr 21, 2023 at 17:51:16 +0200, Marcin Juszkiewicz wrote: > App goes through ID_AA64*_EL1 system registers and decode their values. > > Signed-off-by: Marcin Juszkie

[edk2-devel] [PATCH v1 0/1] uefi-sct/SctPkg: TCGMOR SCT Test Implementation

2023-04-21 Thread Abhimanyu Singh
The TCG PC Client Platform Reset Attack Mitigation Spec v1.10 is based on UEFI Variables, and there should be a way to test for the variables and functionality based on the TCG specification. REF to Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=4419 Proposed SCT spec: https://bugzilla

[edk2-devel] [PATCH v1 1/1] uefi-sct/SctPkg: TCGMOR Platform Reset Check Test

2023-04-21 Thread Abhimanyu Singh
-implement initial test infrastructure for TCG MOR test cases including updates to: CommonGenFramework.sh, UEFI_SCT.dsc, and Category.ini -add initial TCG MOR Platform Reset Check Test -Test Assertion that checks if the platform creates the MOR EFI variable as in the TCG Platform Reset Mitiga

Re: [edk2-devel] [PATCH] RedfishPkg: Remove the global variables related to Discover Token functionality

2023-04-21 Thread Igor Kulchytskyy via groups.io
Hi Abner, I created PR. https://github.com/tianocore/edk2/pull/4297 Since it is my first PR created, I'm not sure if everything done correctly. Please double check everything. Thank you, Igor -Original Message- From: Chang, Abner Sent: Thursday, April 20, 2023 8:13 PM To: Igor Kulchytskyy

Re: [edk2-devel] 回复: [PATCH v4 09/13] BaseTools/Conf/tools_def.template: Add GCC and GCCNOLTO toolchains

2023-04-21 Thread Rebecca Cran
Thanks, I've fixed the issues you noted and sent out a v5 series. I kept your Reviewed-by on 01/13 despite making minor changes to fix the build on Windows: I hope that was okay. -- Rebecca Cran On 4/20/23 20:32, gaoliming wrote: Rebecca: I add my comments below. -邮件原件- 发件人: R

[edk2-devel] [PATCH v5 13/13] BaseTools/Conf/tools_def.template: Bump VERSION to 3.00

2023-04-21 Thread Rebecca Cran
Bump VERSION to 3.00 and explain the changes made to the toolchains. Signed-off-by: Rebecca Cran Reviewed-by: Liming Gao --- BaseTools/Conf/tools_def.template | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.

[edk2-devel] [PATCH v5 12/13] BaseTools/Conf/tools_def.template: Add section for deprecated toolchains

2023-04-21 Thread Rebecca Cran
In order to make it clear for anyone reading tools_def.template, add a section for deprecated tool chains and move GCC48, GCC49 and GCC5 into it. Signed-off-by: Rebecca Cran Reviewed-by: Liming Gao --- BaseTools/Conf/tools_def.template | 31 +++ 1 file changed, 23 in

[edk2-devel] [PATCH v5 11/13] BaseTools: Add a deprecation warning for GCC48,GCC49,GCC5 to build.py

2023-04-21 Thread Rebecca Cran
The GCC48, GCC49 and GCC5 toolchains will be deleted in the coming months. Inform users that they're deprecated and tell them what replaces them. Signed-off-by: Rebecca Cran Reviewed-by: Liming Gao --- BaseTools/Source/Python/build/build.py | 14 ++ 1 file changed, 14 insertions(+)

[edk2-devel] [PATCH v5 10/13] BaseTools: Only call LoadConfiguration once in build.py

2023-04-21 Thread Rebecca Cran
Avoid calling LoadConfiguration twice, in both InitPreBuild and InitBuild. Since InitPreBuild is called first, delete the second call from InitBuild. Signed-off-by: Rebecca Cran Reviewed-by: Liming Gao --- BaseTools/Source/Python/build/build.py | 4 +--- 1 file changed, 1 insertion(+), 3 deleti

[edk2-devel] [PATCH v5 09/13] BaseTools/Conf/tools_def.template: Add GCC and GCCNOLTO toolchains

2023-04-21 Thread Rebecca Cran
Add a 'GCC' toolchain that's a copy of the existing GCC5 definition. Add a 'GCCNOLTO' toolchain that's a copy of the existing GCC49 toolchain. Signed-off-by: Rebecca Cran --- UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc | 4 IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc |

[edk2-devel] [PATCH v5 08/13] BaseTools: Update VS toolchain descriptions in tools_def.txt.template

2023-04-21 Thread Rebecca Cran
Update the Visual Studio toolchain descriptions in tools_def.txt.template: - The WinDDK is no longer needed. - Update 3 is required for VS 2015. - VS 2005 has been removed. Signed-off-by: Rebecca Cran Reviewed-by: Liming Gao --- BaseTools/Conf/tools_def.template | 7 ++- 1 file changed, 2

[edk2-devel] [PATCH v5 07/13] BaseTools: Remove EBC (EFI Byte Code) compiler definitions

2023-04-21 Thread Rebecca Cran
The edk2-stable202302 release was the last to support building EFI Byte Code drivers. Since the Intel EFI Byte Code Compiler is no longer available, a decision has been made to remove support for EBC from edk2. Remove the definitions for Intel's EBC compiler from Conf/tools_def.template. Signed-o

[edk2-devel] [PATCH v5 06/13] BaseTools: Remove unused IPHONE_TOOLS and SOURCERY_CYGWIN_TOOLS defs

2023-04-21 Thread Rebecca Cran
Remove the unused IPHONE_TOOLS and SOURCERY_CYGWIN_TOOLS definitions from Conf/tools_def.template. Signed-off-by: Rebecca Cran Reviewed-by: Oliver Smith-Denny Reviewed-by: Liming Gao --- BaseTools/Conf/tools_def.template | 4 1 file changed, 4 deletions(-) diff --git a/BaseTools/Conf/too

[edk2-devel] [PATCH v5 05/13] edksetup.bat: Remove VS2008-VS2013 remnants

2023-04-21 Thread Rebecca Cran
Since Visual Studio versions older than VS2015 are no longer supported, remove mention of them from edksetup.bat. Signed-off-by: Rebecca Cran Reviewed-by: Oliver Smith-Denny Reviewed-by: Liming Gao Reviewed-by: Leif Lindholm --- edksetup.bat | 6 +- 1 file changed, 1 insertion(+), 5 delet

[edk2-devel] [PATCH v5 04/13] MdePkg: Remove VS2008-VS2013 remnants

2023-04-21 Thread Rebecca Cran
Since Visual Studio versions older than VS2015 are no longer supported, remove mention of them from MdePkg. Signed-off-by: Rebecca Cran Reviewed-by: Oliver Smith-Denny Reviewed-by: Liming Gao --- MdePkg/Include/Ia32/ProcessorBind.h | 8 ++-- MdePkg/Include/X64/ProcessorBind.h | 8 ++--

[edk2-devel] [PATCH v5 03/13] BaseTools: Remove VS2008-VS2013 remnants

2023-04-21 Thread Rebecca Cran
Remove remnants of Visual Studio 2008-2013 support from Conf/tools_def.txt and various batch scripts. Signed-off-by: Rebecca Cran Reviewed-by: Oliver Smith-Denny Reviewed-by: Liming Gao --- BaseTools/Conf/tools_def.template | 12 BaseTools/Scripts/SetVisualStudio.bat | 22 +---

[edk2-devel] [PATCH v5 02/13] BaseTools: Remove VS2008, 2010, 2012 and 2013 toolchain definitions

2023-04-21 Thread Rebecca Cran
With recent changes, Visual Studio versions older than VS2015 are unable to build EDK2 code. To avoid confusion, remove VS2008, 2010, 2012 and 2013 toolchain definitions from Conf/tools_def.template, leaving only versions that can be used to successfully build firmware. Signed-off-by: Rebecca Cra

[edk2-devel] [PATCH v5 01/13] BaseTools,CryptoPkg: Update CLANGDWARF, remove CLANG 35/38 toolchains

2023-04-21 Thread Rebecca Cran
Update the CLANGDWARF toolchain definition in tools_def.template with the settings from CLANG38, and delete the CLANG35 and CLANG38 toolchains. The CLANG35 and CLANG38 toolchains were added for compatibility with ARM's proprietary clang-based toolchain. Things have since moved on, and with the lat

[edk2-devel] [PATCH v5 00/13] BaseTools,CryptoPkg,EmulatorPkg,MdePkg,others: Delete CLANG35,CLANG38,VS2008-2013,EBC, deprecate GCC48,GCC49,GCC5, add GCC and GCCNOLTO, update CLANGDWARF

2023-04-21 Thread Rebecca Cran
Update the toolchain definitions: - Delete the CLANG35 and CLANG38 toolchains, and replace CLANG38 with CLANGDWARF, updating it to support ARM and AARCH64 in addition to X64 and IA32. - Mark GCC48, GCC49 and GCC5 as deprecated. - Add GCC and GCCNOLTO toolchain definitions. - Remove VS2008, VS

Re: [edk2-devel] [PATCH v6 2/2] add ArmCpuInfo EFI application

2023-04-21 Thread Leif Lindholm
On Fri, Apr 21, 2023 at 08:37:42 -0600, Rebecca Cran wrote: > I noticed CI failed for the push PR > (https://github.com/tianocore/edk2/pull/4292). > > > Ecc is complaining about missing Doxygen info for the functions: > > https://dev.azure.com/tianocore/edk2-ci/_build/results?buildId=88023&view=

[edk2-devel] [PATCH v7 2/2] add ArmCpuInfo EFI application

2023-04-21 Thread Marcin Juszkiewicz
App goes through ID_AA64*_EL1 system registers and decode their values. Signed-off-by: Marcin Juszkiewicz --- ArmPkg/ArmPkg.dsc|1 + ArmPkg/Application/ArmCpuInfo/ArmCpuInfo.inf | 31 + ArmPkg/Application/ArmCpuInfo/ArmCpuInfo.c | 2427 ++ 3 fi

[edk2-devel] [PATCH v7 1/2] ArmLib: add functions to read system registers

2023-04-21 Thread Marcin Juszkiewicz
ArmCpuInfo uses those to read system registers and other parts of EDK2 may find them useful. Signed-off-by: Marcin Juszkiewicz --- ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h| 50 +++- .../Library/ArmLib/AArch64/AArch64Support.S | 58 --- 2 files changed, 99 inse

Re: [edk2-devel] [PATCH] MdePkg: Add DEBUG_MANAGEABILITY print error level

2023-04-21 Thread Michael D Kinney
Merged Mike > -Original Message- > From: devel@edk2.groups.io On Behalf Of Chang, Abner > via groups.io > Sent: Friday, April 21, 2023 1:10 AM > To: devel@edk2.groups.io; Kinney, Michael D > Cc: Gao, Liming ; Liu, Zhiguang > ; Nickle Wang ; Igor > Kulchytskyy ; Oram, Isaac W ; Attar,

Re: [edk2-devel] [Patch V2 5/8] MdeModulePkg: Add UefiCpuPkg.dec to pass DependencyCheck

2023-04-21 Thread Michael D Kinney
Not required. Is there any use case of a null instances that would actually be needed (e.g. EmulatorPkg)? If there is a real use case, then a null instance in the MdePkg would be useful. Mike From: Ni, Ray Sent: Friday, April 21, 2023 1:10 AM To: Kinney, Michael D ; devel@edk2.groups.io; Wang,

Re: [edk2-devel] [edk2-redfish-client][PATCH] Initial edk2 redfish client repository

2023-04-21 Thread Michael D Kinney
If no modifications were made, you should leave the copyright statement alone. Mike From: Nickle Wang Sent: Thursday, April 20, 2023 8:32 PM To: devel@edk2.groups.io; Nickle Wang ; Kinney, Michael D Cc: Abner Chang ; Igor Kulchytskyy Subject: RE: [edk2-devel] [edk2-redfish-client][PATCH] Init

Re: [edk2-devel] [edk2-redfish-client][PATCH] Initial edk2 redfish client repository

2023-04-21 Thread Michael D Kinney
Acked-by: Michael D Kinney > -Original Message- > From: Chang, Abner > Sent: Thursday, April 20, 2023 10:38 PM > To: devel@edk2.groups.io; nick...@nvidia.com; Kinney, Michael D > > Cc: Igor Kulchytskyy > Subject: RE: [edk2-devel] [edk2-redfish-client][PATCH] Initial edk2 redfish > cl

Re: [edk2-devel] [PATCH v6 2/2] add ArmCpuInfo EFI application

2023-04-21 Thread Rebecca Cran
On 4/21/23 08:59, Marcin Juszkiewicz wrote: Thanks for links. Interface for EDK2 CI is not easy for beginners. It really isn't, unfortunately. Doxygen info is something I probably never wrote so would need to look at rest of EDK2 code to find out what it is and how to use it. It's pretty st

Re: [edk2-devel] [PATCH v6 2/2] add ArmCpuInfo EFI application

2023-04-21 Thread Marcin Juszkiewicz
W dniu 21.04.2023 o 16:37, Rebecca Cran pisze: I noticed CI failed for the push PR (https://github.com/tianocore/edk2/pull/4292). Ecc is complaining about missing Doxygen info for the functions: https://dev.azure.com/tianocore/edk2-ci/_build/results?buildId=88023&view=logs&j=d36e2059-ab45-57a

Re: [edk2-devel] [PATCH 1/1] ArmPkg/PlatformBootManagerLib: Add path to boot UEFI Shell over UiApp

2023-04-21 Thread Ard Biesheuvel
On Tue, 7 Feb 2023 at 10:07, wrote: > > From: Pierre Gondois > > The UEFI Shell is a non-active boot option, at the opposite of UiApp. > If no valid boot option is found, UiApp is selected. UiApp requires a > human interaction. When installing a new EDKII image in CIs or when > scripting is requi

Re: [edk2-devel] [Patch V3 03/11] OvmfPkg:Remove code that apply AddressEncMask to non-leaf entry

2023-04-21 Thread Lendacky, Thomas via groups.io
On 4/21/23 09:26, Tom Lendacky wrote: On 4/21/23 03:36, Dun Tan wrote: Remove code that apply AddressEncMask to non-leaf entry when split smm page table by MemEncryptSevLib. In FvbServicesSmm driver, it calls MemEncryptSevClearMmioPageEncMask to clear AddressEncMask bit in page table for a speci

Re: [edk2-devel] [PATCH v6 2/2] add ArmCpuInfo EFI application

2023-04-21 Thread Rebecca Cran
I noticed CI failed for the push PR (https://github.com/tianocore/edk2/pull/4292). Ecc is complaining about missing Doxygen info for the functions: https://dev.azure.com/tianocore/edk2-ci/_build/results?buildId=88023&view=logs&j=d36e2059-ab45-57a4-e2a1-e73032481054&t=463dc808-035c-5fe4-17fd-50

Re: [edk2-devel] [Patch V3 03/11] OvmfPkg:Remove code that apply AddressEncMask to non-leaf entry

2023-04-21 Thread Lendacky, Thomas via groups.io
On 4/21/23 03:36, Dun Tan wrote: Remove code that apply AddressEncMask to non-leaf entry when split smm page table by MemEncryptSevLib. In FvbServicesSmm driver, it calls MemEncryptSevClearMmioPageEncMask to clear AddressEncMask bit in page table for a specific range. In AMD SEV feature, this Add

Re: [edk2-devel] [PATCH v5 02/10] MdePkg: don't set visibility to hidden

2023-04-21 Thread Gerd Hoffmann
> > Patch #1, adding a linker script assert as suggested by ard, then: > > > > * compile + test on my local workstation (fedora 37, gcc 12). > > * run CI > > * compile on some older distros: > > - rhel-8 (gcc 8) > > - ubuntu-18.04 (gcc 7) > > Did you include NOOPT? GCC5 specifies USING_LTO fo

Re: [edk2-devel] [PATCH V1 1/1] OvmfPkg/PlatformPei: Skip PlatformInitEmuVariableNvStore in SEV guest

2023-04-21 Thread Gerd Hoffmann
> > Hmm, good question. Can the guest figure what memory ranges are part > > of the launch measurement? > > > > I have a patch here (attached below) which refines flash detection and > > can detect whenever varstore flash is writable or not. I suspect that > > doesn't help much though as flash p

Re: [edk2-devel] [PATCH 1/1] MdeModulePkg/RegularExpressionDxe: Fix Arm build error

2023-04-21 Thread Nickle Wang via groups.io
Hi Liming, After I change memset() implementation in RegularExpressionDxe, I only need to cover memcpy() with MDE_CPU_IA32. This is my change for your reference: https://github.com/tianocore/edk2/pull/4285/commits/15216e83198d7d422ae767833303d1979c8c0839 Please let me know if this makes sense t

Re: [edk2-devel] [PATCH 1/1] ArmPkg/PlatformBootManagerLib: Add path to boot UEFI Shell over UiApp

2023-04-21 Thread PierreGondois
Hi Ard, Just a ping in case this was forgotten, Regards, Pierre On 4/14/23 14:45, PierreGondois via groups.io wrote: Hello Ard, On 2/9/23 17:57, Ard Biesheuvel wrote: On Tue, 7 Feb 2023 at 10:07, wrote: From: Pierre Gondois The UEFI Shell is a non-active boot option, at the opposite of U

[edk2-devel] [Patch V3 09/11] UefiCpuPkg: Refinement to current smm page table generation code

2023-04-21 Thread duntan
This commit is code refinement to current smm pagetable generation code. Add a new GenSmmPageTable() API to create page table for smm based on the PageTableMap() API in CpuPageTableLib. Caller only needs to specify the paging mode and the PhysicalAddressBits to map. This function can be used to cre

[edk2-devel] [Patch V3 10/11] UefiCpuPkg: Refinement to code about updating smm page table

2023-04-21 Thread duntan
This commit is code refinement to current smm runtime pagetable update code. In InitPaging() function, sort mProtectionMemRange or mSmmCpuSmramRanges at first. If PcdCpuSmmProfileEnable is TRUE, use ConvertMemoryPageAttributes() API to map the range in mProtectionMemRange to the attrbute recorded i

[edk2-devel] [Patch V3 11/11] UefiCpuPkg/PiSmmCpuDxeSmm: Remove unnecessary function

2023-04-21 Thread duntan
Remove unnecessary function SetNotPresentPage(). We can directly use ConvertMemoryPageAttributes to set a range to non-present. Signed-off-by: Dun Tan Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann --- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 8 ++-- UefiCpuPkg/P

[edk2-devel] [Patch V3 08/11] UefiCpuPkg/PiSmmCpuDxeSmm: Clear CR0.WP before modify page table

2023-04-21 Thread duntan
Clear CR0.WP before modify smm page table. Currently, there is an assumption that smm pagetable is always RW before ReadyToLock. However, when AMD SEV is enabled, FvbServicesSmm driver calls MemEncryptSevClearMmioPageEncMask to clear AddressEncMask bit in smm page table for this range: [PcdOvmfFdBa

[edk2-devel] [Patch V3 07/11] UefiCpuPkg/PiSmmCpuDxeSmm: Add 2 function to disable/enable CR0.WP

2023-04-21 Thread duntan
Add two functions to disable/enable CR0.WP. These two unctions will also be used in later commits. This commit doesn't change any functionality. Signed-off-by: Dun Tan Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann --- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 24 +++

[edk2-devel] [Patch V3 06/11] UefiCpuPkg: Extern mSmmShadowStackSize in PiSmmCpuDxeSmm.h

2023-04-21 Thread duntan
Extern mSmmShadowStackSize in PiSmmCpuDxeSmm.h and remove extern for mSmmShadowStackSize in c files to simplify code. Signed-off-by: Dun Tan Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann --- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmmFuncsArch.c | 3 +-- UefiCpuPkg/PiSmmCpuDxeSmm/MpServi

[edk2-devel] [Patch V3 05/11] UefiCpuPkg/PiSmmCpuDxeSmm: Avoid setting non-present range to RO/NX

2023-04-21 Thread duntan
In PiSmmCpuDxeSmm code, SetMemMapAttributes() marks memory ranges in SmmMemoryAttributesTable to RO/NX. There may exist non-present range in these memory ranges. Set other attributes for a non-present range is not permitted in CpuPageTableMapLib. So add code to handle this case. Only map the presen

[edk2-devel] [Patch V3 04/11] UefiCpuPkg: Use CpuPageTableLib to convert SMM paging attribute.

2023-04-21 Thread duntan
Simplify the ConvertMemoryPageAttributes API to convert paging attribute by CpuPageTableLib. In the new API, it calls PageTableMap() to update the page attributes of a memory range. With the PageTableMap() API in CpuPageTableLib, we can remove the complicated page table manipulating code. Signed-o

[edk2-devel] [Patch V3 03/11] OvmfPkg:Remove code that apply AddressEncMask to non-leaf entry

2023-04-21 Thread duntan
Remove code that apply AddressEncMask to non-leaf entry when split smm page table by MemEncryptSevLib. In FvbServicesSmm driver, it calls MemEncryptSevClearMmioPageEncMask to clear AddressEncMask bit in page table for a specific range. In AMD SEV feature, this AddressEncMask bit in page table is us

[edk2-devel] [Patch V3 02/11] UefiPayloadPkg: Add CpuPageTableLib required by PiSmmCpuDxe

2023-04-21 Thread duntan
Add CpuPageTableLib required by PiSmmCpuDxeSmm in UefiPayloadPkg.dsc. Signed-off-by: Dun Tan Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo --- UefiPayloadPkg/UefiPayloadPkg.dsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiPayloadPkg/UefiPayloadP

[edk2-devel] [Patch V3 00/11] Use CpuPageTableLib to create and update smm page table

2023-04-21 Thread duntan
In V3 patch set: 1.Add a new patch 'Remove code that apply AddressEncMask to non-leaf entry'. This patch is to avoid apply AddressEncMask to non-leaf entry when split smm page table. 2.Add two new patches to clear CR0.WP before modify smm page table when ReadyToLock. This is because FvbServi

[edk2-devel] [Patch V3 01/11] OvmfPkg: Add CpuPageTableLib required by PiSmmCpuDxe

2023-04-21 Thread duntan
Add CpuPageTableLib instance required by PiSmmCpuDxe in corresponding DSC files of OvmfPkg. Signed-off-by: Dun Tan Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Ray Ni --- OvmfPkg/CloudHv/CloudHvX64.dsc | 2 +- OvmfPkg/OvmfPkgIa32.dsc| 3 ++- OvmfPkg/Ovmf

Re: [edk2-devel] [Patch V2 5/8] MdeModulePkg: Add UefiCpuPkg.dec to pass DependencyCheck

2023-04-21 Thread Ni, Ray
Mike, shall MdePkg contain the NULL instance? From: Kinney, Michael D Sent: Wednesday, April 19, 2023 11:03 PM To: Ni, Ray ; devel@edk2.groups.io; Wang, Jian J ; Tan, Dun Cc: Gao, Liming ; Ard Biesheuvel ; Kinney, Michael D Subject: RE: [edk2-devel] [Patch V2 5/8] MdeModulePkg: Add UefiCpuPkg

Re: [edk2-devel] [PATCH] MdePkg: Add DEBUG_MANAGEABILITY print error level

2023-04-21 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] > -Original Message- > From: devel@edk2.groups.io On Behalf Of Michael > D Kinney via groups.io > Sent: Friday, April 21, 2023 5:09 AM > To: devel@edk2.groups.io; Chang, Abner > Cc: Gao, Liming ; Liu, Zhiguang > ; Nickle Wang ; Igor > Kulchytskyy ; Ora

Re: [edk2-devel] [PATCH v5 02/10] MdePkg: don't set visibility to hidden

2023-04-21 Thread Marvin Häuser
> On 21. Apr 2023, at 09:21, Ard Biesheuvel wrote: > > On Fri, 21 Apr 2023 at 08:49, Gerd Hoffmann wrote: >> >>> On Fri, Apr 21, 2023 at 06:01:11AM +, Marvin Häuser wrote: >>> On 21. Apr 2023, at 06:45, Gerd Hoffmann wrote: Not needed any more on modern toolchains, they

Re: [edk2-devel] [PATCH v5 02/10] MdePkg: don't set visibility to hidden

2023-04-21 Thread Ard Biesheuvel
On Fri, 21 Apr 2023 at 08:49, Gerd Hoffmann wrote: > > On Fri, Apr 21, 2023 at 06:01:11AM +, Marvin Häuser wrote: > > > > > On 21. Apr 2023, at 06:45, Gerd Hoffmann wrote: > > > > > > Not needed any more on modern toolchains, they are better > > > in not creating a GOT without this trick. >

Re: [edk2-devel] [edk2-platforms][PATCH V3 02/14] ManageabilityPkg: Support Maximum Transfer Unit

2023-04-21 Thread Tinh Nguyen via groups.io
Reviewed-by: Tinh Nguyen On 4/21/2023 12:22 PM, Chang, Abner via groups.io wrote: From: Abner Chang Update GetTransportCapability to support Maximum Transfer Unit (MTU) of transport interface. Signed-off-by: Abner Chang Cc: Isaac Oram Cc: Abdul Lateef Attar Cc: Nickle Wang Cc: Igor Kulch

Re: [edk2-devel] [edk2-platforms][PATCH V2 02/14] ManageabilityPkg: Support Maximum Transfer Unit

2023-04-21 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] > -Original Message- > From: Tinh Nguyen > Sent: Friday, April 21, 2023 2:59 PM > To: Chang, Abner ; devel@edk2.groups.io > Cc: Isaac Oram ; Attar, AbdulLateef (Abdul Lateef) > ; Nickle Wang ; Igor > Kulchytskyy > Subject: Re: [edk2-devel] [edk2-platfo