]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: kvm: replace numbered sync points with actions
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Dec 2025 23:44:49 +0000 (00:44 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 10 Jan 2026 06:17:29 +0000 (07:17 +0100)
commita1025dcd377ef92d9a09af03b70ce80be281ee22
treed9bde78956a741eaa773c2119628eea82c74495b
parentb45f721775947a84996deb5c661602254ce25ce6
selftests: kvm: replace numbered sync points with actions

Rework the guest=>host syncs in the AMX test to use named actions instead
of arbitrary, incrementing numbers.  The "stage" of the test has no real
meaning, what matters is what action the test wants the host to perform.
The incrementing numbers are somewhat helpful for triaging failures, but
fully debugging failures almost always requires a much deeper dive into
the test (and KVM).

Using named actions not only makes it easier to extend the test without
having to shift all sync point numbers, it makes the code easier to read.

[Commit message by Sean Christopherson]

Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86/amx_test.c