aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2024-11-13 13:39:58 +0100
committerGerd Hoffmann <kraxel@redhat.com>2024-11-15 12:27:36 +0100
commitd955b373fd69a0bb89450d875864b496fc78da49 (patch)
treec5a8eefcdc16efc46ddf195883f9e5d3358aa4ab
parent2a93c2765b790e14492549cca0e93e7546ae86b6 (diff)
downloadseabios-d955b373fd69a0bb89450d875864b496fc78da49.tar.gz
use guest hint as additional condition
check guest hint as additional condition to enable the 64-bit guest friendly memory layout. With '32' seabios will use traditional pci configuration for best compatibility: all PCI bars will be mapped into the 32-bit PCI MMIO window below 4G if they fit there. With '64' seabios will use the new pci configuration introduced by commit 96a8d130a8c2 ("be less conservative with the 64bit pci io window"): the 64-bit MMIO window will be used unconditionally and PCI bridges will get larger bridge windows. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--src/fw/pciinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c
index b3e359d7..ab28286e 100644
--- a/src/fw/pciinit.c
+++ b/src/fw/pciinit.c
@@ -1202,7 +1202,7 @@ pci_setup(void)
}
}
- if (CPUPhysBits >= 36 && CPULongMode && RamSizeOver4G)
+ if (CPUPhysBits >= 36 && CPULongMode && RamSizeOver4G && GuestHint == 64)
pci_pad_mem64 = 1;
dprintf(1, "=== PCI bus & bridge init ===\n");