From nobody Sun Feb 8 22:43:26 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+88588+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+88588+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649400121; cv=none; d=zohomail.com; s=zohoarc; b=QmkmqExlix0U5j0nWeyGL8n+b74zhSwdCljYYyGL0MLrEjW5RkQhO5o4hqllgxRoihOdZvxInE0b2QBa0urNEw6u3roJ7hO0/R6ktrZZUT7mJ0xFOPi7pi465/05FLBEmCWbEMiCVOz7SH7zT5GFa93V2m2Kdro6vuwJKBfV9ds= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649400121; 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=5bWELmOeoHDy3oXKSY5NpvdMeUXLxd682uRzo0MQIl0=; b=f6Lw2ccJ+XID3U2gyH1pzD+LfmdTYQon+RA9Ccc4GYUhaA/rAyFIU8N3ERZHgIOndyhiKIch8+uAuHKeoBGXI4rJ7ZfH3BP3VcShdfd1/Z/tVDRtayCrm/59rII0LVC32Kk/D71QzrRD9X7BgK7n4ny8rILlAQNu6sSkbVhik60= 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+88588+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 1649400121559641.4824257756223; Thu, 7 Apr 2022 23:42:01 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id crSMYY1788612xbp7Vcn4GqR; Thu, 07 Apr 2022 23:42:01 -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:42:00 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10310"; a="261700659" X-IronPort-AV: E=Sophos;i="5.90,244,1643702400"; d="scan'208";a="261700659" 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:42:00 -0700 X-IronPort-AV: E=Sophos;i="5.90,244,1643702400"; d="scan'208";a="525257650" 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:57 -0700 From: "Min Xu" To: devel@edk2.groups.io Cc: Min Xu , Brijesh Singh , Erdem Aktas , James Bottomley , Jiewen Yao , Tom Lendacky , Ken Lu , Sami Mujawar , Gerd Hoffmann Subject: [edk2-devel] [PATCH V2 8/8] OvmfPkg/IntelTdx: Enable RTMR based measurement and measure boot Date: Fri, 8 Apr 2022 14:39:23 +0800 Message-Id: <4280fb9450481efbad77654bcfb594508fd077be.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: ZdKQQo2mmIZzcOxnQa1S8RDEx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649400121; bh=aLjWm+SAXOYT/jPBZeW5gd2aXDDafqll1xKfj5f78+g=; h=Cc:Date:From:Reply-To:Subject:To; b=OwhK4Aqtkn4IXYeaR1ddyf4lnZgXQKj7n4wF7QjrY4W5U7RTVyHKeMmjc2m84A8nsZ9 r27VgDPpogIduWmJ67I3RawHQZn0aYd3RZy5V4HfheadBOlcDT6aPfQOBkyr325oYCf1V A2l5ecnuXTFChBCJ+8nAkH4MaRS7OU5+ERc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649400123451100007 Content-Type: text/plain; charset="utf-8" RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3853 Enable RTMR based measurement and measure boot for Td guest. Cc: Brijesh Singh Cc: Erdem Aktas Cc: James Bottomley Cc: Jiewen Yao Cc: Tom Lendacky Cc: Ken Lu Cc: Sami Mujawar Cc: Gerd Hoffmann Signed-off-by: Min Xu --- OvmfPkg/IntelTdx/IntelTdxX64.dsc | 12 +++++++++++- OvmfPkg/IntelTdx/IntelTdxX64.fdf | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/IntelTdx/IntelTdxX64.dsc b/OvmfPkg/IntelTdx/IntelTdxX6= 4.dsc index caae49d524f9..774e2aee50a1 100644 --- a/OvmfPkg/IntelTdx/IntelTdxX64.dsc +++ b/OvmfPkg/IntelTdx/IntelTdxX64.dsc @@ -192,7 +192,7 @@ OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib= /BaseOrderedCollectionRedBlackTreeLib.inf =20 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeT= cg2PhysicalPresenceLib.inf - TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurem= entLibNull.inf + TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasure= mentLib.inf =20 [LibraryClasses.common] BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf @@ -548,6 +548,7 @@ !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificatio= nLib.inf !endif + NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib= .inf } =20 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf @@ -722,3 +723,12 @@ NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf } + + # + # Cc Measurement Protocol for Td guest + # +OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.inf { + + HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoR= outerTdx.inf + NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.i= nf +} diff --git a/OvmfPkg/IntelTdx/IntelTdxX64.fdf b/OvmfPkg/IntelTdx/IntelTdxX6= 4.fdf index 9e290ea78f61..b7eb217847b8 100644 --- a/OvmfPkg/IntelTdx/IntelTdxX64.fdf +++ b/OvmfPkg/IntelTdx/IntelTdxX64.fdf @@ -292,6 +292,11 @@ INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf =20 +# +# EFI_CC_MEASUREMENT_PROTOCOL +# +INF OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.inf + ##########################################################################= ###### =20 [FV.FVMAIN_COMPACT] --=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 (#88588): https://edk2.groups.io/g/devel/message/88588 Mute This Topic: https://groups.io/mt/90330669/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-