]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg: Add definition of EFI_CC_EVENT_HOB_GUID
authorMin Xu <min.m.xu@intel.com>
Mon, 16 May 2022 07:42:17 +0000 (15:42 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 3 Jun 2022 11:41:36 +0000 (11:41 +0000)
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3853

EFI_CC_EVENT_HOB_GUID is the global ID of a GUIDed HOB used to pass
TDX_DIGEST_VALUE from SEC to a DXE Driver ( This DXE driver will
be introduced in the following commit in this patch-sets ). In that
DXE driver this GUIDed HOB will be parsed and the TDX_DIGEST_VALUE
then will be extracted. After that a EFI_CC_EVENT will be created
based on it.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
SecurityPkg/Include/Guid/CcEventHob.h [new file with mode: 0644]
SecurityPkg/SecurityPkg.dec

diff --git a/SecurityPkg/Include/Guid/CcEventHob.h b/SecurityPkg/Include/Guid/CcEventHob.h
new file mode 100644 (file)
index 0000000..072999c
--- /dev/null
@@ -0,0 +1,22 @@
+/** @file\r
+  Defines the HOB GUID used to pass a CC_EVENT from SEC to\r
+  a CC DXE Driver. A GUIDed HOB is generated for each measurement\r
+  made in the SEC Phase.\r
+\r
+Copyright (c) 2021 - 2022, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#ifndef CC_EVENT_HOB_H_\r
+#define CC_EVENT_HOB_H_\r
+\r
+//\r
+// The Global ID of a GUIDed HOB used to pass a CC_EVENT from SEC to a CC DXE Driver.\r
+//\r
+#define EFI_CC_EVENT_HOB_GUID \\r
+  { 0x20f8fd36, 0x6d00, 0x40fb, { 0xb7, 0x04, 0xd1, 0x2c, 0x15, 0x3c, 0x62, 0xeb } }\r
+\r
+extern EFI_GUID  gCcEventEntryHobGuid;\r
+\r
+#endif\r
index 9f7a032d60d5b35a2037c0a4329efff6000a8506..0ee75efc1a97142009b83a0f2c120c3614d598c2 100644 (file)
   ## Include/Guid/TcgEventHob.h\r
   gTcgEvent2EntryHobGuid             = { 0xd26c221e, 0x2430, 0x4c8a, { 0x91, 0x70, 0x3f, 0xcb, 0x45, 0x0, 0x41, 0x3f }}\r
 \r
+  ## Hob GUID used to pass a CC_EVENT from SEC to a CC DXE Driver.\r
+  ## Include/Guid/CcEventHob.h\r
+  gCcEventEntryHobGuid               = { 0x20f8fd36, 0x6d00, 0x40fb, { 0xb7, 0x04, 0xd1, 0x2c, 0x15, 0x3c, 0x62, 0xeb }}\r
+\r
   ## HOB GUID used to record TPM device error.\r
   #  Include/Guid/TcgEventHob.h\r
   gTpmErrorHobGuid                   = { 0xef598499, 0xb25e, 0x473a, { 0xbf, 0xaf, 0xe7, 0xe5, 0x7d, 0xce, 0x82, 0xc4 }}\r