Skip to content

KVM: x86: Emulated I/O and data breakpoints support

Nadav Amit kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Add DR flag definition for IO watchpointsarch/x86/include/uapi/asm/debugreg.h+1 -00 replies
2/2KVM: x86: Guest watchpoints during emulation.arch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c arch/x86/kvm/x86.c+92 -171 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] KVM: x86: Emulated I/O and data breakpoints support

This patch-set adds data and I/O breakpoints support on emulated instructions to KVM. The first patch just adds a missing definition and all the logic is in the second one.

These patches were implemented as part of a university project, and then cleaned and rebased on the latest KVM by me. I have some concerns about their impact on performance, so it is possible to add a fast-patch for the case all breakpoints are disabled. In addition, these patches do not handle watchpoints that are set by the host debugger.

Nadav Amit (1):
KVM: x86: Guest watchpoints during emulation.

Rami Burstein (1):
KVM: x86: Add DR flag definition for IO watchpoints

 arch/x86/include/asm/kvm_emulate.h   |  3 ++
 arch/x86/include/uapi/asm/debugreg.h |  1 +
 arch/x86/kvm/emulate.c               | 32 ++++++++++++++++
 arch/x86/kvm/x86.c                   | 74 +++++++++++++++++++++++++++---------
 4 files changed, 93 insertions(+), 17 deletions(-)
Signature · 1 line
2.1.4