]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Set per-iteration variables at the start of each iteration
authorSean Christopherson <seanjc@google.com>
Sat, 11 Jan 2025 00:30:02 +0000 (16:30 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 12 Feb 2025 17:00:56 +0000 (09:00 -0800)
commit2680dcfb34e2c9ac88bff4e01d7bf366aa9976c0
tree11d2553b8420cdc27f3354f6d59392e72efa0c7c
parent2020d3b77a5a40a133e18fb4c870e9fe384405fd
KVM: selftests: Set per-iteration variables at the start of each iteration

Set the per-iteration variables at the start of each iteration instead of
setting them before the loop, and at the end of each iteration.  To ensure
the vCPU doesn't race ahead before the first iteration, simply have the
vCPU worker want for sem_vcpu_cont, which conveniently avoids the need to
special case posting sem_vcpu_cont from the loop.

Link: https://lore.kernel.org/r/20250111003004.1235645-19-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/dirty_log_test.c