From nobody Mon Feb 9 06:05:48 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+88586+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+88586+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649400116; cv=none; d=zohomail.com; s=zohoarc; b=DwHCkdNutPhLuOG0c8u0FkIdoBMjSEG/x/+hq7+5ux0i27qoeCXTiNOnlz1IU7bXbznf/YWGm5IauOhUxovjOAPweUEmPepPnW/m/UfltVMJUJw1roUmBiFi9r7kLZP2a98VN5Vj/ehmp5+JZJS25Y7UesWt0XCEUFR4AljoggY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649400116; 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=8DKwE3+6CJvTDu4bcAnGsjI7ef3WzOrVI3BcI0lz/ac=; b=OGIKFuq84gxAf8s7mEnqafRtP1PiMjeA0GuZr1/46akm3YwWOODM8eaCrZChKgslnMh1LTw6zu+BDd+9QdzK+3LRrXDHfYvYUHDTLOwfwW8Ev5mGzVraQ83Z2aCkU7MhMa6LBvkMA4GMTYjXb/iasCJCBiff36R1xcxOuezUEEM= 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+88586+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 1649400116318533.6937649936224; Thu, 7 Apr 2022 23:41:56 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id wYnLYY1788612xLIRAh80aC8; Thu, 07 Apr 2022 23:41:55 -0700 X-Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web09.2887.1649400114005454361 for ; Thu, 07 Apr 2022 23:41:55 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10310"; a="261700586" X-IronPort-AV: E=Sophos;i="5.90,244,1643702400"; d="scan'208";a="261700586" X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 23:41:52 -0700 X-IronPort-AV: E=Sophos;i="5.90,244,1643702400"; d="scan'208";a="525257603" X-Received: from mxu9-mobl1.ccr.corp.intel.com ([10.255.28.237]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 23:41:50 -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 V2 6/8] MdePkg: Define CC Measure EventLog ACPI Table Date: Fri, 8 Apr 2022 14:39:21 +0800 Message-Id: <5c92547a681f8eced03b3705db7c79fe50ebc976.1649399642.git.min.m.xu@intel.com> 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: eABLcShgQiwygYxDUK7idV9dx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649400115; bh=TXgVYEfLUa1C7iDjl5JqLQkjqx2QUZnB1VDYsqZdaRI=; h=Cc:Date:From:Reply-To:Subject:To; b=hxaF3+x+xa+TZiDEHcsEJmObSNZmxXCW4+ZwdS92gz1Mx7K5g2w0VjmICUldjIHTTTe LEbauyyYeYv3NbOFyiQKhC7gm+RF1t9pG6m8xcyXzQfnLYXKfwnRxT1niQ4H7VJLuH/Xm UNw2zxaITHipgZb0c48d9MprVRe+8qSX/zs= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649400117447100023 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 Signed-off-by: Min Xu Reviewed-by: Jiewen Yao Reviewed-by: Liming Gao --- 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 (#88586): https://edk2.groups.io/g/devel/message/88586 Mute This Topic: https://groups.io/mt/90330667/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-