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=TatyqtD/; 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:mime-version: content-transfer-encoding; bh=dwrN/knIyrRjNbghcL+4A+10VOWfl0lVaXdJOs6PIDI=; b=TatyqtD/ma3VWUay9/MogIKqpmisZrfnKYAVTks75TgZUMkAj+G2Vbof SNvaETqn80m87iP8lbPSHK0wPJYPVL+xpcjwDNNMa6pH69fAxJYSYvU4O S5KjzJVU2mWe1REZJ5QzYO2r3NykOT83PKxDsbY4w1s8/zR5Gjgj/5L5p Sar6srG3o3z28ajGrTgpOJyr/jWYCx9BcDdEFZhA1THpzbjFj+xx1eGKQ 89Y//69OXJdrQCarVLwPyiTkLfbBTjvidgJibd9I/JYyUTw5xlifPV2Da KHuHa1tX37m37lXi96l2kS0no1gu80v8nXivmExgBPaScsfdiKc3y5tW5 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10560"; a="317029406" X-IronPort-AV: E=Sophos;i="5.96,243,1665471600"; d="scan'208";a="317029406" 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:21 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10560"; a="599134756" X-IronPort-AV: E=Sophos;i="5.96,243,1665471600"; d="scan'208";a="599134756" 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:19 -0800 From: "Min Xu" To: devel@edk2.groups.io Cc: Min Xu , Erdem Aktas , James Bottomley , Jiewen Yao , Tom Lendacky , Arti Gupta Subject: [PATCH V1 0/3] Fix incorrect implementation in CcMeasurement Date: Wed, 14 Dec 2022 15:14:16 +0800 Message-Id: <20221214071419.1813-1-min.m.xu@intel.com> 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=4179 BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4184 This patch-set fix the incorrect implementation in CcMeasurement. Patch#1: Incorrect protocol and structure version Patch#2/3: Incorrect mapping between TPM PCR index and TDX Measurement Register index. Code: https://github.com/mxu9/edk2/tree/CcMapping.v1 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 Min M Xu (3): OvmfPkg/TdTcg2Dxe: Fix incorrect protocol and structure version OvmfPkg/TdTcg2Dxe: Fix the mapping error between PCR index and MR index OvmfPkg/SecTpmMeasurementLib: Fix the mapping error of PCR and RTMR index OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c | 93 ++++++++++++------- .../SecTpmMeasurementLibTdx.c | 7 +- 2 files changed, 65 insertions(+), 35 deletions(-) -- 2.29.2.windows.2