Blame SOURCES/edk2-OvmfPkg-disable-dynamic-mmio-window-rhel-only.patch

8ff9b3
From 5722005baa03df51b9376f05274981524e513d93 Mon Sep 17 00:00:00 2001
8ff9b3
From: Gerd Hoffmann <kraxel@redhat.com>
8ff9b3
Date: Thu, 2 Mar 2023 12:01:36 +0100
8ff9b3
Subject: [PATCH] OvmfPkg: disable dynamic mmio window (rhel only)
8ff9b3
8ff9b3
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
8ff9b3
RH-MergeRequest: 29: OvmfPkg: disable dynamic mmio window (rhel only)
8ff9b3
RH-Bugzilla: 2174605
8ff9b3
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
8ff9b3
RH-Commit: [1/1] a1faf2d01025e5f5be7dbc29af1b0b57631d6230 (kraxel/centos-edk2)
8ff9b3
8ff9b3
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
8ff9b3
---
8ff9b3
 OvmfPkg/Library/PlatformInitLib/MemDetect.c | 3 ++-
8ff9b3
 1 file changed, 2 insertions(+), 1 deletion(-)
8ff9b3
8ff9b3
diff --git a/OvmfPkg/Library/PlatformInitLib/MemDetect.c b/OvmfPkg/Library/PlatformInitLib/MemDetect.c
8ff9b3
index b8feae4309..55e02417e4 100644
8ff9b3
--- a/OvmfPkg/Library/PlatformInitLib/MemDetect.c
8ff9b3
+++ b/OvmfPkg/Library/PlatformInitLib/MemDetect.c
8ff9b3
@@ -617,7 +617,8 @@ PlatformDynamicMmioWindow (
8ff9b3
   AddrSpace = LShiftU64 (1, PlatformInfoHob->PhysMemAddressWidth);
8ff9b3
   MmioSpace = LShiftU64 (1, PlatformInfoHob->PhysMemAddressWidth - 3);
8ff9b3
 
8ff9b3
-  if ((PlatformInfoHob->PcdPciMmio64Size < MmioSpace) &&
8ff9b3
+  if (FALSE /* disable for RHEL-9.2, libvirt is not ready yet */ &&
8ff9b3
+      (PlatformInfoHob->PcdPciMmio64Size < MmioSpace) &&
8ff9b3
       (PlatformInfoHob->PcdPciMmio64Base + MmioSpace < AddrSpace))
8ff9b3
   {
8ff9b3
     DEBUG ((DEBUG_INFO, "%a: using dynamic mmio window\n", __func__));
8ff9b3
-- 
8ff9b3
2.39.1
8ff9b3