RE: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-05-03 Thread Bhushan Bharat-R65777
+static void kvmppc_booke_vcpu_load_debug_regs(struct kvm_vcpu +*vcpu) { + if (!vcpu-arch.debug_active) + return; + + /* Disable all debug events and clead pending debug events */ + mtspr(SPRN_DBCR0, 0x0); + kvmppc_clear_dbsr(); + + /* + * Check whether guest still

Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-05-03 Thread Alexander Graf
Am 03.05.2013 um 12:48 schrieb Bhushan Bharat-R65777 r65...@freescale.com: +static void kvmppc_booke_vcpu_load_debug_regs(struct kvm_vcpu +*vcpu) { +if (!vcpu-arch.debug_active) +return; + +/* Disable all debug events and clead pending debug events */ +

Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-05-03 Thread Alexander Graf
On 03.05.2013, at 13:08, Alexander Graf wrote: Am 03.05.2013 um 12:48 schrieb Bhushan Bharat-R65777 r65...@freescale.com: +static void kvmppc_booke_vcpu_load_debug_regs(struct kvm_vcpu +*vcpu) { +if (!vcpu-arch.debug_active) +return; + +/* Disable all debug events

RE: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-05-03 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, May 03, 2013 6:00 PM To: Bhushan Bharat-R65777 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Wood Scott-B07421 Subject: Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support On 03.05.2013

Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-05-03 Thread Alexander Graf
: PPC: Add userspace debug stub support On 03.05.2013, at 13:08, Alexander Graf wrote: Am 03.05.2013 um 12:48 schrieb Bhushan Bharat-R65777 r65...@freescale.com: +static void kvmppc_booke_vcpu_load_debug_regs(struct kvm_vcpu +*vcpu) { +if (!vcpu-arch.debug_active

RE: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-05-02 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, April 26, 2013 4:46 PM To: Bhushan Bharat-R65777 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Wood Scott-B07421; Bhushan Bharat-R65777 Subject: Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub

Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-05-02 Thread Alexander Graf
Subject: Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support On 08.04.2013, at 12:32, Bharat Bhushan wrote: From: Bharat Bhushan bharat.bhus...@freescale.com This patch adds the debug stub support on booke/bookehv. Now QEMU debug stub can use hw breakpoint, watchpoint and software

RE: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-05-02 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Thursday, May 02, 2013 4:35 PM To: Bhushan Bharat-R65777 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Wood Scott-B07421 Subject: Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-05-02 Thread Alexander Graf
] KVM: PPC: Add userspace debug stub support On 02.05.2013, at 11:46, Bhushan Bharat-R65777 wrote: [...] +#endif + mtspr(SPRN_IAC1, vcpu-arch.shadow_dbg_reg.iac[0]); + mtspr(SPRN_IAC2, vcpu-arch.shadow_dbg_reg.iac[1]); +#if CONFIG_PPC_ADV_DEBUG_IACS 2 + mtspr(SPRN_IAC3, vcpu

Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-04-26 Thread Alexander Graf
On 08.04.2013, at 12:32, Bharat Bhushan wrote: From: Bharat Bhushan bharat.bhus...@freescale.com This patch adds the debug stub support on booke/bookehv. Now QEMU debug stub can use hw breakpoint, watchpoint and software breakpoint to debug guest. Debug registers are saved/restored on