From d5aa06fbfec28a2acbb03bbba361ad9c1a90eb73 Mon Sep 17 00:00:00 2001 From: Sean Christopherson Date: Wed, 2 Sep 2026 17:16:25 -0700 Subject: [PATCH] KVM: selftests: Skip xAPIC IPI migration test when forced but unsupported Skip the xAPIC IPI migration test instead of failing outright if migration is forced by the user, but is unsupported due to lack of NUMA support. Failing the test is arguably "fine" for opt-in behavior, but in practice doesn't allow running the test in forced-migration mode in any kind of automated test environment. Reviewed-by: Shivank Garg Link: https://patch.msgid.link/20260903001625.2792367-8-seanjc@google.com Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/x86/xapic_ipi_test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kvm/x86/xapic_ipi_test.c b/tools/testing/selftests/kvm/x86/xapic_ipi_test.c index c5b506eb5e7f..2362bf272e80 100644 --- a/tools/testing/selftests/kvm/x86/xapic_ipi_test.c +++ b/tools/testing/selftests/kvm/x86/xapic_ipi_test.c @@ -469,8 +469,9 @@ int main(int argc, char *argv[]) if (kvm_get_numa_memory_nodes(&nodemask) > 1) test_xapic_ipi(run_secs, delay_usecs, true); else - TEST_ASSERT(!force_migrate, - "Did not find at least 2 numa nodes. Can't do migration"); + __TEST_REQUIRE(!force_migrate, + "Need at least 2 NUMA nodes to do migration (nodemask = 0x%lx)", + nodemask); return 0; } -- knotmirror 0.0.1