[PATCH v3 7/8] OvmfPkg: Enable TPM 1.2 Physical Presence Opcode processing


Stefan Berger
 

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 <stefanb@linux.ibm.com>
---
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