]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: selftests: Add additional equivalents to libnuma APIs in KVM's numaif.h
authorSean Christopherson <seanjc@google.com>
Thu, 16 Oct 2025 17:28:49 +0000 (10:28 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 20 Oct 2025 13:30:43 +0000 (06:30 -0700)
commit2189d78269c5055e6014862cb4d47f0613204856
tree76cc7531af658adbca142c168577a0f8232596bb
parent29dc539d74abd1ec4e509fda29bc821f3586d333
KVM: selftests: Add additional equivalents to libnuma APIs in KVM's numaif.h

Add APIs for all syscalls defined in the kernel's mm/mempolicy.c to match
those that would be provided by linking to libnuma.  Opportunistically use
the recently inroduced KVM_SYSCALL_DEFINE() builders to take care of the
boilerplate, and to fix a flaw where the two existing wrappers would
generate multiple symbols if numaif.h were to be included multiple times.

Reviewed-by: Ackerley Tng <ackerleytng@google.com>
Tested-by: Ackerley Tng <ackerleytng@google.com>
Reviewed-by: Shivank Garg <shivankg@amd.com>
Tested-by: Shivank Garg <shivankg@amd.com>
Link: https://lore.kernel.org/r/20251016172853.52451-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/include/numaif.h
tools/testing/selftests/kvm/x86/xapic_ipi_test.c