--- /dev/null
+/** @file\r
+ Dectection code for hypervisor debug port.\r
+\r
+ Copyright (c) 2020, Citrix Systems, Inc.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#include "DebugLibDetect.h"\r
+\r
+/**\r
+ Always return TRUE without detection as the debug I/O port is always\r
+ present.\r
+\r
+ @retval TRUE The debug I/O port is always present.\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+PlatformDebugLibIoPortDetect (\r
+ VOID\r
+ )\r
+{\r
+ return TRUE;\r
+}\r
--- /dev/null
+## @file\r
+# Instance of Debug Library for an hypervisor debug console port.\r
+# It uses Print Library to produce formatted output strings.\r
+#\r
+# Copyright (c) 2020, Citrix Systems, Inc.\r
+#\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+#\r
+##\r
+\r
+[Defines]\r
+ INF_VERSION = 0x00010005\r
+ BASE_NAME = PlatformRomDebugLibIoPortNocheck\r
+ FILE_GUID = 92AEB68E-C2CF-466E-9AB2-3F5E713F7DE6\r
+ MODULE_TYPE = BASE\r
+ VERSION_STRING = 1.0\r
+ LIBRARY_CLASS = DebugLib\r
+ CONSTRUCTOR = PlatformRomDebugLibIoPortConstructor\r
+\r
+#\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
+#\r
+\r
+[Sources]\r
+ DebugIoPortNocheck.c\r
+ DebugLib.c\r
+ DebugLibDetect.h\r
+ DebugLibDetectRom.c\r
+\r
+[Packages]\r
+ MdePkg/MdePkg.dec\r
+ OvmfPkg/OvmfPkg.dec\r
+\r
+[LibraryClasses]\r
+ BaseMemoryLib\r
+ IoLib\r
+ PcdLib\r
+ PrintLib\r
+ BaseLib\r
+ DebugPrintErrorLevelLib\r
+\r
+[Pcd]\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdDebugIoPort ## CONSUMES\r
+ gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue ## CONSUMES\r
+ gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask ## CONSUMES\r
+ gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel ## CONSUMES\r
+\r