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.web09.4269.1631584662538995448 for ; Mon, 13 Sep 2021 18:57:42 -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,10106"; a="285538709" X-IronPort-AV: E=Sophos;i="5.85,291,1624345200"; d="scan'208";a="285538709" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 18:57:41 -0700 X-IronPort-AV: E=Sophos;i="5.85,291,1624345200"; d="scan'208";a="552035345" Received: from mxu9-mobl1.ccr.corp.intel.com ([10.249.169.243]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 18:57:37 -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 0/2] Introduce TdProtocol into EDK2 Date: Tue, 14 Sep 2021 09:57:18 +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. Patch #1: Introduce the TD Protocol definition into MdePkg Patch #2: Add DxeTdMeasureBootLib into SecurityPkg. This library instance provides security service of TD measure boot. 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 (2): MdePkg: Introduce TdProtocol for TD-Guest firmware SecurityPkg: Add DxeTdMeasureBootLib for TD measure boot MdePkg/Include/Protocol/TdProtocol.h | 305 ++++++++ MdePkg/MdePkg.dec | 3 + .../DxeTdMeasureBootLib/DxeTdMeasureBootLib.c | 688 ++++++++++++++++++ .../DxeTdMeasureBootLib.inf | 61 ++ .../DxeTdMeasureBootLib.uni | 21 + SecurityPkg/SecurityPkg.dsc | 5 + 6 files changed, 1083 insertions(+) create mode 100644 MdePkg/Include/Protocol/TdProtocol.h create mode 100644 SecurityPkg/Library/DxeTdMeasureBootLib/DxeTdMeasureBootLib.c create mode 100644 SecurityPkg/Library/DxeTdMeasureBootLib/DxeTdMeasureBootLib.inf create mode 100644 SecurityPkg/Library/DxeTdMeasureBootLib/DxeTdMeasureBootLib.uni -- 2.29.2.windows.2