[edk2-devel] [PATCH V8 3/3] OvmfPkg: Enable TDX in ResetVector

2021-09-26 Thread Min Xu
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 Intel's Trust Domain Extensions (Intel TDX) refers to an Intel technology that extends Virtual Machines Extensions (VMX) and Multi-Key Total Memory Encryption (MKTME) with a new kind of virutal machines guest called a Trust Domain (TD). A

[edk2-devel] [PATCH V8 2/3] OvmfPkg: Clear WORK_AREA_GUEST_TYPE in Main.asm

2021-09-26 Thread Min Xu
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 Previously WORK_AREA_GUEST_TYPE was cleared in SetCr3ForPageTables64. This is workable for Legacy guest and SEV guest. But it doesn't work after Intel TDX is introduced. It is because all TDX CPUs (BSP and APs) start to run from 0xfff0,

[edk2-devel] [PATCH V8 1/3] OvmfPkg: Copy Main.asm from UefiCpuPkg to OvmfPkg's ResetVector

2021-09-26 Thread Min Xu
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 Previously OvmfPkg/ResetVector uses the Main.asm in UefiCpuPkg/ReseteVector/Vtf0. In this Main.asm there is only Main16 entry point. This patch-set is to introduce Intel TDX into Ovmf. Main32 entry point is needed in Main.asm by Intel TDX.

[edk2-devel] [PATCH V8 0/3] Add Intel TDX support in OvmfPkg/ResetVector

2021-09-26 Thread Min Xu
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 Intel's Trust Domain Extensions (Intel TDX) refers to an Intel technology that extends Virtual Machines Extensions (VMX) and Multi-Key Total Memory Encryption (MKTME) with a new kind of virutal machines guest called a Trust Domain (TD). A

[edk2-devel] [PATCH] UefiPayloadPkg: Add a macro to enable or disable the SecurityStubDxe driver.

2021-09-26 Thread Zhiguang Liu
The SecurityStubDxe driver may be provided by platform payload. Cc: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Signed-off-by: Zhiguang Liu --- UefiPayloadPkg/UefiPayloadPkg.dsc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc

Re: [edk2-devel] [PATCH v7] IntelFsp2WrapperPkg : FSPM/S UPD data address based on Build Type

2021-09-26 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu > -Original Message- > From: S, Ashraf Ali > Sent: Friday, September 24, 2021 7:43 PM > To: devel@edk2.groups.io > Cc: S, Ashraf Ali ; Chiu, Chasel > ; > Desimone, Nathaniel L ; Zeng, Star > ; Kuo, Ted ; Duggapu, Chinni B > ; Chaganty, Rangasai V > ; Solanki,

Re: [edk2-devel] RFC: Add BaseLib/QuickSort in MdePkg

2021-09-26 Thread Jeff Fan
Making baselib implementation depend on MemoryAllocationLib (indirectly on Pei Service and gBS), it may prevent this base API using at some seneraio. i don't think it's better. Add this parameter and make this parameter is optional, 1, when NULL, use the local 256 bytes stack 2, if 256 bytes

Re: [edk2-devel] [`edk2-devel][PATCH] UefiPayloadPkg: Build a HOB from bootloader ACPI table

2021-09-26 Thread Guo Dong
Hi Ray, In this patch, we added a shared file AcpiTable.c for both universal payload and non-universal payload. The exposed API from this file is: EFI_STATUS BuildHobFromAcpi ( IN UINT64 AcpiTableBase); This function will build an ACPI board HOB based on the information from ACPI table.

Re: [edk2-devel] RFC: Add BaseLib/QuickSort in MdePkg

2021-09-26 Thread Marvin Häuser
Hey Ray, In my opinion that spec is too complicated. For some cases it is obvious, but I think the last anyone wants to see is a (STATIC_)ASSERT before most QuickSort calls to ensure the element size *really* is <= 256 Bytes. In my opinion, there are two roads: 1) Make the parameter