From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web11.5527.1649725790804496673 for ; Mon, 11 Apr 2022 18:09:51 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([101.224.116.119]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 12 Apr 2022 09:09:38 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 101.224.116.119 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Min Xu'" , Cc: "'Michael D Kinney'" , "'Zhiguang Liu'" , "'Jiewen Yao'" , "'Jian J Wang'" , "'Ken Lu'" , "'Sami Mujawar'" , "'Gerd Hoffmann'" References: <5c92547a681f8eced03b3705db7c79fe50ebc976.1649399642.git.min.m.xu@intel.com> In-Reply-To: <5c92547a681f8eced03b3705db7c79fe50ebc976.1649399642.git.min.m.xu@intel.com> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggVjIgNi84XSBNZGVQa2c6IERlZmluZSBDQyBNZWFzdXJlIEV2ZW50TG9nIEFDUEkgVGFibGU=?= Date: Tue, 12 Apr 2022 09:09:40 +0800 Message-ID: <011401d84e09$fc72e510$f558af30$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQLHaY6fn8PrRXP2xmseZc+ORspq0gGoYbm0qv/9y8A= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Min Xu > =B7=A2=CB=CD=CA=B1=BC=E4: 2022=C4=EA4=D4=C28=C8=D5 14:39 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Min Xu ; Michael D Kinney > ; Liming Gao ; > Zhiguang Liu ; Jiewen Yao = ; > Jian J Wang ; Ken Lu ; Sami > Mujawar ; Gerd Hoffmann > =D6=F7=CC=E2: [PATCH V2 6/8] MdePkg: Define CC Measure EventLog ACPI = Table >=20 > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3853 >=20 > 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. >=20 > 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 >=20 > 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 >=20 > This change will be reflected in the next version of the above = document. >=20 > 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 | 21 > +++++++++++++++++++++ > 1 file changed, 21 insertions(+) >=20 > diff --git a/MdePkg/Include/Protocol/CcMeasurement.h > b/MdePkg/Include/Protocol/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 > -- > 2.29.2.windows.2