[PATCH v3 1/8] memblock: Introduce MEMBLOCK_PTEMAP

Mike Rapoport rppt at kernel.org
Sun Nov 15 11:14:25 PST 2026


On Wed, Nov 11, 2026 at 11:07:31AM +0000, Vincent Donnefort wrote:
> Keeping PTE-level mappings is interesting for arm64 as it allows
> mapping/unmapping pages from the kernel direct map without the risk of
> splitting blocks which, under the break-before-make rule, may trigger
> page-faults the kernel can't handle.
> 
> However, mapping the entire direct map at PTE-level is costly. So
> instead, create a new memblock flag MEMBLOCK_PTEMAP to selectively apply
> a PTE-level mapping.
> 
> Signed-off-by: Vincent Donnefort <vdonnefort at google.com>

Acked-by: Mike Rapoport (Microsoft) <rppt at kernel.org>

> ---
>  include/linux/memblock.h |  9 +++++++++
>  mm/memblock.c            | 39 +++++++++++++++++++++++++++++++++++++--
>  2 files changed, 46 insertions(+), 2 deletions(-)

-- 
Sincerely yours,
Mike.



More information about the linux-arm-kernel mailing list