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 --- src/fw/pciinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c index b3e359d7fe62..ab28286e7018 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");