diff options
author | Min Xu <min.m.xu@intel.com> | 2022-01-19 09:33:44 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-04-02 10:09:47 +0000 |
commit | 580a6b616b92282189d421ef5f7046d755961e86 (patch) | |
tree | a8480e2e81cd3b1fb8e595e5a3b7dc35aaf5e0f3 /OvmfPkg/Include/WorkArea.h | |
parent | c37cbc030d96631b3c795a1b4fdae7daece2499c (diff) | |
download | edk2-580a6b616b92282189d421ef5f7046d755961e86.tar.gz edk2-580a6b616b92282189d421ef5f7046d755961e86.tar.bz2 edk2-580a6b616b92282189d421ef5f7046d755961e86.zip |
OvmfPkg: Add TdxWorkArea definition
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429
Add the TDX work area definition.
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Diffstat (limited to 'OvmfPkg/Include/WorkArea.h')
-rw-r--r-- | OvmfPkg/Include/WorkArea.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OvmfPkg/Include/WorkArea.h b/OvmfPkg/Include/WorkArea.h index d982e026de..b67edd14e7 100644 --- a/OvmfPkg/Include/WorkArea.h +++ b/OvmfPkg/Include/WorkArea.h @@ -71,9 +71,24 @@ typedef struct _SEV_WORK_AREA { SEC_SEV_ES_WORK_AREA SevEsWorkArea;
} SEV_WORK_AREA;
+//
+// The TDX work area definition
+//
+typedef struct _SEC_TDX_WORK_AREA {
+ UINT32 PageTableReady;
+ UINT32 Gpaw;
+ UINT64 HobList;
+} SEC_TDX_WORK_AREA;
+
+typedef struct _TDX_WORK_AREA {
+ CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER Header;
+ SEC_TDX_WORK_AREA SecTdxWorkArea;
+} TDX_WORK_AREA;
+
typedef union {
CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER Header;
SEV_WORK_AREA SevWorkArea;
+ TDX_WORK_AREA TdxWorkArea;
} OVMF_WORK_AREA;
#endif
|