From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.158.5]) by mx.groups.io with SMTP id smtpd.web11.1679.1638387065024307304 for ; Wed, 01 Dec 2021 11:31:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dwL4Qw+b; spf=pass (domain: linux.ibm.com, ip: 148.163.158.5, mailfrom: stefanb@linux.ibm.com) Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1B1Ilraw005656 for ; Wed, 1 Dec 2021 19:31:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=1FBErRfMq7MI4xDnv6kPV+7cRhQ2M0XF9pHJmerPqtM=; b=dwL4Qw+bGSck2Eo0dg9bOk68geUq//ipJI4lsaXQnDSVNP+KAG9K8Yr4FgWXadeoawyW gCcS12cWcAdQ9glJylNT3SWq87CjvUK0HZzmqDXyzLuftELrc0MRFbjriASQl5egZkFw Q+tcVK1obAAVPlPYk70LV3UA/c4x+TY3Yg2Z91a5fNY9o0LZvVaQSIC+wKduOgAUznDa LMeMfvXQ6h+24tEvFHXTKOwzpBw9dNrm95caFIKFsv6eMst30ytk6vlMIfIGMi14p1Pl wR/IMXw9yU6RwnOH7hnuGRKos/AUlWZl7a/WjB4wG+2NoMfB5PmE6GkbSXVtKpLp4UEM mA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3cpemu8t5j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 01 Dec 2021 19:31:03 +0000 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1B1JGZ5m007037 for ; Wed, 1 Dec 2021 19:31:03 GMT Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0b-001b2d01.pphosted.com with ESMTP id 3cpemu8t59-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Dec 2021 19:31:03 +0000 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1B1JCj2G021479; Wed, 1 Dec 2021 19:31:02 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma01dal.us.ibm.com with ESMTP id 3ckcacumn4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Dec 2021 19:30:59 +0000 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1B1JUodJ53805372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Dec 2021 19:30:50 GMT Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4D7F76E053; Wed, 1 Dec 2021 19:30:50 +0000 (GMT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9E6FA6E078; Wed, 1 Dec 2021 19:30:49 +0000 (GMT) Received: from sbct-2.pok.ibm.com (unknown [9.47.158.152]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 1 Dec 2021 19:30:49 +0000 (GMT) From: "Stefan Berger" To: devel@edk2.groups.io, kraxel@redhat.com, marcandre.lureau@redhat.com Cc: Stefan Berger Subject: [PATCH v3 7/8] OvmfPkg: Enable TPM 1.2 Physical Presence Opcode processing Date: Wed, 1 Dec 2021 14:30:29 -0500 Message-Id: <20211201193030.3932074-8-stefanb@linux.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201193030.3932074-1-stefanb@linux.ibm.com> References: <20211201193030.3932074-1-stefanb@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 0fHZZVMQCuwG0IqT0Hk77i3cAtbV1988 X-Proofpoint-GUID: OSNgpI31rnr9nkiMsjeyDKxq8ejdzW1R X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-30_10,2021-12-01_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 suspectscore=0 clxscore=1015 mlxscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 mlxlogscore=726 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112010102 Content-Transfer-Encoding: quoted-printable Enable the processing of the TPM 1.2 physical presence opcodes. This needs to be done before End-of-Dxe since otherwise the creation of the variables doesn't work. Signed-off-by: Stefan Berger --- OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 2 ++ OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c | 2 ++ OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg= /Library/PlatformBootManagerLib/BdsPlatform.c index 1765026de2..9c96c0cf69 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -379,7 +379,9 @@ PlatformBootManagerBeforeConsole ( =0D //=0D // Process TPM PPI request; this may require keyboard input=0D + // For variable creation and locking to work, this has to be done before= End-of-Dxe.=0D //=0D + TcgPhysicalPresenceLibProcessRequest ();=0D Tcg2PhysicalPresenceLibProcessRequest (NULL);=0D =0D //=0D diff --git a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c b/Ov= mfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c index 950ab12c94..e9b4831bef 100644 --- a/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c @@ -372,7 +372,9 @@ PlatformBootManagerBeforeConsole ( =0D //=0D // Process TPM PPI request=0D + // For variable creation and locking to work, this has to be done before= End-of-Dxe.=0D //=0D + TcgPhysicalPresenceLibProcessRequest ();=0D Tcg2PhysicalPresenceLibProcessRequest (NULL);=0D =0D //=0D diff --git a/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c b/Ovm= fPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c index fbc40dcb68..a6a9374505 100644 --- a/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c @@ -335,7 +335,9 @@ PlatformBootManagerBeforeConsole ( =0D //=0D // Process TPM PPI request=0D + // For variable creation and locking to work, this has to be done before= End-of-Dxe.=0D //=0D + TcgPhysicalPresenceLibProcessRequest ();=0D Tcg2PhysicalPresenceLibProcessRequest (NULL);=0D =0D //=0D --=20 2.31.1