RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429
Tdx support 4-level paging or 5-level paging based on the GPAW. If 5-level page table is supported (GPAW is 52), a top level page directory pointers (1 * 256TB entry) is generated in the memory region defined by PcdOvmfSecPageTablesBase. Cc: Ard Biesheuvel <[email protected]> Cc: Jordan Justen <[email protected]> Cc: Brijesh Singh <[email protected]> Cc: Erdem Aktas <[email protected]> Cc: James Bottomley <[email protected]> Cc: Jiewen Yao <[email protected]> Cc: Tom Lendacky <[email protected]> Signed-off-by: Min Xu <[email protected]> --- OvmfPkg/ResetVector/ResetVector.nasmb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OvmfPkg/ResetVector/ResetVector.nasmb b/OvmfPkg/ResetVector/ResetVector.nasmb index 42b4a3791d29..0ac6d7a6fd33 100644 --- a/OvmfPkg/ResetVector/ResetVector.nasmb +++ b/OvmfPkg/ResetVector/ResetVector.nasmb @@ -118,6 +118,9 @@ %define TDX_WORK_AREA_PGTBL_READY (TDX_WORK_AREA + 5) %define TDX_WORK_AREA_INITVP (TDX_WORK_AREA + 8) %define TDX_WORK_AREA_INFO (TDX_WORK_AREA + 8 + 4) + + %define TDX_PT_ADDR(Offset) (TDX_EXTRA_PAGE_TABLE_BASE + (Offset)) + %define PT_ADDR(Offset) (FixedPcdGet32 (PcdOvmfSecPageTablesBase) + (Offset)) %define GHCB_PT_ADDR (FixedPcdGet32 (PcdOvmfSecGhcbPageTableBase)) -- 2.29.2.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#78194): https://edk2.groups.io/g/devel/message/78194 Mute This Topic: https://groups.io/mt/84476062/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
