Re: [PATCH v12 08/12] KVM: selftests: Add additional equivalents to libnuma APIs in KVM's numaif.h
From: Ackerley Tng
Date: Thu Oct 09 2025 - 18:34:56 EST
Sean Christopherson <seanjc@xxxxxxxxxx> writes:
> 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
> boilderplate, and to fix a flaw where the two existing wrappers would
Typo in boilderplate!
Reviewed-by: Ackerley Tng <ackerleytng@xxxxxxxxxx>
Tested-by: Ackerley Tng <ackerleytng@xxxxxxxxxx>
> generate multiple symbols if numaif.h were to be included multiple times.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> ---
> tools/testing/selftests/kvm/include/numaif.h | 36 +++++++++++--------
> .../selftests/kvm/x86/xapic_ipi_test.c | 5 ++-
> 2 files changed, 23 insertions(+), 18 deletions(-)
>
>
> [...snip...]
>