OSDN Git Service

KVM: arm64: selftests: Add a test case for KVM_GUESTDBG_SINGLESTEP
authorReiji Watanabe <reijiw@google.com>
Sat, 17 Sep 2022 01:06:00 +0000 (18:06 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 19 Sep 2022 09:48:53 +0000 (10:48 +0100)
commitb18e4d4aebdddd05810ceb2f73d7f72afcd11b41
tree12f2cbb80c84f960402e3bc4a791e85342bb3182
parentff00e737090e0f015059e59829aaa58565b16321
KVM: arm64: selftests: Add a test case for KVM_GUESTDBG_SINGLESTEP

Add a test case for KVM_GUESTDBG_SINGLESTEP to the debug-exceptions test.
The test enables single-step execution from userspace, and check if the
exit to userspace occurs for each instruction that is stepped.
Set the default number of the test iterations to a number of iterations
sufficient to always reproduce the problem that the previous patch fixes
on an Ampere Altra machine.

Signed-off-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220917010600.532642-5-reijiw@google.com
tools/testing/selftests/kvm/aarch64/debug-exceptions.c