Re: [edk2-devel] [PATCH V12 33/47] OvmfPkg: Update Sec to support Tdx

2022-04-16 Thread Min Xu
On April 16, 2022 10:52 PM, Tom Lendacky wrote: > On 4/15/22 19:13, Xu, Min M wrote: > > On April 16, 2022 4:05 AM, Tom Lendacky wrote: > >>>#define SEC_IDT_ENTRY_COUNT 34 > >>> @@ -738,6 +737,20 @@ SecCoreStartupWithStack ( > >>> UINT32Index; > >>> volatile UINT8

Re: [edk2-devel] [PATCH V12 33/47] OvmfPkg: Update Sec to support Tdx

2022-04-16 Thread Lendacky, Thomas via groups.io
On 4/15/22 19:13, Xu, Min M wrote: On April 16, 2022 4:05 AM, Tom Lendacky wrote: #define SEC_IDT_ENTRY_COUNT 34 @@ -738,6 +737,20 @@ SecCoreStartupWithStack ( UINT32Index; volatile UINT8*Table; + #if defined (TDX_GUEST_SUPPORTED) + if (TdIsEnabled ()) {

Re: [edk2-devel] [PATCH V12 33/47] OvmfPkg: Update Sec to support Tdx

2022-04-15 Thread Min Xu
On April 16, 2022 4:05 AM, Tom Lendacky wrote: > > #define SEC_IDT_ENTRY_COUNT 34 > > @@ -738,6 +737,20 @@ SecCoreStartupWithStack ( > > UINT32Index; > > volatile UINT8*Table; > > > > + #if defined (TDX_GUEST_SUPPORTED) > > + if (TdIsEnabled ()) { > > I wish I

Re: [edk2-devel] [PATCH V12 33/47] OvmfPkg: Update Sec to support Tdx

2022-04-15 Thread Lendacky, Thomas via groups.io
On 3/29/22 18:46, Min Xu wrote: RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 There are below major changes in this commit. 1. SecEntry.nasm In TDX BSP and APs goes to the same entry point in SecEntry.nasm. BSP initialize the temporary stack and then jumps to SecMain, just as

[edk2-devel] [PATCH V12 33/47] OvmfPkg: Update Sec to support Tdx

2022-03-29 Thread Min Xu
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 There are below major changes in this commit. 1. SecEntry.nasm In TDX BSP and APs goes to the same entry point in SecEntry.nasm. BSP initialize the temporary stack and then jumps to SecMain, just as legacy Ovmf does. APs spin in a