aboutsummaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2022-11-17 00:23:49 +0000
committerSean Christopherson <[email protected]>2022-11-16 16:57:59 -0800
commit1cec8bbc1764964de24d19983fbf9fee6ce3c09d (patch)
tree21c147f57f970c305433f33af1759946d34ac835 /tools/testing
parent7812d80c0f89c2b610558e09647736b6632beb08 (diff)
KVM: arm64: selftests: Disable single-step with correct KVM define
Disable single-step by setting debug.control to KVM_GUESTDBG_ENABLE, not to SINGLE_STEP_DISABLE. The latter is an arbitrary test enum that just happens to have the same value as KVM_GUESTDBG_ENABLE, and so effectively disables single-step debug. No functional change intended. Cc: Reiji Watanabe <[email protected]> Fixes: b18e4d4aebdd ("KVM: arm64: selftests: Add a test case for KVM_GUESTDBG_SINGLESTEP") Signed-off-by: Sean Christopherson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Oliver Upton <[email protected]>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/kvm/aarch64/debug-exceptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/aarch64/debug-exceptions.c b/tools/testing/selftests/kvm/aarch64/debug-exceptions.c
index 878c334607e1..0316f225d36a 100644
--- a/tools/testing/selftests/kvm/aarch64/debug-exceptions.c
+++ b/tools/testing/selftests/kvm/aarch64/debug-exceptions.c
@@ -369,7 +369,7 @@ void test_single_step_from_userspace(int test_cnt)
KVM_GUESTDBG_SINGLESTEP;
ss_enable = true;
} else {
- debug.control = SINGLE_STEP_DISABLE;
+ debug.control = KVM_GUESTDBG_ENABLE;
ss_enable = false;
}