[PATCH v3] x86/e820: apply user defined memory limit in e820__finish_early_params()
From: Byungchul Park
Date: Fri May 10 2024 - 03:47:39 EST
I might miss something. Please lemme know if I go wrong. Thanks.
Byungchul
Changes from v2
1. Fix a bug using a wrong type, E820_TYPE_RESERVED_KERN so as
to use the correct type, E820_TYPE_RAM when limiting the
memory size.
2. Make the patch more clear. The current version just moves
the place to apply the memory limit, from the phase parsing
boot command to the very end of considering early params of
e820.
Changes from v1
1. before - handle boot_mem_limit assuming the default is U64_MAX.
after - handle boot_mem_limit assuming the default is 0.
--->8---