target-arm: kvm - implement software breakpoints

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

These don't involve messing around with debug registers, just setting the breakpoint instruction in memory. GDB will not use this mechanism if it can't access the memory to write the breakpoint.

All the kernel has to do is ensure the hypervisor traps the breakpoint exceptions and returns to userspace.

2ecb202 target-arm: kvm - implement software breakpoints
target-arm/kvm.c | 39 ++++++++++++++++-----------
target-arm/kvm32.c | 18 +++++++++++++
target-arm/kvm64.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++
target-arm/kvm_arm.h | 9 +++++++
4 files changed, 123 insertions(+), 15 deletions(-)

Upstream: git.qemu.org


  • Share