Re: [edk2-devel] [Patch V4] UefiCpuPkg:Limit PhysicalAddressBits in special case

2024-01-12 Thread Gerd Hoffmann
Hi, > + // > + // 4-level paging supports translating 48-bit linear addresses to 52-bit > physical addresses. > + // Since linear addresses are sign-extended, the linear-address space of > 4-level paging is: > + // [0, 2^47-1] and [0x8000_, 0x_]. > + // So

Re: [edk2-devel] [Patch V4] UefiCpuPkg:Limit PhysicalAddressBits in special case

2024-01-12 Thread duntan
; Gerd Hoffmann Subject: [edk2-devel] [Patch V4] UefiCpuPkg:Limit PhysicalAddressBits in special case When creating smm page table, limit maximum supported physical addresses bits returned by CalculateMaximumSupportAddress() to 47 if 5-Level Paging is disabled. This commit is to avoid issue

[edk2-devel] [Patch V4] UefiCpuPkg:Limit PhysicalAddressBits in special case

2024-01-12 Thread duntan
When creating smm page table, limit maximum supported physical addresses bits returned by CalculateMaximumSupportAddress() to 47 if 5-Level Paging is disabled. This commit is to avoid issue that more than 47-bit physical addresses are requested in smm page table when 5-level paging is disabled.