KVM: arm64: selftests: Refactor debug-exceptions to make it amenable to new test...
authorReiji Watanabe <reijiw@google.com>
Sat, 17 Sep 2022 01:05:59 +0000 (18:05 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 19 Sep 2022 09:48:53 +0000 (10:48 +0100)
commitff00e737090e0f015059e59829aaa58565b16321
tree3120ef4ce54d5d838c297ae97319fbf4f41d6997
parent370531d1e95be57c62fdf065fb04fd8db7ade8f9
KVM: arm64: selftests: Refactor debug-exceptions to make it amenable to new test cases

Split up the current test into a helper, but leave the debug version
checking in main(), to make it convenient to add a new debug exception
test case in a subsequent patch.

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