From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web10.96891.1671002139984151067 for ; Tue, 13 Dec 2022 23:15:40 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=KNA1ddAK; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: min.m.xu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671002140; x=1702538140; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4JOPUixjMM1AbL/rxfFPzHEGDnm1O50slBnwYteA650=; b=KNA1ddAKr2pmRIkvplEdNO70C7rsu+F9Tey4Z5SH5cPzAK2YytONp9/1 X40d5RPm3uDB7exVm45ecTRYOcpfg+Sgi/XqSKvNdoE1vNVap2VGuXza+ EaKL+hQICcHmqYUZi1xtrsmjadPOZHOZxtn6ciK1LPNH+y7HaaxI+WuqN RD2SusAuV8HAqvGO44cn1TUmAFJRt7I2Eowz7e7W0n5g1Br1lX3m7OdQR Wl8VimcT/Af+ksTivvXkzyGkcKzNbONsdg3A48gEkp2KOMwjslkW5Wa+Z O/yp07q0d50miZCUvoKnwUtDe7u6ugbgr7nxJgGG55ysRJtfUXEbFUTvC Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10560"; a="317029414" X-IronPort-AV: E=Sophos;i="5.96,243,1665471600"; d="scan'208";a="317029414" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2022 23:15:23 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10560"; a="599134763" X-IronPort-AV: E=Sophos;i="5.96,243,1665471600"; d="scan'208";a="599134763" Received: from mxu9-mobl1.ccr.corp.intel.com ([10.255.31.173]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2022 23:15:21 -0800 From: "Min Xu" To: devel@edk2.groups.io Cc: Min M Xu , Erdem Aktas , James Bottomley , Jiewen Yao , Tom Lendacky , Arti Gupta Subject: [PATCH V1 1/3] OvmfPkg/TdTcg2Dxe: Fix incorrect protocol and structure version Date: Wed, 14 Dec 2022 15:14:17 +0800 Message-Id: <20221214071419.1813-2-min.m.xu@intel.com> X-Mailer: git-send-email 2.29.2.windows.2 In-Reply-To: <20221214071419.1813-1-min.m.xu@intel.com> References: <20221214071419.1813-1-min.m.xu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Min M Xu BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4184 According to the Uefi spec 2.10 Section 38.2.2. EFI_CC_MEASUREMENT_PROTOCOL.GetCapability, the minor version of StructureVersion and ProtocolVersion should be 0. Cc: Erdem Aktas [ruleof2] Cc: James Bottomley [jejb] Cc: Jiewen Yao [jyao1] Cc: Tom Lendacky [tlendacky] Cc: Arti Gupta Reported-by: Arti Gupta Signed-off-by: Min Xu --- OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c b/OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c index e9315ecda17b..a6b4f8e0aa6b 100644 --- a/OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c +++ b/OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c @@ -2411,9 +2411,9 @@ DriverEntry ( mTdxDxeData.BsCap.Size = sizeof (EFI_CC_BOOT_SERVICE_CAPABILITY); mTdxDxeData.BsCap.ProtocolVersion.Major = 1; - mTdxDxeData.BsCap.ProtocolVersion.Minor = 1; + mTdxDxeData.BsCap.ProtocolVersion.Minor = 0; mTdxDxeData.BsCap.StructureVersion.Major = 1; - mTdxDxeData.BsCap.StructureVersion.Minor = 1; + mTdxDxeData.BsCap.StructureVersion.Minor = 0; // // Get supported PCR and current Active PCRs -- 2.29.2.windows.2