diff options
author | Dave Hansen <dave.hansen@linux.intel.com> | 2025-04-14 10:32:34 -0700 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2025-04-17 10:39:24 -0700 |
commit | 780f97e309302fdee05b31c91a4dc81ded4c3702 (patch) | |
tree | 4811e308b4c500083768270ac1e7cc18417cadd8 /scripts/lib/kdoc/kdoc_re.py | |
parent | 35c3151a98a6e6f56552cff8dc7d59e8ef7aca50 (diff) |
x86/mm: Always allocate a whole page for PAE PGDs
A hardware PAE PGD is only 32 bytes. A PGD is PAGE_SIZE in the other
paging modes. But for reasons*, the kernel _sometimes_ allocates a
whole page even though it only ever uses 32 bytes.
Make PAE less weird. Just allocate a page like the other paging modes.
This was already being done for PTI (and Xen in the past) and nobody
screamed that loudly about it so it can't be that bad.
* The original reason for PAGE_SIZE allocations for the PAE PGDs was
Xen's need to detect page table writes. But 32-bit PTI forced it too
for reasons I'm unclear about.
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20250414173234.D34F0C3E%40davehans-spike.ostc.intel.com
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions