This patchset add support for - software breakpoint - h/w breakpoint - h/w watchpoint
Please find description in individual patch. v5->v6 - Added a new patch to synchronize excp_vectors. - Inject program exception rather than debug exception if guest is not able to handle debug exception. why? detail in respective patch. v4->v5 - cleanup in kvmppc_hw_debug_points_init() - replaced assert in kvm_arch_insert_hw_breakpoint() with return. This allows gdb to through warning "You may have requested too many hardware breakpoints/watchpoints.". Now user can remove extra breakpint and continue. v3->v4 - remove hardcoding for size of instruction in software breakpoint - remove unnecessary assert in debug handler - Corrected assert comparison in insert_breakpoint() v2->v3 - Sharing of code for book3s support (which may come in future) - Initializing number of hw breakpoint/watchpoints from KVM world - Other minor cleanup/fixes v1->v2: - use kvm_get_one_reg() for getting trap instruction - factored out e500 specific code based on exception model POWERPC_EXCP_BOOKE. - Not supporting ppc440 Bharat Bhushan (6): ppc: debug stub: Get trap instruction opcode from KVM ppc: Add interface to inject interrupt to guest ppc: synchronize excp_vectors for injecting exception ppc: Add program exception injection handler ppc: Add software breakpoint support ppc: Add hw breakpoint watchpoint support target-ppc/cpu.h | 1 + target-ppc/kvm.c | 390 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 363 insertions(+), 28 deletions(-) -- 1.9.3