You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
34 lines
1.4 KiB
2 years ago
|
From 5722005baa03df51b9376f05274981524e513d93 Mon Sep 17 00:00:00 2001
|
||
|
From: Gerd Hoffmann <kraxel@redhat.com>
|
||
|
Date: Thu, 2 Mar 2023 12:01:36 +0100
|
||
|
Subject: [PATCH] OvmfPkg: disable dynamic mmio window (rhel only)
|
||
|
|
||
|
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
||
|
RH-MergeRequest: 29: OvmfPkg: disable dynamic mmio window (rhel only)
|
||
|
RH-Bugzilla: 2174605
|
||
|
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
||
|
RH-Commit: [1/1] a1faf2d01025e5f5be7dbc29af1b0b57631d6230 (kraxel/centos-edk2)
|
||
|
|
||
|
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 b8feae4309..55e02417e4 100644
|
||
|
--- a/OvmfPkg/Library/PlatformInitLib/MemDetect.c
|
||
|
+++ b/OvmfPkg/Library/PlatformInitLib/MemDetect.c
|
||
|
@@ -617,7 +617,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.1
|
||
|
|