]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/MemEncryptSevLib.h
OvmfPkg/Sec: Move SEV-ES SEC workarea definition to common header file
[mirror_edk2.git] / OvmfPkg / Include / Library / MemEncryptSevLib.h
index fc70b0114354cf7b1d33313f01663485da643c1f..a6d82dac7facb85a57e75bc393620eed7479b11c 100644 (file)
@@ -2,7 +2,7 @@
 \r
   Define Secure Encrypted Virtualization (SEV) base library helper function\r
 \r
-  Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>\r
+  Copyright (c) 2017 - 2020, AMD Incorporated. All rights reserved.<BR>\r
 \r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 \r
 #include <Base.h>\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
+// any changes must stay in sync with its usage.\r
+//\r
+typedef struct _SEC_SEV_ES_WORK_AREA {\r
+  UINT8    SevEsEnabled;\r
+} SEC_SEV_ES_WORK_AREA;\r
+\r
 /**\r
   Returns a boolean to indicate whether SEV-ES is enabled.\r
 \r