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

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 : > > >> -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: [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_CTR

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

2013-04-03 Thread Bhushan Bharat-R65777
> -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; kvm-ppc@vger.kernel.org; k...@vger.kernel.org > Subject: Re: [PATC

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: [RFC PATCH v3 1/6] kvm: add device control API

2013-04-03 Thread Alexander Graf
On 03.04.2013, at 03:57, Scott Wood wrote: > Currently, devices that are emulated inside KVM are configured in a > hardcoded manner based on an assumption that any given architecture > only has one way to do it. If there's any need to access device state, > it is done through inflexible one-purp

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: [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 > --- [skip] > diff --git a/include/uapi/linux/kvm.h b/inclu

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 > --- > v3: mpic_put -> kvmppc_mpic_put > > [...] > +void kvmppc_mpic_se

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:

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

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: [P

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

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

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 > >>>

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

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

2013-04-03 Thread Bhushan Bharat-R65777
> -Original Message- > From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf > Of > Alexander Graf > Sent: Wednesday, April 03, 2013 11:26 PM > To: Bhushan Bharat-R65777 > Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Wood Scott-B07421 > Subject: Re: [PATCH 4/

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 > --- [skip]

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

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 > --- > v3: mpic_put -> kvm

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 : > 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 >> > suppor

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 : > 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

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 : > On 04/03/2013 04:58:56 PM, Alexander Graf wrote: >> Am 03.04.2013 um 23:38 schrieb 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

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 : > On 04/03/2013 04:58:56 PM, Alexander Graf wrote: >> Am 03.04.2013 um 23:38 schrieb Scott Wood : >> > On 04/03/2013 11:19:42 AM, Alexander Graf wrote: >> >> On 03.04.2013, at 03:57, Scott Wood wrot

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 : > On 04/03/2013 11:19:42 AM, Alexander Graf wrote: >> On 03.04.2013, at 03:57, Scott Wood wrote: >> > +switch (attr->group) { >> > +case KVM_DEV_MP

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

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

2013-04-03 Thread Gleb Natapov
On Wed, Apr 03, 2013 at 03:58:04PM -0500, Scott Wood wrote: > 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 patch