SaveS3BootScript ();\r
}\r
\r
+ // We need to connect all trusted consoles for TCG PP. Here we treat all\r
+ // consoles in OVMF to be trusted consoles.\r
+ PlatformInitializeConsole (\r
+ XenDetected() ? gXenPlatformConsole : gPlatformConsole);\r
+\r
+ //\r
+ // Process TPM PPI request; this may require keyboard input\r
+ //\r
+ Tcg2PhysicalPresenceLibProcessRequest (NULL);\r
+\r
//\r
// Prevent further changes to LockBoxes or SMRAM.\r
+ // Any TPM 2 Physical Presence Interface opcode must be handled before.\r
//\r
Handle = NULL;\r
Status = gBS->InstallProtocolInterface (&Handle,\r
//\r
EfiBootManagerDispatchDeferredImages ();\r
\r
- PlatformInitializeConsole (\r
- XenDetected() ? gXenPlatformConsole : gPlatformConsole);\r
-\r
FrontPageTimeout = GetFrontPageTimeoutFromQemu ();\r
PcdStatus = PcdSet16S (PcdPlatformBootTimeOut, FrontPageTimeout);\r
ASSERT_RETURN_ERROR (PcdStatus);\r
//\r
PciAcpiInitialization ();\r
\r
- //\r
- // Process TPM PPI request\r
- //\r
- Tcg2PhysicalPresenceLibProcessRequest (NULL);\r
-\r
//\r
// Process QEMU's -kernel command line option\r
//\r