]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Define CC Measure EventLog ACPI Table
authorMin Xu <min.m.xu@intel.com>
Mon, 16 May 2022 07:42:21 +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

TDVF set up an ACPI table (EFI_CC_EVENTLOG_ACPI_TABLE) to pass the
event-log information. The event log created by the TD owner contains
the hashes to reconstruct the MRTD and RTMR registers.

Please refer to Sec 4.3.3 in blow link:
https://www.intel.com/content/dam/develop/external/us/en/documents/
intel-tdx-guest-hypervisor-communication-interface-1.0-344426-002.pdf

Please be noted, the definition of EFI_CC_EVENTLOG_ACPI_TABLE is a
little different from the above document. This difference is based on
below discussion:
- https://edk2.groups.io/g/devel/message/87396
- https://edk2.groups.io/g/devel/message/87402

This change will be reflected in the next version of the above document.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Ken Lu <ken.lu@intel.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
MdePkg/Include/Protocol/CcMeasurement.h

index 68029e977fac87c92c32641824784ea895537fa9..4bf21fc42fa0016a9d5810c94a378f861298ba12 100644 (file)
@@ -299,4 +299,25 @@ typedef struct {
 \r
 extern EFI_GUID  gEfiCcFinalEventsTableGuid;\r
 \r
+//\r
+// Define the CC Measure EventLog ACPI Table\r
+//\r
+#pragma pack(1)\r
+\r
+typedef struct {\r
+  EFI_ACPI_DESCRIPTION_HEADER    Header;\r
+  EFI_CC_TYPE                    CcType;\r
+  UINT16                         Rsvd;\r
+  UINT64                         Laml;\r
+  UINT64                         Lasa;\r
+} EFI_CC_EVENTLOG_ACPI_TABLE;\r
+\r
+#pragma pack()\r
+\r
+//\r
+// Define the signature and revision of CC Measurement EventLog ACPI Table\r
+//\r
+#define EFI_CC_EVENTLOG_ACPI_TABLE_SIGNATURE  SIGNATURE_32('C', 'C', 'E', 'L')\r
+#define EFI_CC_EVENTLOG_ACPI_TABLE_REVISION   1\r
+\r
 #endif\r