INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf\r
\r
INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf\r
-INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
+INF OvmfPkg/SmbiosPlatformDxe/XenSmbiosPlatformDxe.inf\r
\r
INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
INF OvmfPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf\r
--- /dev/null
+## @file\r
+# This driver installs SMBIOS information for OVMF on Xen\r
+#\r
+# Copyright (C) 2021, Red Hat, Inc.\r
+# Copyright (c) 2011, Bei Guan <gbtju85@gmail.com>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
+#\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+\r
+[Defines]\r
+ INF_VERSION = 0x00010005\r
+ BASE_NAME = XenSmbiosPlatformDxe\r
+ FILE_GUID = c41f0579-5598-40f1-95db-3983c8ebbe2a\r
+ MODULE_TYPE = DXE_DRIVER\r
+ VERSION_STRING = 1.0\r
+\r
+ ENTRY_POINT = SmbiosTablePublishEntry\r
+\r
+#\r
+# The following information is for reference only and not required by the build tools.\r
+#\r
+# VALID_ARCHITECTURES = IA32 X64 EBC ARM AARCH64\r
+#\r
+\r
+[Sources]\r
+ Qemu.c\r
+ SmbiosPlatformDxe.c\r
+ SmbiosPlatformDxe.h\r
+ XenSmbiosPlatformDxe.h\r
+\r
+[Sources.IA32, Sources.X64]\r
+ X86Xen.c\r
+\r
+[Sources.ARM, Sources.AARCH64]\r
+ ArmXen.c\r
+\r
+[Packages]\r
+ MdePkg/MdePkg.dec\r
+ OvmfPkg/OvmfPkg.dec\r
+\r
+[LibraryClasses]\r
+ DebugLib\r
+ MemoryAllocationLib\r
+ PcdLib\r
+ QemuFwCfgLib\r
+ UefiBootServicesTableLib\r
+ UefiDriverEntryPoint\r
+\r
+[LibraryClasses.IA32, LibraryClasses.X64]\r
+ BaseLib\r
+ HobLib\r
+\r
+[Pcd]\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated\r
+\r
+[Protocols]\r
+ gEfiSmbiosProtocolGuid # PROTOCOL ALWAYS_CONSUMED\r
+\r
+[Guids.IA32, Guids.X64]\r
+ gEfiXenInfoGuid\r
+\r
+[Depex]\r
+ gEfiSmbiosProtocolGuid\r
+\r