Skip to content

x86/debug: More single-step #DB tests

Sean Christopherson kvm 1 version Applied

Status from this message: Queued with this change, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7bitops: Include stdbool.h and stddef.h as necessarylib/bitops.h+3 -00 replies
2/7x86/debug: Add framework for single-step #DB testsx86/debug.c+115 -530 replies
3/7x86/debug: Test OUT instead of RDMSR for single-step #DB emulation testx86/debug.c+4 -61 reply
4/7x86/debug: Run single-step #DB tests in usermode (and kernel mode)x86/debug.c+23 -60 replies
5/7x86: Overhaul definitions for DR6 and DR7 bitslib/x86/asm/debugreg.h x86/debug.c x86/emulator.c +1 more+97 -970 replies
6/7x86/debug: Add single-step #DB + STI/MOVSS blocking testsx86/debug.c+176 -00 replies
7/7x86/debug: Explicitly write DR6 in the H/W watchpoint + DR6.BS sub-testx86/debug.c+1 -01 reply

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchJim Mattson
1/7
2/7
3/7
4/7
5/7
6/7
7/7R-b

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

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 0/7] x86/debug: More single-step #DB tests

Add single-step #DB + STI/MOVSS blocking regression tests for a related KVM bug[*]. Before adding the test (last patch), overhaul asm/debugreg.h and clean up x86's "debug" test.

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

Sean Christopherson (7):
bitops: Include stdbool.h and stddef.h as necessary x86/debug: Add framework for single-step #DB tests x86/debug: Test OUT instead of RDMSR for single-step #DB emulation
test
x86/debug: Run single-step #DB tests in usermode (and kernel mode)
x86: Overhaul definitions for DR6 and DR7 bits x86/debug: Add single-step #DB + STI/MOVSS blocking tests x86/debug: Explicitly write DR6 in the H/W watchpoint + DR6.BS
sub-test

 lib/bitops.h           |   3 +
 lib/x86/asm/debugreg.h | 125 ++++++--------
 x86/debug.c            | 384 ++++++++++++++++++++++++++++++++++-------
 x86/emulator.c         |  14 +-
 x86/vmx_tests.c        |  27 +--
 5 files changed, 405 insertions(+), 148 deletions(-)

base-commit: 92a6c9b95ab10eba66bff3ff44476ab0c015b276

Signature · 1 line
2.34.1.703.g22d0c6ccf7-goog