]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Start at iteration 0 instead of -1
authorDavid Matlack <dmatlack@google.com>
Thu, 11 Nov 2021 00:12:54 +0000 (00:12 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Nov 2021 12:43:27 +0000 (07:43 -0500)
commita1fac603e46130560fa4442b57e87e4ca320ed02
tree628d9653bc322f2db33d3ff638a8f0bc0b159b86
parent0931a64d28aae2a4573f2b0c63baf284150f3d61
KVM: selftests: Start at iteration 0 instead of -1

Start at iteration 0 instead of -1 to avoid having to initialize
vcpu_last_completed_iteration when setting up vCPU threads. This
simplifies the next commit where we move vCPU thread initialization
out to a common helper.

No functional change intended.

Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20211111001257.1446428-2-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/access_tracking_perf_test.c