On Fri, Feb 16, 2024 at 1:31 AM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote: > > On Thu, Feb 15, 2024 at 12:50:55PM -0800, Alexei Starovoitov wrote: > > So, since apply_to_page_range() is available to the kernel > > (xen, gpu, kasan, etc) then I see no reason why > > vmap_pages_range() shouldn't be available as well, since: > > In case it wasn't clear before: apply_to_page_range is a bad API to > be exported. We've been working on removing it but it stalled. > Exposing something that allows a module to change arbitrary page table > bits is not a good idea. I never said that that module should do that. > Please take a step back and think of how to expose a vmalloc like > allocation that grows only when used as a proper abstraction. I could > actually think of various other uses for it. "vmalloc like allocation that grows" is not what I'm after. I need 4G+guard region at the start. Please read my earlier email and reply to my questions and api proposals. Replying to half of the sentence, and out of context, is not a productive discussion.