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

2013-05-05 Thread Bhushan Bharat-R65777
013 6:00 PM > >> To: Bhushan Bharat-R65777 > >> Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott-B07421 > >> Subject: Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub > >> support > >> > >> > >> On 03.05.2013, at 13:08

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

2013-05-03 Thread Alexander Graf
rg; Wood Scott-B07421 >> Subject: Re: [PATCH 7/7 v3] KVM: 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 : >>> >&

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-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott-B07421 > 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-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 : > >> +static void kvmppc_booke_vcpu_load_debug_regs(struct kvm_vcpu >> +*vcpu) { >> +if (!vcpu->arch.debug_active) >> +return; >> + >> +/* Disable

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 : > +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 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(); > >>> + > >>>

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

2013-05-02 Thread Alexander Graf
rg; Wood Scott-B07421 >> Subject: Re: [PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support >> >> >> On 02.05.2013, at 11:46, Bhushan Bharat-R65777 wrote: [...] >>> >>>> >>>>> +#endif >>>>> + mtspr(SPRN_

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-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott-B07421 > 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
Wood Scott-B07421; Bhushan >> Bharat-R65777 >> 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 >>> >>> This patch adds the

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-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott-B07421; Bhushan > Bharat-R65777 > Subject: Re: [PATCH 7/7 v3] KVM: PPC

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 > > 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 vcpu_put()/vcpu_get().

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

2013-04-08 Thread Bharat Bhushan
From: Bharat Bhushan 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 vcpu_put()/vcpu_get(). Also the debug registers are saved restored only if guest is us