audk/OvmfPkg/Library/PlatformInitLib
Gerd Hoffmann 2a0bd3bffc OvmfPkg/PlatformInitLib: q35 mtrr setup fix
Traditional q35 memory layout is 2.75 GB of low memory, leaving room
for the pcie mmconfig at 0xb0000000 and the 32-bit pci mmio window at
0xc0000000.  Because of that OVMF tags the memory range above
0xb0000000 as uncachable via mtrr.

A while ago qemu started to gigabyte-align memory by default (to make
huge pages more effective) and q35 uses only 2G of low memory in that
case.  Which effectively makes the 32-bit pci mmio window start at
0x80000000.

This patch updates the mtrr setup code accordingly.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
2022-09-28 10:46:29 +00:00
..
Cmos.c
IntelTdx.c OvmfPkg: Update PlatformInitLib for Tdx guest 2022-04-02 08:15:12 +00:00
IntelTdxNull.c OvmfPkg: Update PlatformInitLib for Tdx guest 2022-04-02 08:15:12 +00:00
MemDetect.c OvmfPkg/PlatformInitLib: q35 mtrr setup fix 2022-09-28 10:46:29 +00:00
Platform.c OvmfPkg/PlatformInitLib: Add functions for EmuVariableNvStore 2022-09-06 07:21:42 +00:00
PlatformInitLib.inf OvmfPkg/PlatformInitLib: Add functions for EmuVariableNvStore 2022-09-06 07:21:42 +00:00