Re: [PATCH v8 1/8] mm/memfd: Introduce userspace inaccessible memfd

From: Chao Peng
Date: Fri Oct 21 2022 - 09:52:04 EST


>
> In the context of userspace inaccessible memfd, what would be a
> suggested way to enforce NUMA memory policy for physical memory
> allocation? mbind[1] won't work here in absence of virtual address
> range.

How about set_mempolicy():
https://www.man7.org/linux/man-pages/man2/set_mempolicy.2.html

Chao
>
> [1] https://github.com/chao-p/qemu/blob/privmem-v8/backends/hostmem.c#L382