Re: [PATCH v3 1/8] memblock: Introduce MEMBLOCK_PTEMAP

From: Mike Rapoport

Date: Sun Nov 15 2026 - 14:14:41 EST


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@xxxxxxxxxx>

Acked-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

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

--
Sincerely yours,
Mike.