SaveS3BootScript ();\r
}\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
+ //\r
+ // Cloud Hypervisor doesn't emulate any LPC bridge, which is why it must\r
+ // rely on the serial I/O port to be connected as a console. It reuses the\r
+ // definition from Xen as it is very generic.\r
+ //\r
PlatformInitializeConsole (\r
- XenDetected () ? gXenPlatformConsole : gPlatformConsole\r
+ (XenDetected () || PcdGet16 (PcdOvmfHostBridgePciDevId) == CLOUDHV_DEVICE_ID) ? gXenPlatformConsole : gPlatformConsole\r
);\r
\r
//\r