[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH v10 3/6] target-arm: kvm - support for single step
From: |
Alex Bennée |
Subject: |
[Qemu-arm] [PATCH v10 3/6] target-arm: kvm - support for single step |
Date: |
Tue, 8 Dec 2015 18:32:30 +0000 |
This adds support for single-step. There isn't much to do on the QEMU
side as after we set-up the request for single step via the debug ioctl
it is all handled within the kernel.
The actual setting of the KVM_GUESTDBG_SINGLESTEP flag is already in the
common code. If the kernel doesn't support guest debug the ioctl will
simply error.
Signed-off-by: Alex Bennée <address@hidden>
---
v2
- convert to using HSR_EC
v3
- use internals.h definitions
v10
- fix arm32 build
- remove redundent flag setting (done in main kvm.c)
- more words on fail case
---
target-arm/kvm64.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/target-arm/kvm64.c b/target-arm/kvm64.c
index 3b3929d..5f96cde 100644
--- a/target-arm/kvm64.c
+++ b/target-arm/kvm64.c
@@ -534,6 +534,13 @@ bool kvm_arm_handle_debug(CPUState *cs, struct
kvm_debug_exit_arch *debug_exit)
kvm_cpu_synchronize_state(cs);
switch (hsr_ec) {
+ case EC_SOFTWARESTEP:
+ if (cs->singlestep_enabled) {
+ return true;
+ } else {
+ error_report("Came out of SINGLE STEP when not enabled");
+ }
+ break;
case EC_AA64_BKPT:
if (kvm_find_sw_breakpoint(cs, env->pc)) {
return true;
--
2.6.3
- [Qemu-arm] [PATCH v10 0/6] QEMU support for KVM Guest Debug on arm64, Alex Bennée, 2015/12/08
- [Qemu-arm] [PATCH v10 3/6] target-arm: kvm - support for single step,
Alex Bennée <=
- [Qemu-arm] [PATCH v10 1/6] target-arm: kvm64 - introduce kvm_arm_init_debug(), Alex Bennée, 2015/12/08
- [Qemu-arm] [PATCH v10 5/6] target-arm: kvm - re-inject guest debug exceptions, Alex Bennée, 2015/12/08
- [Qemu-arm] [PATCH v10 2/6] target-arm: kvm - implement software breakpoints, Alex Bennée, 2015/12/08
- [Qemu-arm] [PATCH v10 6/6] tests/guest-debug: introduce basic gdbstub tests, Alex Bennée, 2015/12/08
- [Qemu-arm] [PATCH v10 4/6] target-arm: kvm - add support for HW assisted debug, Alex Bennée, 2015/12/08
- Re: [Qemu-arm] [PATCH v10 0/6] QEMU support for KVM Guest Debug on arm64, Peter Maydell, 2015/12/15