]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/MemEncryptSevLib.h
OvmfPkg: introduce a common work area
[mirror_edk2.git] / OvmfPkg / Include / Library / MemEncryptSevLib.h
index 76d06c206c8b5cd9973d58c8a9ddb2d1a4fabbcb..adc490e466ec139cf0908cb69462e626e4f960cf 100644 (file)
@@ -12,6 +12,7 @@
 #define _MEM_ENCRYPT_SEV_LIB_H_\r
 \r
 #include <Base.h>\r
+#include <WorkArea.h>\r
 \r
 //\r
 // Define the maximum number of #VCs allowed (e.g. the level of nesting\r
@@ -36,26 +37,6 @@ typedef struct {
   VOID    *GhcbBackupPages;\r
 } SEV_ES_PER_CPU_DATA;\r
 \r
-//\r
-// Internal structure for holding SEV-ES information needed during SEC phase\r
-// and valid only during SEC phase and early PEI during platform\r
-// initialization.\r
-//\r
-// This structure is also used by assembler files:\r
-//   OvmfPkg/ResetVector/ResetVector.nasmb\r
-//   OvmfPkg/ResetVector/Ia32/PageTables64.asm\r
-//   OvmfPkg/ResetVector/Ia32/Flat32ToFlat64.asm\r
-// any changes must stay in sync with its usage.\r
-//\r
-typedef struct _SEC_SEV_ES_WORK_AREA {\r
-  UINT8    SevEsEnabled;\r
-  UINT8    Reserved1[7];\r
-\r
-  UINT64   RandomData;\r
-\r
-  UINT64   EncryptionMask;\r
-} SEC_SEV_ES_WORK_AREA;\r
-\r
 //\r
 // Memory encryption address range states.\r
 //\r