]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0fdea624ee83a507a484f3bf711482122cb49c35
treead14463068b7cee40cd557333a1202d8dd031ea2
parenta7710bdf270ee737670072315a3717d518144b67
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