Skip to content

KVM: X86: Two fixes for KVM_SET_GUEST_DEBUG, and a selftest

Peter Xu kvm lkml 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: X86: Set RTM for DB_VECTOR too for KVM_EXIT_DEBUGarch/x86/kvm/vmx/vmx.c+1 -10 replies
2/3KVM: X86: Fix single-step with KVM_SET_GUEST_DEBUGarch/x86/kvm/x86.c+1 -10 replies
3/3KVM: selftests: Add KVM_SET_GUEST_DEBUG testtools/testing/selftests/kvm/Makefile tools/testing/selftests/kvm/include/kvm_util.h tools/testing/selftests/kvm/lib/kvm_util.c +1 more+192 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] KVM: X86: Two fixes for KVM_SET_GUEST_DEBUG, and a selftest

The first two patches try to fix two issues I found (I think) with the selftest. The 3rd patch is the test itself. Note, we need below patches to be applied too for the test to work:

KVM: X86: Declare KVM_CAP_SET_GUEST_DEBUG properly
KVM: selftests: Fix build for evmcs.h

Please review, thanks.

Peter Xu (3):
KVM: X86: Set RTM for DB_VECTOR too for KVM_EXIT_DEBUG
KVM: X86: Fix single-step with KVM_SET_GUEST_DEBUG
KVM: selftests: Add KVM_SET_GUEST_DEBUG test

 arch/x86/kvm/vmx/vmx.c                        |   2 +-
 arch/x86/kvm/x86.c                            |   2 +-
 tools/testing/selftests/kvm/Makefile          |   1 +
 .../testing/selftests/kvm/include/kvm_util.h  |   2 +
 tools/testing/selftests/kvm/lib/kvm_util.c    |   9 +
 .../testing/selftests/kvm/x86_64/debug_regs.c | 180 ++++++++++++++++++
 6 files changed, 194 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/x86_64/debug_regs.c
Signature · 1 line
2.26.2