Re: directmap vs highmem usage in gnu mach?

2021-08-25 Thread Samuel Thibault
Richard Braun, le mer. 25 août 2021 17:12:44 +0200, a ecrit: > For practical purposes, sure, but in the long run, there must be > some kind of very clear (preferrably explicit) policy about all that. Yes, sure, I planned to mark the functions as such :) > Personally, I'd do the same as Linux, wit

Re: directmap vs highmem usage in gnu mach?

2021-08-25 Thread Richard Braun
On Wed, Aug 25, 2021 at 04:23:23PM +0200, Samuel Thibault wrote: > Richard Braun, le mer. 25 août 2021 15:59:12 +0200, a ecrit: > > I can't recall exactly, but that's why we write comments, right ? > > See [1]. > > > > Fixing this requires changing all callers to not assume that allocated > > memo

Re: directmap vs highmem usage in gnu mach?

2021-08-25 Thread Samuel Thibault
Richard Braun, le mer. 25 août 2021 15:59:12 +0200, a ecrit: > I can't recall exactly, but that's why we write comments, right ? > See [1]. > > Fixing this requires changing all callers to not assume that allocated > memory can always be directly mapped, in particular some kvtophys calls. Ok, I w

Re: directmap vs highmem usage in gnu mach?

2021-08-25 Thread Richard Braun
On Mon, Aug 23, 2021 at 01:56:52PM +0200, Samuel Thibault wrote: > Do you know if it is on purpose that all vm_page_grab() calls use the > directmem segment, and not the highmem segment? Notably vm_page_fault() > ends up filling the directmem segment first, I even wonder how the > highmem segment

directmap vs highmem usage in gnu mach?

2021-08-23 Thread Samuel Thibault
Hello Richard, Do you know if it is on purpose that all vm_page_grab() calls use the directmem segment, and not the highmem segment? Notably vm_page_fault() ends up filling the directmem segment first, I even wonder how the highmem segment ends up getting filled :) Is that perhaps to rather try