diff options
author | Oliver Upton <[email protected]> | 2022-11-18 21:15:02 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-11-29 17:29:42 +0000 |
commit | 9ec1eb1bcceec735fb3c9255cdcdbcc2acf860a0 (patch) | |
tree | 6011308502d567425f9b12b0556a1fec1edf20f0 /lib/mpi/mpi-sub-ui.c | |
parent | 30a0b95b1335e12efef89dd78518ed3e4a71a763 (diff) |
KVM: selftests: Have perf_test_util signal when to stop vCPUs
Signal that a test run is complete through perf_test_args instead of
having tests open code a similar solution. Ensure that the field resets
to false at the beginning of a test run as the structure is reused
between test runs, eliminating a couple of bugs:
access_tracking_perf_test hangs indefinitely on a subsequent test run,
as 'done' remains true. The bug doesn't amount to much right now, as x86
supports a single guest mode. However, this is a precondition of
enabling the test for other architectures with >1 guest mode, like
arm64.
memslot_modification_stress_test has the exact opposite problem, where
subsequent test runs complete immediately as 'run_vcpus' remains false.
Co-developed-by: Sean Christopherson <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
[oliver: added commit message, preserve spin_wait_for_next_iteration()]
Signed-off-by: Oliver Upton <[email protected]>
Reviewed-by: Gavin Shan <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions