SIGN IN SIGN UP

ring0: clamp address width without LA57

CPUID may report a 57-bit maximum virtual address width while omitting
the LA57 feature required to enable five-level paging. Treat that
combination as a 48-bit address space so ring0 uses addresses that are
canonical under the selected four-level page-table mode.

This prevents initialization from constructing a 57-bit kernel address
layout when CR4.LA57 cannot be enabled.

Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
T
Tianyu Zhou committed
9eb7125e73d5d655de348855fe6f2025373a511b
Parent: 80336ad