From nobody Mon Feb 9 10:57:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88990+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88990+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1650240029; cv=none; d=zohomail.com; s=zohoarc; b=laWL9k76oQ3ZlWO1Qgx5YkyNIoQdPS1h4rCFgiQWCPTIpcZSCSr21hJlk0j/P3UGRqlO+oDDfFlNaOIJDR6ZsH//Qz8oIM+SvFTplsw2E6e0sAEig4/gxn7QICV+LrTwqRsxXrRraox2vWAoMBVNEuEPFlgnPHLjPUu9Y2m1m3w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650240029; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=69ocfVUAqe5WIf97zlt3BNYbbag4W9loTOhQK4cWwjM=; b=TvwiJRh7O8YqDcWjsuFYA6Fb4I2N+oeBFrwWo7ZWcjlJF9IR0Y1qOSKFZIuMUo2tUzByELQjMnLLAV+fwniybUfmvA2CMJg0GvyrcsJGj2QMt4NF4cju0szy9y4TxGTbBJJpz7OG32hrG3Ut4XnkmpzPNNclpdkVB06AQu6KLag= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88990+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1650240029078225.25939470375772; Sun, 17 Apr 2022 17:00:29 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Sr1pYY1788612xm942TbpjYQ; Sun, 17 Apr 2022 17:00:28 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.34422.1650240016423357250 for ; Sun, 17 Apr 2022 17:00:28 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10320"; a="349872524" X-IronPort-AV: E=Sophos;i="5.90,267,1643702400"; d="scan'208";a="349872524" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2022 17:00:27 -0700 X-IronPort-AV: E=Sophos;i="5.90,267,1643702400"; d="scan'208";a="575329459" X-Received: from cuixin-mobl.ccr.corp.intel.com (HELO mxu9-mobl1.ccr.corp.intel.com) ([10.249.170.67]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2022 17:00:25 -0700 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: [edk2-devel] [PATCH V3 7/9] MdePkg: Define CC Measure EventLog ACPI Table Date: Mon, 18 Apr 2022 07:59:58 +0800 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,min.m.xu@intel.com X-Gm-Message-State: qSk1VRfq6D0ZscvmIbPja7gax1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1650240028; bh=n+yHjnkFhR+WWB4cHAdOgduxKynnJtQOgXtOq6KXYN4=; h=Cc:Date:From:Reply-To:Subject:To; b=m0TyKIT8PsO9yDfh5scEijq72nyibHjcrEt82YWY8urVNoigHZLNpUyPYyBx4uwdXNR m39hRsZ2/UMvkKEN60IlHBLE26ccmmCFQHXUc4p13frdtpHyf3D60PBGRS2vJiz8cDYj4 vOWjVzB8Sc+PO2jaSH1YPg59mo+rS1o/JIg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1650240029287100001 Content-Type: text/plain; charset="utf-8" RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3853 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 Cc: Liming Gao Cc: Zhiguang Liu Cc: Jiewen Yao Cc: Jian J Wang Cc: Ken Lu Cc: Sami Mujawar Cc: Gerd Hoffmann Reviewed-by: Liming Gao Reviewed-by: Jiewen Yao Signed-off-by: Min Xu --- MdePkg/Include/Protocol/CcMeasurement.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/MdePkg/Include/Protocol/CcMeasurement.h b/MdePkg/Include/Proto= col/CcMeasurement.h index 68029e977fac..58123ca72163 100644 --- a/MdePkg/Include/Protocol/CcMeasurement.h +++ b/MdePkg/Include/Protocol/CcMeasurement.h @@ -299,4 +299,25 @@ typedef struct { =20 extern EFI_GUID gEfiCcFinalEventsTableGuid; =20 +// +// Define the CC Measure EventLog ACPI Table +// +#pragma pack(1) + +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + EFI_CC_TYPE CcType; + UINT32 Rsvd; + UINT64 Laml; + UINT64 Lasa; +} EFI_CC_EVENTLOG_ACPI_TABLE; + +#pragma pack() + +// +// Define the signature and revision of CC Measurement EventLog ACPI Table +// +#define EFI_CC_EVENTLOG_ACPI_TABLE_SIGNATURE SIGNATURE_32('C', 'C', 'E', = 'L') +#define EFI_CC_EVENTLOG_ACPI_TABLE_REVISION 1 + #endif --=20 2.29.2.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#88990): https://edk2.groups.io/g/devel/message/88990 Mute This Topic: https://groups.io/mt/90531019/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-