On Sun, May 31, 2026 at 11:33 AM Richard Henderson < [email protected]> wrote:
> On 5/30/26 21:44, Warner Losh wrote: > > + void *p = mmap((void *)addr, size, PROT_NONE, > > + MAP_ANONYMOUS | MAP_PRIVATE | > > + MAP_NORESERVE | MAP_FIXED_NOREPLACE, -1, 0); > > > > > > + void *p = mmap((void *)addr, size, PROT_NONE, > > + MAP_ANON | MAP_PRIVATE | MAP_FIXED | MAP_EXCL, -1, > 0); > > > > is what I had in my port. ANON and ANONYMOUS are the same. FreeBSD > doesn't define > > MAP_NORESERVE that I can see, though you could define it above to be 0. > FreeBSD used > > to define this, but it has no meaning in the current kernels. > > We default MAP_NORESERVE to 0 in qemu/osdep.h. > Oh! So we do. I'd looked in a different file that I'd just cleaned up for it... Maybe MAP_FIXED_NOREPLACE could be defined in qemu/osdep.h as well? Warner
