Re: [PATCH V2 4/4] OvmfPkg/ResetVector: Update ResetVector to support Tdx
On 7/22/21 5:58 PM, Xu, Min M wrote:
On July 23, 2021 1:08 AM, Tom Lendacky wrote:I believe PcdOvmfSecGhcbBackupBase can be cleared early. For SEV-ES, itOn 7/22/21 12:52 AM, Min Xu wrote:TDX_WORK_AREA is piece of TdxMailbox which is located in the MEMFD startedRFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429Is the memory area guaranteed to be zeroed for legacy guests? Hopefully,
isn't shared with the hypervisor, so clearing it before activating the
pagetables can be done (it will be treated as encrypted before paging is
enabled and mapped as encrypted after paging is enabled) and for a legacy
guest the mapping doesn't matter. It isn't required to be cleared today,
so if you do add something, be sure to put a comment in there about why
it's being done. No need for a new area.
The possibility of random data being there that matches 'TDXG' is
extremely low. But better safe than sorry, I guess.