]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: selftests: Add helpers to probe for NUMA support, and multi-node systems
authorShivank Garg <shivankg@amd.com>
Thu, 16 Oct 2025 17:28:51 +0000 (10:28 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 20 Oct 2025 13:30:44 +0000 (06:30 -0700)
commite698e89b3ed1772e543a5ab4c072b9bbdb730948
treeae895b6d66e6a1c1de69fad85d2a8eba0053f5cb
parentfe7baebb99de95f171911d085abcfab1db04a7ed
KVM: selftests: Add helpers to probe for NUMA support, and multi-node systems

Add NUMA helpers to probe for support/availability and to check if the
test is running on a multi-node system.  The APIs will be used to verify
guest_memfd NUMA support.

Signed-off-by: Shivank Garg <shivankg@amd.com>
[sean: land helpers in numaif.h, add comments, tweak names]
Link: https://lore.kernel.org/r/20251016172853.52451-11-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/include/numaif.h