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

Gerd Hoffmann kraxel at redhat.com
Mon Apr 3 11:55:44 UTC 2023


On Mon, Apr 03, 2023 at 05:28:14PM +0800, Zhiguang Liu wrote:
> Use a macro USE_5_LEVEL_PAGE_TABLE to determine whether to create
> 5 level page table. Whether creating it or not, the highest level
> page table address is fixed.

Can we create the 5level page table unconditionally?

We should have the PML5 table @ fixed at 4G - 12k and the PML4 table
fixed at 4G - 16k then.  Then ideally check processor capabilities and
decide at runtime whenever to use 4level or 5level paging.

thanks,
  Gerd



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




More information about the edk2-devel-archive mailing list