OvmfPkg: remove USE_OLD_PCI_HOST build option

It's been a month since the following commits appeared in the repo:

  4014885ffdfa8 OvmfPkg: switch to MdeModulePkg/Bus/Pci/PciHostBridgeDxe
  c47ed6fcb5e60 OvmfPkg: match PCI config access to machine type (if not
                USE_OLD_PCI_HOST)

in which we introduced the USE_OLD_PCI_HOST fallback, and made other work
depend on it. I have not heard of any problems (primarily from the
vfio-users group that uses Gerd's daily / hourly OVMF builds), so it's
time to drop the fallback.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc
index 9eeff96..0206dda 100644
--- a/OvmfPkg/OvmfPkgIa32.dsc
+++ b/OvmfPkg/OvmfPkgIa32.dsc
@@ -37,7 +37,6 @@
   DEFINE NETWORK_IP6_ENABLE      = FALSE

   DEFINE HTTP_BOOT_ENABLE        = FALSE

   DEFINE SMM_REQUIRE             = FALSE

-  DEFINE USE_OLD_PCI_HOST        = FALSE

 

 [BuildOptions]

   GCC:*_UNIXGCC_*_CC_FLAGS             = -DMDEPKG_NDEBUG

@@ -82,9 +81,7 @@
   DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf

   PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf

   PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf

-!endif

   PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf

   PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf

   IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf

@@ -245,9 +242,7 @@
 !if $(SECURE_BOOT_ENABLE) == TRUE

   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf

 !endif

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.UEFI_DRIVER]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -262,9 +257,7 @@
   DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf

 !endif

   UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.DXE_DRIVER]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -294,9 +287,7 @@
 !endif

   QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf

   FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.UEFI_APPLICATION]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -308,9 +299,7 @@
 !else

   DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf

 !endif

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.DXE_SMM_DRIVER]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -330,9 +319,7 @@
   DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf

 !endif

   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.SMM_CORE]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -348,9 +335,7 @@
 !else

   DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf

 !endif

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 ################################################################################

 #

@@ -555,14 +540,10 @@
   UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf

   UefiCpuPkg/CpuDxe/CpuDxe.inf

   PcAtChipsetPkg/8254TimerDxe/8254Timer.inf

-!if $(USE_OLD_PCI_HOST) == TRUE

-  OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf

-!else

   MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {

     <LibraryClasses>

       PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf

   }

-!endif

   MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {

     <LibraryClasses>

       PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

diff --git a/OvmfPkg/OvmfPkgIa32.fdf b/OvmfPkg/OvmfPkgIa32.fdf
index bcb3041..93a51a5 100644
--- a/OvmfPkg/OvmfPkgIa32.fdf
+++ b/OvmfPkg/OvmfPkgIa32.fdf
@@ -207,11 +207,7 @@
 INF  UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf

 INF  UefiCpuPkg/CpuDxe/CpuDxe.inf

 INF  PcAtChipsetPkg/8254TimerDxe/8254Timer.inf

-!if $(USE_OLD_PCI_HOST) == TRUE

-INF  OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf

-!else

 INF  MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf

-!endif

 INF  MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf

 INF  PcAtChipsetPkg/KbcResetDxe/Reset.inf

 INF  MdeModulePkg/Universal/Metronome/Metronome.inf

diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc
index 8742aae..06fe141 100644
--- a/OvmfPkg/OvmfPkgIa32X64.dsc
+++ b/OvmfPkg/OvmfPkgIa32X64.dsc
@@ -37,7 +37,6 @@
   DEFINE NETWORK_IP6_ENABLE      = FALSE

   DEFINE HTTP_BOOT_ENABLE        = FALSE

   DEFINE SMM_REQUIRE             = FALSE

-  DEFINE USE_OLD_PCI_HOST        = FALSE

 

 [BuildOptions]

   GCC:*_UNIXGCC_*_CC_FLAGS             = -DMDEPKG_NDEBUG

@@ -87,9 +86,7 @@
   DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf

   PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf

   PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf

-!endif

   PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf

   PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf

   IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf

@@ -250,9 +247,7 @@
 !if $(SECURE_BOOT_ENABLE) == TRUE

   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf

 !endif

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.UEFI_DRIVER]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -267,9 +262,7 @@
   DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf

 !endif

   UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.DXE_DRIVER]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -299,9 +292,7 @@
 !endif

   QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf

   FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.UEFI_APPLICATION]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -313,9 +304,7 @@
 !else

   DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf

 !endif

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.DXE_SMM_DRIVER]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -335,9 +324,7 @@
   DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf

 !endif

   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.SMM_CORE]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -353,9 +340,7 @@
 !else

   DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf

 !endif

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 ################################################################################

 #

@@ -564,14 +549,10 @@
   UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf

   UefiCpuPkg/CpuDxe/CpuDxe.inf

   PcAtChipsetPkg/8254TimerDxe/8254Timer.inf

-!if $(USE_OLD_PCI_HOST) == TRUE

-  OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf

-!else

   MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {

     <LibraryClasses>

       PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf

   }

-!endif

   MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {

     <LibraryClasses>

       PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

diff --git a/OvmfPkg/OvmfPkgIa32X64.fdf b/OvmfPkg/OvmfPkgIa32X64.fdf
index 31d57f9..aad16a6 100644
--- a/OvmfPkg/OvmfPkgIa32X64.fdf
+++ b/OvmfPkg/OvmfPkgIa32X64.fdf
@@ -207,11 +207,7 @@
 INF  UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf

 INF  UefiCpuPkg/CpuDxe/CpuDxe.inf

 INF  PcAtChipsetPkg/8254TimerDxe/8254Timer.inf

-!if $(USE_OLD_PCI_HOST) == TRUE

-INF  OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf

-!else

 INF  MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf

-!endif

 INF  MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf

 INF  PcAtChipsetPkg/KbcResetDxe/Reset.inf

 INF  MdeModulePkg/Universal/Metronome/Metronome.inf

diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc
index db61ee5..e88e70d 100644
--- a/OvmfPkg/OvmfPkgX64.dsc
+++ b/OvmfPkg/OvmfPkgX64.dsc
@@ -37,7 +37,6 @@
   DEFINE NETWORK_IP6_ENABLE      = FALSE

   DEFINE HTTP_BOOT_ENABLE        = FALSE

   DEFINE SMM_REQUIRE             = FALSE

-  DEFINE USE_OLD_PCI_HOST        = FALSE

 

 [BuildOptions]

   GCC:*_UNIXGCC_*_CC_FLAGS             = -DMDEPKG_NDEBUG

@@ -87,9 +86,7 @@
   DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf

   PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf

   PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf

-!endif

   PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf

   PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf

   IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf

@@ -250,9 +247,7 @@
 !if $(SECURE_BOOT_ENABLE) == TRUE

   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf

 !endif

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.UEFI_DRIVER]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -267,9 +262,7 @@
   DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf

 !endif

   UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.DXE_DRIVER]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -299,9 +292,7 @@
 !endif

   QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf

   FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.UEFI_APPLICATION]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -313,9 +304,7 @@
 !else

   DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf

 !endif

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.DXE_SMM_DRIVER]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -335,9 +324,7 @@
   DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf

 !endif

   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 [LibraryClasses.common.SMM_CORE]

   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

@@ -353,9 +340,7 @@
 !else

   DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf

 !endif

-!if $(USE_OLD_PCI_HOST) == FALSE

   PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf

-!endif

 

 ################################################################################

 #

@@ -562,14 +547,10 @@
   UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf

   UefiCpuPkg/CpuDxe/CpuDxe.inf

   PcAtChipsetPkg/8254TimerDxe/8254Timer.inf

-!if $(USE_OLD_PCI_HOST) == TRUE

-  OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf

-!else

   MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {

     <LibraryClasses>

       PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf

   }

-!endif

   MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {

     <LibraryClasses>

       PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf
index 9f71c1b..387b808 100644
--- a/OvmfPkg/OvmfPkgX64.fdf
+++ b/OvmfPkg/OvmfPkgX64.fdf
@@ -207,11 +207,7 @@
 INF  UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf

 INF  UefiCpuPkg/CpuDxe/CpuDxe.inf

 INF  PcAtChipsetPkg/8254TimerDxe/8254Timer.inf

-!if $(USE_OLD_PCI_HOST) == TRUE

-INF  OvmfPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf

-!else

 INF  MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf

-!endif

 INF  MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf

 INF  PcAtChipsetPkg/KbcResetDxe/Reset.inf

 INF  MdeModulePkg/Universal/Metronome/Metronome.inf