Skip to content

KVM: arm64: selftests: Test linked {break,watch}points

Reiji Watanabe kvm kvmarm linux-arm-kernel 2 versions – Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 5 repliesApplied
  2. v19 patches 20 repliesSuperseded

Changes in v2 from the cover letter

- Use FIELD_GET() to extract ID register fields (Oliver, Ricardo)
- Try to make function/variable names more clear (Oliver, Ricardo)
- Make the context number more unlikely to happen by mistake (Ricardo)
- Remove unnecessary GUEST_SYNC for test stage tracking
- Collect Reviewed-bys from Oliver and Ricardo (thanks!)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9KVM: arm64: selftests: Use FIELD_GET() to extract ID register fieldstools/testing/selftests/kvm/aarch64/aarch32_id_regs.c tools/testing/selftests/kvm/aarch64/debug-exceptions.c tools/testing/selftests/kvm/lib/aarch64/processor.c+8 -52 replies
2/9KVM: arm64: selftests: Add write_dbg{b,w}{c,v}r helpers in debug-exceptionstools/testing/selftests/kvm/aarch64/debug-exceptions.c+68 -40 replies
3/9KVM: arm64: selftests: Remove the hard-coded {b,w}pn#0 from debug-exceptionstools/testing/selftests/kvm/aarch64/debug-exceptions.c+32 -181 reply
4/9KVM: arm64: selftests: Add helpers to enable debug exceptionstools/testing/selftests/kvm/aarch64/debug-exceptions.c+13 -120 replies
5/9KVM: arm64: selftests: Stop unnecessary test stage tracking of debug-exceptionstools/testing/selftests/kvm/aarch64/debug-exceptions.c+9 -371 reply
6/9KVM: arm64: selftests: Change debug_version() to take ID_AA64DFR0_EL1tools/testing/selftests/kvm/aarch64/debug-exceptions.c+4 -50 replies
7/9KVM: arm64: selftests: Add a test case for a linked breakpointtools/testing/selftests/kvm/aarch64/debug-exceptions.c+57 -60 replies
8/9KVM: arm64: selftests: Add a test case for a linked watchpointtools/testing/selftests/kvm/aarch64/debug-exceptions.c+35 -00 replies
9/9KVM: arm64: selftests: Test with every breakpoint/watchpointtools/testing/selftests/kvm/aarch64/debug-exceptions.c+42 -120 replies

Reviews trailers per patch

5 of 9 patches have a Reviewed-by or Acked-by.

PatchRicardo KollerOliver Upton
1/9R-b
2/9R-b
3/9R-b R-b
4/9R-b R-b
5/9R-b
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/9] KVM: arm64: selftests: Test linked {break,watch}points

This series adds test cases for linked {break,watch}points to the debug-exceptions test, and expands {break,watch}point tests to use non-zero {break,watch}points (the current test always uses {break,watch}point#0).

Patches 1-6 add some helpers or do minor refactoring for preparation of adding test cases in subsequent patches. Patches 7-8 add test cases for a linked {break,watch}point. Patch 9 expands {break,watch}point test cases to use non-zero {break,watch}points.

The series is based on v6.1-rc1 with the patch [1] applied.

v2:
- Use FIELD_GET() to extract ID register fields (Oliver, Ricardo)
- Try to make function/variable names more clear (Oliver, Ricardo)
- Make the context number more unlikely to happen by mistake (Ricardo)
- Remove unnecessary GUEST_SYNC for test stage tracking
- Collect Reviewed-bys from Oliver and Ricardo (thanks!)

v1: https://lore.kernel.org/all/[email protected]/

[1] https://lore.kernel.org/all/[email protected]/

Reiji Watanabe (9):
KVM: arm64: selftests: Use FIELD_GET() to extract ID register fields
KVM: arm64: selftests: Add write_dbg{b,w}{c,v}r helpers in
debug-exceptions
KVM: arm64: selftests: Remove the hard-coded {b,w}pn#0 from
debug-exceptions
KVM: arm64: selftests: Add helpers to enable debug exceptions
KVM: arm64: selftests: Stop unnecessary test stage tracking of
debug-exceptions
KVM: arm64: selftests: Change debug_version() to take ID_AA64DFR0_EL1
KVM: arm64: selftests: Add a test case for a linked breakpoint
KVM: arm64: selftests: Add a test case for a linked watchpoint
KVM: arm64: selftests: Test with every breakpoint/watchpoint

 .../selftests/kvm/aarch64/aarch32_id_regs.c   |   3 +-
 .../selftests/kvm/aarch64/debug-exceptions.c  | 311 ++++++++++++++----
 .../selftests/kvm/lib/aarch64/processor.c     |   7 +-
 3 files changed, 245 insertions(+), 76 deletions(-)

base-commit: 0ecb0791b2af9bde4389d5ee9ee2a64ddf55ea85

Signature · 1 line
2.38.0.413.g74048e4d9e-goog