RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Tuesday, April 02, 2013 11:30 PM To: Bhushan Bharat-R65777 Cc: Alexander Graf; kvm-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott- B07421 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 04/02/2013

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Alexander Graf
: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 04/02/2013 09:09:34 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, April 02, 2013 1:57 PM To: Bhushan Bharat-R65777 Cc: kvm-...@vger.kernel.org; kvm

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Bhushan Bharat-R65777
-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott- B07421 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 04/02/2013 09:09:34 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, April 02, 2013 1:57

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Alexander Graf
-...@vger.kernel.org; kvm@vger.kernel.org Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support Am 03.04.2013 um 12:03 schrieb Bhushan Bharat-R65777 r65...@freescale.com: -Original Message- From: Wood Scott-B07421 Sent: Tuesday, April 02, 2013 11:30 PM To: Bhushan

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, April 03, 2013 7:39 PM To: Bhushan Bharat-R65777 Cc: Wood Scott-B07421; kvm-...@vger.kernel.org; kvm@vger.kernel.org Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Alexander Graf
Bharat-R65777 Cc: Wood Scott-B07421; kvm-...@vger.kernel.org; kvm@vger.kernel.org Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support Am 03.04.2013 um 12:03 schrieb Bhushan Bharat-R65777 r65...@freescale.com: -Original Message- From: Wood Scott-B07421 Sent

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, April 02, 2013 9:11 PM To: Bhushan Bharat-R65777 Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott-B07421 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 04/02/2013

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Alexander Graf
-B07421 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 29.03.2013, at 07:04, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Thursday, March 28, 2013 10:06 PM To: Bhushan Bharat-R65777 Cc: kvm

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Bhushan Bharat-R65777
+ dbg_reg =(vcpu-arch.shadow_dbg_reg); + + /* + * On BOOKE (e500v2); Set DBCR1 and DBCR2 to allow debug events + * to occur when MSR.PR is set. + * On BOOKE-HV (e500mc+); MSR.PR = 0 when guest is running. So we + * should clear DBCR1 and DBCR2. +

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Alexander Graf
Am 03.04.2013 um 19:47 schrieb Bhushan Bharat-R65777 r65...@freescale.com: +dbg_reg =(vcpu-arch.shadow_dbg_reg); + +/* + * On BOOKE (e500v2); Set DBCR1 and DBCR2 to allow debug events + * to occur when MSR.PR is set. + * On BOOKE-HV (e500mc+); MSR.PR = 0 when guest is

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Bhushan Bharat-R65777
] KVM: PPC: Add userspace debug stub support Am 03.04.2013 um 19:47 schrieb Bhushan Bharat-R65777 r65...@freescale.com: +dbg_reg =(vcpu-arch.shadow_dbg_reg); + +/* + * On BOOKE (e500v2); Set DBCR1 and DBCR2 to allow debug events + * to occur when MSR.PR is set

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Tuesday, April 02, 2013 11:30 PM To: Bhushan Bharat-R65777 Cc: Alexander Graf; kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Wood Scott- B07421 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 04/02/2013

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Alexander Graf
Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 04/02/2013 09:09:34 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, April 02, 2013 1:57 PM To: Bhushan Bharat-R65777 Cc: kvm-ppc@vger.kernel.org; k

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Alexander Graf
@vger.kernel.org; k...@vger.kernel.org Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support Am 03.04.2013 um 12:03 schrieb Bhushan Bharat-R65777 r65...@freescale.com: -Original Message- From: Wood Scott-B07421 Sent: Tuesday, April 02, 2013 11:30 PM To: Bhushan

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

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

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Alexander Graf
Bharat-R65777 Cc: Wood Scott-B07421; kvm-ppc@vger.kernel.org; k...@vger.kernel.org Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support Am 03.04.2013 um 12:03 schrieb Bhushan Bharat-R65777 r65...@freescale.com: -Original Message- From: Wood Scott-B07421

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, April 02, 2013 9:11 PM To: Bhushan Bharat-R65777 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Wood Scott-B07421 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 04/02

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Alexander Graf
Scott-B07421 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 29.03.2013, at 07:04, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Thursday, March 28, 2013 10:06 PM To: Bhushan Bharat-R65777 Cc: kvm-ppc

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Bhushan Bharat-R65777
+ dbg_reg =(vcpu-arch.shadow_dbg_reg); + + /* + * On BOOKE (e500v2); Set DBCR1 and DBCR2 to allow debug events + * to occur when MSR.PR is set. + * On BOOKE-HV (e500mc+); MSR.PR = 0 when guest is running. So we + * should clear DBCR1 and DBCR2. +

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-03 Thread Alexander Graf
Am 03.04.2013 um 19:47 schrieb Bhushan Bharat-R65777 r65...@freescale.com: +dbg_reg =(vcpu-arch.shadow_dbg_reg); + +/* + * On BOOKE (e500v2); Set DBCR1 and DBCR2 to allow debug events + * to occur when MSR.PR is set. + * On BOOKE-HV (e500mc+); MSR.PR = 0 when guest is

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-02 Thread Alexander Graf
Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 21.03.2013, at 07:25, 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 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-02 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, April 02, 2013 1:57 PM To: Bhushan Bharat-R65777 Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott-B07421 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-02 Thread Alexander Graf
; Bhushan Bharat-R65777 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 21.03.2013, at 07:25, Bharat Bhushan wrote: From: Bharat Bhushanbharat.bhus...@freescale.com This patch adds the debug stub support on booke/bookehv. Now QEMU debug stub can use hw breakpoint

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-02 Thread Scott Wood
@vger.kernel.org; Wood Scott-B07421; Bhushan Bharat-R65777 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support How does the normal debug register switching code work in Linux? Can't we just reuse that? Or rely on it to restore working state when another process gets

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-02 Thread Alexander Graf
Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 21.03.2013, at 07:25, 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

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

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

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-02 Thread Alexander Graf
; Bhushan Bharat-R65777 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support On 21.03.2013, at 07:25, Bharat Bhushan wrote: From: Bharat Bhushanbharat.bhus...@freescale.com This patch adds the debug stub support on booke/bookehv. Now QEMU debug stub can use hw breakpoint

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-04-02 Thread Scott Wood
...@vger.kernel.org; Wood Scott-B07421; Bhushan Bharat-R65777 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support How does the normal debug register switching code work in Linux? Can't we just reuse that? Or rely on it to restore working state when another process gets

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-03-29 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Thursday, March 28, 2013 10:06 PM To: Bhushan Bharat-R65777 Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott-B07421; Bhushan Bharat-R65777 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug

RE: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-03-29 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Thursday, March 28, 2013 10:06 PM To: Bhushan Bharat-R65777 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Wood Scott-B07421; Bhushan Bharat-R65777 Subject: Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-03-28 Thread Alexander Graf
On 21.03.2013, at 07:25, 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

Re: [PATCH 4/4 v2] KVM: PPC: Add userspace debug stub support

2013-03-28 Thread Alexander Graf
On 21.03.2013, at 07:25, 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