diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2024-06-26 14:26:08 +0300 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-31 01:13:44 +0300 |
commit | 2069a63a8e4b190a6992b45060c0dd0d5a5f3c73 (patch) | |
tree | 471a394e49843d29896dc2379b7774bafb484667 /BaseTools/Source/Python/Trim/Trim.py | |
parent | f6092b5e2be20139393a58bf454fb000020a3918 (diff) | |
download | edk2-2069a63a8e4b190a6992b45060c0dd0d5a5f3c73.tar.xz |
OvmfPkg/PlatformInitLib: allow switching to 4-level paging
There are a number of mostly older guests such as RHEL-7 which do not
support 5-level paging. This patch adds support for switching from
5-level paging mode back to 4-level paging mode. This is done in PEI,
after inspecting the address space needed (installed memory and
reservations configured via fw_cfg).
By default small guests (which need less than 1 TB) will use 4-level
paging mode. There is a fw_cfg override though, so it is possible to
force the one or the other this way:
qemu-system-x86_64 -fw_cfg name=opt/org.tianocode/PagingLevel,string=5
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'BaseTools/Source/Python/Trim/Trim.py')
0 files changed, 0 insertions, 0 deletions