diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-09-02 17:16:25 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-11 09:35:51 -0700 |
| commit | d5aa06fbfec28a2acbb03bbba361ad9c1a90eb73 (patch) | |
| tree | c7f7646f6b4950ea6b301a46fc36275c8854a026 /tools/testing | |
| parent | 92ed4d5c78fdfcbec3f6b64b194b5202f868ef4c (diff) | |
| download | linux-next-d5aa06fbfec28a2acbb03bbba361ad9c1a90eb73.tar.gz linux-next-d5aa06fbfec28a2acbb03bbba361ad9c1a90eb73.zip | |
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 <shivankg@amd.com>
Link: https://patch.msgid.link/20260903001625.2792367-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing')
| -rw-r--r-- | tools/testing/selftests/kvm/x86/xapic_ipi_test.c | 5 |
1 files 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; } |
