]> 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)
commit94532b5aab81a575c957c37e64878c27afbe41ed
treead14463068b7cee40cd557333a1202d8dd031ea2
parentc02e5d7b17ef589b7388dcc10d8e6b0bce997ce1
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