]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/mempolicy: Export memory policy symbols
authorShivank Garg <shivankg@amd.com>
Wed, 27 Aug 2025 17:52:45 +0000 (17:52 +0000)
committerSean Christopherson <seanjc@google.com>
Mon, 20 Oct 2025 13:30:26 +0000 (06:30 -0700)
commitf634f10809ec3d51d9529dfb0f99bc7cec1b5eff
treea8fb6d8e481e75b2c42cb44b266ad1aac4f8c241
parent16a542e22339cd5e73e56a956bbd335c7bd7c08c
mm/mempolicy: Export memory policy symbols

KVM 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@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Shivank Garg <shivankg@amd.com>
Tested-by: Ashish Kalra <ashish.kalra@amd.com>
Link: https://lore.kernel.org/r/20250827175247.83322-6-shivankg@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
mm/mempolicy.c