Re: [RFC PATCH v4 2/3] mm/mempolicy: export memory policy symbols

From: David Hildenbrand
Date: Wed Feb 12 2025 - 05:23:57 EST


On 10.02.25 07:32, Shivank Garg wrote:
Export memory policy related symbols needed by the KVM guest-memfd to
implement NUMA policy support.

These symbols are required to implement per-memory region NUMA policies
for guest memory, allowing VMMs to control guest memory placement across
NUMA nodes.

Probably worth mentioning something like

"guest_memfd wants to implement support for NUMA policies just like shmem already does using the shared policy infrastructure. As guest_memfd currently resides in KVM module code, we have to export the relevant symbols.

In the future, guest_memfd might be moved to core-mm, at which point the symbols no longer would have to be exported. When/if that happens is still unclear."

Acked-by: David Hildenbrand <david@xxxxxxxxxx>


--
Cheers,

David / dhildenb