target-arm: kvm - add support for HW assisted debug

Enterprise / Virtualization / QEMU - Alex Bennée [linaro.org] - 17 December 2015 07:37 UTC

This adds basic support for HW assisted debug. The ioctl interface to KVM allows us to pass an implementation defined number of break and watch point registers. When KVM_GUESTDBG_USE_HW is specified these debug registers will be installed in place on the world switch into the guest.

The hardware is actually capable of more advanced matching but it is unclear if this expressiveness is available via the gdbstub protocol.

e4482ab target-arm: kvm - add support for HW assisted debug
target-arm/kvm.c | 26 +---
target-arm/kvm32.c | 29 ++++
target-arm/kvm64.c | 361 +++++++++++++++++++++++++++++++++++++++++++++++++-
target-arm/kvm_arm.h | 21 +++
4 files changed, 415 insertions(+), 22 deletions(-)

Upstream: git.qemu.org


  • Share