]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/PeilessStartupLib.h
OvmfPkg: Add PeilessStartupLib
[mirror_edk2.git] / OvmfPkg / Include / Library / PeilessStartupLib.h
diff --git a/OvmfPkg/Include/Library/PeilessStartupLib.h b/OvmfPkg/Include/Library/PeilessStartupLib.h
new file mode 100644 (file)
index 0000000..8c9e3cb
--- /dev/null
@@ -0,0 +1,34 @@
+/** @file\r
+\r
+  Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>\r
+\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#ifndef PEILESS_STARTUP_LIB_H_\r
+#define PEILESS_STARTUP_LIB_H_\r
+\r
+#include <Library/BaseLib.h>\r
+#include <Uefi/UefiBaseType.h>\r
+#include <Uefi/UefiSpec.h>\r
+#include <Pi/PiPeiCis.h>\r
+#include <Library/DebugLib.h>\r
+#include <Protocol/DebugSupport.h>\r
+\r
+/**\r
+ * This function brings up the Tdx guest from SEC phase to DXE phase.\r
+ * PEI phase is skipped because most of the components in PEI phase\r
+ * is not needed for Tdx guest, for example, MP Services, TPM etc.\r
+ * In this way, the attack surfaces are reduced as much as possible.\r
+ *\r
+ * @param Context   The pointer to the SecCoreData\r
+ * @return VOID     This function never returns\r
+ */\r
+VOID\r
+EFIAPI\r
+PeilessStartup (\r
+  IN VOID  *Context\r
+  );\r
+\r
+#endif\r