selftests: KVM: Test OS lock behavior
authorOliver Upton <oupton@google.com>
Thu, 3 Feb 2022 17:41:59 +0000 (17:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 8 Feb 2022 14:23:41 +0000 (14:23 +0000)
commit05c9324de1695b5e61dceca6d2ef0ab8c0f2f26b
treead14463068b7cee40cd557333a1202d8dd031ea2
parentd134998838ac217a8427c1ddc83cf48888bb3fa3
selftests: KVM: Test OS lock behavior

KVM now correctly handles the OS Lock for its guests. When set, KVM
blocks all debug exceptions originating from the guest. Add test cases
to the debug-exceptions test to assert that software breakpoint,
hardware breakpoint, watchpoint, and single-step exceptions are in fact
blocked.

Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220203174159.2887882-7-oupton@google.com
tools/testing/selftests/kvm/aarch64/debug-exceptions.c