]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Guid/SevLaunchSecret.h
OvmfPkg/AmdSev: Expose the Sev Secret area using a configuration table
[mirror_edk2.git] / OvmfPkg / Include / Guid / SevLaunchSecret.h
diff --git a/OvmfPkg/Include/Guid/SevLaunchSecret.h b/OvmfPkg/Include/Guid/SevLaunchSecret.h
new file mode 100644 (file)
index 0000000..fa5f383
--- /dev/null
@@ -0,0 +1,28 @@
+ /** @file\r
+   UEFI Configuration Table for exposing the SEV Launch Secret location to UEFI\r
+   applications (boot loaders).\r
+\r
+   Copyright (C) 2020 James Bottomley, IBM Corporation.\r
+   SPDX-License-Identifier: BSD-2-Clause-Patent\r
+ **/\r
+\r
+#ifndef SEV_LAUNCH_SECRET_H_\r
+#define SEV_LAUNCH_SECRET_H_\r
+\r
+#include <Uefi/UefiBaseType.h>\r
+\r
+#define SEV_LAUNCH_SECRET_GUID                          \\r
+  { 0xadf956ad,                                         \\r
+    0xe98c,                                             \\r
+    0x484c,                                             \\r
+    { 0xae, 0x11, 0xb5, 0x1c, 0x7d, 0x33, 0x64, 0x47 }, \\r
+  }\r
+\r
+typedef struct {\r
+  UINT32 Base;\r
+  UINT32 Size;\r
+} SEV_LAUNCH_SECRET_LOCATION;\r
+\r
+extern EFI_GUID gSevLaunchSecretGuid;\r
+\r
+#endif // SEV_LAUNCH_SECRET_H_\r