]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea2de1e8881c1bcd9f6ffb0e132b47b9db5e4354
tree12f2cbb80c84f960402e3bc4a791e85342bb3182
parentc61ee84ae73c07999206cf953744494c03547532
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