summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/sitecustomize.py
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2022-10-04 15:47:25 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-10-07 18:14:05 +0000
commit8f9ef9c9a064839644ceca89df52a3693744a685 (patch)
treef890e165cc8a51b017456a7808a237055180f16f /BaseTools/Source/Python/sitecustomize.py
parent5ff7d712d489a4fba4e8b0f609218e33c1208e52 (diff)
downloadedk2-8f9ef9c9a064839644ceca89df52a3693744a685.zip
edk2-8f9ef9c9a064839644ceca89df52a3693744a685.tar.gz
edk2-8f9ef9c9a064839644ceca89df52a3693744a685.tar.bz2
OvmfPkg/PlatformInitLib: qemu cpuid physbits detection
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>
Diffstat (limited to 'BaseTools/Source/Python/sitecustomize.py')
0 files changed, 0 insertions, 0 deletions