mbox series

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

Message ID 20220120002923.668708-1-seanjc@google.com (mailing list archive)
Headers show
Series x86/debug: More single-step #DB tests | expand

Message

Sean Christopherson Jan. 20, 2022, 12:29 a.m. UTC
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/20220120000624.655815-1-seanjc@google.com

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