X64 Reset Vector Code can access the memory range till 4GB using the Linear-Address Translation to a 2-MByte Page, when user wants to use more than 4G using 2M Page it will leads to use more number of Page table entries. using the 1-GByte Page table user can use more than 4G Memory by reducing the page table entries using 1-GByte Page, this patch attached can access memory range till 512GByte. Build Scrips for Reset Vector currently based on Python 2 which is already EOL, needs to modify the build script based on Python 3, update the Binary accordingly.
Created attachment 749 [details] [PATCH] UefiCpuPkg VTF0 X64: Build page tables using 1-GByte Page Granularity
Ray, can you give the comment for the attached patch?
Created attachment 826 [details] [PATCH v3] UefiCpuPkg: VTF0 Linear-Address Translation to a 1-GByte Page till 512GB
Fixed: https://github.com/tianocore/edk2/commit/60d8bb9f28f663e6ca58bc87c042fdd82f5607bd#diff-944e7ea5962cf98982b56128f6165a8f743799d3733c25b3f79cd85c7b115903