From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.5168.1633670487432256251 for ; Thu, 07 Oct 2021 22:21:27 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: min.m.xu@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10130"; a="289934928" X-IronPort-AV: E=Sophos;i="5.85,356,1624345200"; d="scan'208";a="289934928" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 22:21:26 -0700 X-IronPort-AV: E=Sophos;i="5.85,356,1624345200"; d="scan'208";a="478844410" Received: from mxu9-mobl1.ccr.corp.intel.com ([10.238.4.37]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 22:21:24 -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 Subject: [PATCH V2 0/3] Introduce TdProtocol into EDK2 Date: Fri, 8 Oct 2021 13:21:11 +0800 Message-Id: X-Mailer: git-send-email 2.29.2.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3625 If TD-Guest firmware supports measurement and an event is created, TD-Guest firmware is designed to report the event log with the same data structure in TCG-Platform-Firmware-Profile specification with EFI_TCG2_EVENT_LOG_FORMAT_TCG_2 format. The TD-Guest firmware supports measurement, the TD Guest Firmware is designed to produce EFI_TD_PROTOCOL with new GUID EFI_TD_PROTOCOL_GUID to report event log and provides hash capability. https://software.intel.com/content/dam/develop/external/us/en/documents/ intel-tdx-guest-hypervisor-communication-interface-1.0-344426-002.pdf Section 4.3.2 includes the EFI_TD_PROTOCOL. Patch #1: Introduce the TD Protocol definition into MdePkg Patch #2: Update DxeTpm2MeasureBootLib to support TD based measure boot. Patch #3: Update DxeTpmMeasurementLib to support TD based measurement. Code is at https://github.com/mxu9/edk2/tree/td_protocol.v2 v2 changes: - TD based measure boot is implemented in DxeTpm2MeasureBootLib. This minimize the code changes. - TD based measurement is added. It is implemented in DxeTpmMeasurementLib. - Fix the typo in comments. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Jiewen Yao Cc: Jian J Wang Cc: Ken Lu Signed-off-by: Min Xu Min Xu (3): MdePkg: Introduce TdProtocol for TD-Guest firmware SecurityPkg: Support TdProtocol in DxeTpm2MeasureBootLib SecurityPkg: Support TdProtocol in DxeTpmMeasurementLib MdePkg/Include/Protocol/TdProtocol.h | 305 +++++++++++++++ MdePkg/MdePkg.dec | 3 + .../DxeTpm2MeasureBootLib.c | 346 ++++++++++++++---- .../DxeTpm2MeasureBootLib.inf | 1 + .../DxeTpmMeasurementLib.c | 87 ++++- .../DxeTpmMeasurementLib.inf | 1 + 6 files changed, 672 insertions(+), 71 deletions(-) create mode 100644 MdePkg/Include/Protocol/TdProtocol.h -- 2.29.2.windows.2