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
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 Bharat-R65777 Cc: Alexander Graf; kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Wood Scott- B07421

Re: [RFC PATCH v2 1/6] kvm: add device control API

2013-04-03 Thread Alexander Graf
On 03.04.2013, at 04:17, Paul Mackerras wrote: On Tue, Apr 02, 2013 at 08:19:56PM -0500, Scott Wood wrote: On 04/02/2013 08:02:39 PM, Paul Mackerras wrote: On Mon, Apr 01, 2013 at 05:47:48PM -0500, Scott Wood wrote: +4.79 KVM_CREATE_DEVICE + +Capability: KVM_CAP_DEVICE_CTRL I notice

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

2013-04-03 Thread Alexander Graf
On 03.04.2013, at 15:50, Bhushan Bharat-R65777 wrote: -Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Wednesday, April 03, 2013 3:58 PM To: Bhushan Bharat-R65777 Cc: 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: 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 On

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-03 Thread Gleb Natapov
On Tue, Apr 02, 2013 at 08:57:52PM -0500, Scott Wood wrote: Hook the MPIC code up to the KVM interfaces, add locking, etc. TODO: irqfd support, split up into multiple patches, KVM_IRQ_LINE support Signed-off-by: Scott Wood scottw...@freescale.com --- [skip] diff --git

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-03 Thread Alexander Graf
On 03.04.2013, at 03:57, Scott Wood wrote: Hook the MPIC code up to the KVM interfaces, add locking, etc. TODO: irqfd support, split up into multiple patches, KVM_IRQ_LINE support Signed-off-by: Scott Wood scottw...@freescale.com --- v3: mpic_put - kvmppc_mpic_put [...] +void

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

2013-04-03 Thread Alexander Graf
On 03.04.2013, at 17:18, Bhushan Bharat-R65777 wrote: -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

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

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

2013-04-03 Thread Alexander Graf
On 03.04.2013, at 19:14, Bhushan Bharat-R65777 wrote: -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]

Re: [RFC PATCH v2 1/6] kvm: add device control API

2013-04-03 Thread Scott Wood
On 04/03/2013 08:22:37 AM, Alexander Graf wrote: On 03.04.2013, at 04:17, Paul Mackerras wrote: On Tue, Apr 02, 2013 at 08:19:56PM -0500, Scott Wood wrote: On 04/02/2013 08:02:39 PM, Paul Mackerras wrote: On Mon, Apr 01, 2013 at 05:47:48PM -0500, Scott Wood wrote: +4.79 KVM_CREATE_DEVICE

Re: [RFC PATCH v2 1/6] kvm: add device control API

2013-04-03 Thread Alexander Graf
On 03.04.2013, at 19:37, Scott Wood wrote: On 04/03/2013 08:22:37 AM, Alexander Graf wrote: On 03.04.2013, at 04:17, Paul Mackerras wrote: On Tue, Apr 02, 2013 at 08:19:56PM -0500, Scott Wood wrote: On 04/02/2013 08:02:39 PM, Paul Mackerras wrote: On Mon, Apr 01, 2013 at 05:47:48PM

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: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-03 Thread Scott Wood
On 04/03/2013 10:55:27 AM, Gleb Natapov wrote: On Tue, Apr 02, 2013 at 08:57:52PM -0500, Scott Wood wrote: Hook the MPIC code up to the KVM interfaces, add locking, etc. TODO: irqfd support, split up into multiple patches, KVM_IRQ_LINE support Signed-off-by: Scott Wood

Re: [RFC PATCH v2 1/6] kvm: add device control API

2013-04-03 Thread Scott Wood
On 04/02/2013 09:17:58 PM, Paul Mackerras wrote: On Tue, Apr 02, 2013 at 08:19:56PM -0500, Scott Wood wrote: On 04/02/2013 08:02:39 PM, Paul Mackerras wrote: On Mon, Apr 01, 2013 at 05:47:48PM -0500, Scott Wood wrote: +4.79 KVM_CREATE_DEVICE + +Capability: KVM_CAP_DEVICE_CTRL I notice

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-03 Thread Scott Wood
On 04/03/2013 11:19:42 AM, Alexander Graf wrote: On 03.04.2013, at 03:57, Scott Wood wrote: Hook the MPIC code up to the KVM interfaces, add locking, etc. TODO: irqfd support, split up into multiple patches, KVM_IRQ_LINE support Signed-off-by: Scott Wood scottw...@freescale.com --- v3:

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-03 Thread Alexander Graf
Am 03.04.2013 um 23:38 schrieb Scott Wood scottw...@freescale.com: On 04/03/2013 11:19:42 AM, Alexander Graf wrote: On 03.04.2013, at 03:57, Scott Wood wrote: Hook the MPIC code up to the KVM interfaces, add locking, etc. TODO: irqfd support, split up into multiple patches, KVM_IRQ_LINE

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-03 Thread Scott Wood
On 04/03/2013 04:58:56 PM, Alexander Graf wrote: Am 03.04.2013 um 23:38 schrieb Scott Wood scottw...@freescale.com: On 04/03/2013 11:19:42 AM, Alexander Graf wrote: On 03.04.2013, at 03:57, Scott Wood wrote: Hook the MPIC code up to the KVM interfaces, add locking, etc. TODO: irqfd

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-03 Thread Alexander Graf
Am 04.04.2013 um 00:07 schrieb Scott Wood scottw...@freescale.com: On 04/03/2013 04:58:56 PM, Alexander Graf wrote: Am 03.04.2013 um 23:38 schrieb Scott Wood scottw...@freescale.com: On 04/03/2013 11:19:42 AM, Alexander Graf wrote: On 03.04.2013, at 03:57, Scott Wood wrote: Hook the

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-03 Thread Scott Wood
On 04/03/2013 05:12:06 PM, Alexander Graf wrote: Am 04.04.2013 um 00:07 schrieb Scott Wood scottw...@freescale.com: On 04/03/2013 04:58:56 PM, Alexander Graf wrote: Am 03.04.2013 um 23:38 schrieb Scott Wood scottw...@freescale.com: On 04/03/2013 11:19:42 AM, Alexander Graf wrote: On

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-03 Thread Scott Wood
On 04/03/2013 05:07:30 PM, Scott Wood wrote: On 04/03/2013 04:58:56 PM, Alexander Graf wrote: Am 03.04.2013 um 23:38 schrieb Scott Wood scottw...@freescale.com: On 04/03/2013 11:19:42 AM, Alexander Graf wrote: On 03.04.2013, at 03:57, Scott Wood wrote: +switch (attr-group) { +

Re: [PATCH 1/9] KVM: PPC: Book3S: Add infrastructure to implement kernel-side RTAS calls

2013-04-03 Thread Paul Mackerras
On Thu, Mar 21, 2013 at 09:52:16AM +0100, Alexander Graf wrote: +/* Platform specific hcalls, used by KVM */ +#define H_RTAS 0xf000 How about you define a different hcall ID for this? Then QEMU would create its rtas entry blob such that KVM-routed RTAS handling goes to