f6a4f10ae6
- Rebase to edk2-stable202305 tag [RHEL-585] - Resolves: RHEL-585 ([rhel-9.3] rebase EDK2 to edk2-stable202305) - Resolves: bz#2203094 (Add more than 17 pcie-root-ports, display Out Of Resource) - Resolves: bz#2055123 ([Q35] Failed to hot-plug a device whose membar > 2M into the vm)
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From 218d3b32592bffe5ec7317c4838d29e92b4b86f0 Mon Sep 17 00:00:00 2001
|
|
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
Date: Thu, 2 Mar 2023 12:01:36 +0100
|
|
Subject: OvmfPkg: disable dynamic mmio window (rhel only)
|
|
|
|
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
---
|
|
OvmfPkg/Library/PlatformInitLib/MemDetect.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/OvmfPkg/Library/PlatformInitLib/MemDetect.c b/OvmfPkg/Library/PlatformInitLib/MemDetect.c
|
|
index acf90b4e93..86700fc028 100644
|
|
--- a/OvmfPkg/Library/PlatformInitLib/MemDetect.c
|
|
+++ b/OvmfPkg/Library/PlatformInitLib/MemDetect.c
|
|
@@ -679,7 +679,8 @@ PlatformDynamicMmioWindow (
|
|
AddrSpace = LShiftU64 (1, PlatformInfoHob->PhysMemAddressWidth);
|
|
MmioSpace = LShiftU64 (1, PlatformInfoHob->PhysMemAddressWidth - 3);
|
|
|
|
- if ((PlatformInfoHob->PcdPciMmio64Size < MmioSpace) &&
|
|
+ if (FALSE /* disable for RHEL-9.2, libvirt is not ready yet */ &&
|
|
+ (PlatformInfoHob->PcdPciMmio64Size < MmioSpace) &&
|
|
(PlatformInfoHob->PcdPciMmio64Base + MmioSpace < AddrSpace))
|
|
{
|
|
DEBUG ((DEBUG_INFO, "%a: using dynamic mmio window\n", __func__));
|
|
--
|
|
2.39.3
|
|
|