mirror of https://github.com/acidanthera/audk.git
Add some qemu specific quirks to PlatformAddressWidthFromCpuid() to figure whenever the PhysBits value returned by CPUID is something real we can work with or not. See the source code comment for details on the logic. Also apply some limits to the address space we are going to use: * Place a hard cap at 47 PhysBits (128 TB) to avoid using addresses which require 5-level paging support. * Cap at 40 PhysBits (1 TB) in case the CPU has no support for gigabyte pages, to avoid excessive amounts of pages being used for page tables. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> |
||
---|---|---|
.. | ||
Cmos.c | ||
IntelTdx.c | ||
IntelTdxNull.c | ||
MemDetect.c | ||
Platform.c | ||
PlatformInitLib.inf |