]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/Microvm/pcie: mPhysMemAddressWidth tweak
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 2 Jun 2022 08:42:15 +0000 (10:42 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 3 Jun 2022 09:06:44 +0000 (09:06 +0000)
commitbd10d4e20143ec776c748cc1f5ffcd3812492800
tree53570086d5e7f9c66fefac613eef4be16067ef53
parentad3bafa7d5ec61848e9a86929ba7a7c7cbcc8eff
OvmfPkg/Microvm/pcie: mPhysMemAddressWidth tweak

microvm places the 64bit mmio space at the end of the physical address
space.  So mPhysMemAddressWidth must be correct, otherwise the pci host
bridge setup throws an error because it thinks the 64bit mmio window is
not addressable.

On microvm we can simply use standard cpuid to figure the address width
because the host-phys-bits option (-cpu ${name},host-phys-bits=on) is
forced to be enabled.  Side note: For 'pc' and 'q35' this is not the
case for backward compatibility reasons.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
OvmfPkg/Library/PlatformInitLib/MemDetect.c
OvmfPkg/PlatformPei/Platform.c