Thread (26 messages) flat view 26 messages, 5 authors, 2h ago

Re: [PATCH v3 1/6] set_memory: add number of pages parameter to set_direct_map APIs

From: "David Hildenbrand (Arm)" <david@kernel.org>
Date: 2026-09-08 11:56:21
Also in: linux-arm-kernel, linux-mm, linux-riscv, linux-s390, lkml, loongarch

On 9/3/26 11:28, Mike Rapoport (Microsoft) wrote:
When set_direct_map APIs were introduced by the commit d253ca0c3865
("x86/mm/cpa: Add set_direct_map_*() functions") the single page
parameter made sense because the initial callers (vmalloc and
hibernation) had sets of unsorted struct pages that required changes of
their mappings in the direct map.

Since there is an increasing demand for direct map manipulation and it
is also desirable to be able to update larger physically contiguous
mappings, for example an entire large folio, extend set_direct_map APIs
to receive number of pages parameter.

As there is still only a handful of callers, change the existing
functions directly and update all the call sites rather than adding
wrappers for single page case.

Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
---
Acked-by: David Hildenbrand (Arm) <david@kernel.org>

-- 
Cheers,

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help