[edk2-devel] [PATCH 2/2] UefiCpuPkg: Support 5 level page table in ResetVector

Ni, Ray ray.ni at intel.com
Sat Apr 15 05:02:12 UTC 2023


> 
> But with 5-level paging enabled the reset vector should be able to
> fallback to 4-level paging in case the CPU does not support 5-level
> paging.

The fallback makes sense. Otherwise, forcing to use 5L in an incapable CPU
would be a silent failure because IDT and debug log are not enabled at this
early stage.

Later CpuPei/Dxe module could dump the paging status to tell platform owner
that what level is used in this boot.

With that, that means a 4L reset vector can save 4K space by excluding the PML5 page.
But a 5L reset vector could set CR3 to PML4 page if CPU is incapable.

Thanks,
Ray


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#103030): https://edk2.groups.io/g/devel/message/103030
Mute This Topic: https://groups.io/mt/98031298/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/3943202/1813853/130120423/xyzzy [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list