Re: [edk2-devel] [PATCH V4 2/3] OvmfPkg/Sec: Update the check logic in SevEsIsEnabled

2021-08-03 Thread Min Xu
On August 4, 2021 3:24 AM, Brijesh Singh wrote: > Hi Min, > > On 8/2/21 8:18 PM, Min Xu wrote: > > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > > > SevEsIsEnabled return TRUE if SevEsWorkArea->SevEsEnabled is non-zero. > > It is correct when SevEsWorkArea is only used by SEV. After

Re: [edk2-devel] [PATCH V4 2/3] OvmfPkg/Sec: Update the check logic in SevEsIsEnabled

2021-08-03 Thread Brijesh Singh via groups.io
Hi Min, On 8/2/21 8:18 PM, Min Xu wrote: RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 SevEsIsEnabled return TRUE if SevEsWorkArea->SevEsEnabled is non-zero. It is correct when SevEsWorkArea is only used by SEV. After Intel TDX is enabled in Ovmf, the SevEsWorkArea is shared by TDX a

[edk2-devel] [PATCH V4 2/3] OvmfPkg/Sec: Update the check logic in SevEsIsEnabled

2021-08-02 Thread Min Xu
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 SevEsIsEnabled return TRUE if SevEsWorkArea->SevEsEnabled is non-zero. It is correct when SevEsWorkArea is only used by SEV. After Intel TDX is enabled in Ovmf, the SevEsWorkArea is shared by TDX and SEV. (This is to avoid the waist of memor