From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web09.2274.1646180902366421497 for ; Tue, 01 Mar 2022 16:28:34 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=TdCY3gvx; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: min.m.xu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646180914; x=1677716914; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=04/2Sqy+lQ8KsAEpzdCDQmheN9HRclr7OIpRoXoe5mY=; b=TdCY3gvxFewWOOT3I8ZoOCoMNcumoxAX7Bc+XDlxp6YFaA5wsSyKduIx hOXZHwdS1NtZNOzMPrdAW9CVTd/8l5PR5Z0k/W4mxOsL4uJp6XVtKirIt R4PQpvHALBJIkiwI2t6D6hMKPXAEN7hOLn8fkRi3X9nx2JXQ46FxiNYiu FNrCXUH4gGFJ1L2Q33EWq9WWYtiwrA+lVqXzirPqX3pQFvZkkFltu30Pc joPEK0+KsEAjmbuU+uL06bAIffl8By48iRWpJeipH5avEm7o1yi9G96SZ 95Ofw27fAkISSgdWYdk4+IR5M3dz9WdKyjM7gRGfAmm1YleQsiTK7gwhZ g==; X-IronPort-AV: E=McAfee;i="6200,9189,10273"; a="253006589" X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="253006589" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 16:28:33 -0800 X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="641482223" Received: from mxu9-mobl1.ccr.corp.intel.com ([10.238.2.184]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 16:28:30 -0800 From: "Min Xu" To: devel@edk2.groups.io Cc: Min Xu , Michael D Kinney , Liming Gao , Zhiguang Liu , Jiewen Yao , Jian J Wang , Ken Lu , Sami Mujawar , Gerd Hoffmann Subject: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table Date: Wed, 2 Mar 2022 08:28:04 +0800 Message-Id: <20220302002807.982-6-min.m.xu@intel.com> X-Mailer: git-send-email 2.29.2.windows.2 In-Reply-To: <20220302002807.982-1-min.m.xu@intel.com> References: <20220302002807.982-1-min.m.xu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Jiewen Yao Cc: Jian J Wang Cc: Ken Lu Cc: Sami Mujawar Cc: Gerd Hoffmann Signed-off-by: Min Xu --- MdePkg/Include/Protocol/CcMeasurement.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/MdePkg/Include/Protocol/CcMeasurement.h b/MdePkg/Include/Protocol/CcMeasurement.h index 83eaafaf10a6..86de226c1d82 100644 --- a/MdePkg/Include/Protocol/CcMeasurement.h +++ b/MdePkg/Include/Protocol/CcMeasurement.h @@ -307,4 +307,24 @@ extern EFI_GUID gEfiCcFinalEventsTableGuid; extern EFI_GUID gCcEventEntryHobGuid; +// +// Define the CC Measure EventLog ACPI Table +// +#pragma pack(1) + +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + UINT32 Rsvd; + UINT64 Laml; + UINT64 Lasa; +} EFI_CC_EVENTLOG_ACPI_TABLE; + +#pragma pack() + +// +// Define the signature and revision of CC Measurement EventLog ACPI Table for Td guest +// +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_SIGNATURE SIGNATURE_32('T', 'D', 'E', 'L') +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_REVISION 1 + #endif -- 2.29.2.windows.2