Skip to content

arm64: debug: add migration tests for debug state

Ricardo Koller kvm kvmarm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm64: debug: add a migration test for breakpoint statearm/Makefile.arm64 arm/debug.c arm/unittests.cfg+223 -00 replies
2/3arm64: debug: add a migration test for watchpoint statearm/debug.c arm/unittests.cfg+176 -00 replies
3/3arm64: debug: add a migration test for single-step statearm/debug.c arm/unittests.cfg+59 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 0/3] arm64: debug: add migration tests for debug state

Add some tests for checking that we can migrate debug state correctly: setup some breakpoints/watchpoints/single-stepping, migrate, and then check that we get the expected exceptions.

The 3 patches in this series add tests for breakpoints, watchpoints, and single-stepping one patch at a time. Each patch adds a migration test and a sanity test (to test that debugging works with no migration).

Note that this is limited to 64-bits and a single vcpu. Also note that some of the code, like reset_debug_state, is borrowed from kvm selftests.

Ricardo Koller (3):
arm64: debug: add a migration test for breakpoint state
arm64: debug: add a migration test for watchpoint state
arm64: debug: add a migration test for single-step state

 arm/Makefile.arm64 |   1 +
 arm/debug.c        | 420 +++++++++++++++++++++++++++++++++++++++++++++
 arm/unittests.cfg  |  37 ++++
 3 files changed, 458 insertions(+)
 create mode 100644 arm/debug.c
Signature · 1 line
2.34.1.173.g76aa8bc2d0-goog