[RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-06-25 Thread Mihai Caraman
Hook DO_KVM macro to 64-bit booke in a optimal way similar to 32-bit booke see head_fsl_booke.S file. Extend interrupt handlers' parameter list with interrupt vector numbers to accomodate the macro. Rework Guest Doorbell handler to use the proper GSRRx save/restore registers. Only the bolted versio

Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-04 Thread Alexander Graf
On 25.06.2012, at 14:26, Mihai Caraman wrote: > Hook DO_KVM macro to 64-bit booke in a optimal way similar to 32-bit booke > see head_fsl_booke.S file. Extend interrupt handlers' parameter list with > interrupt vector numbers to accomodate the macro. Rework Guest Doorbell > handler to use the pro

RE: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-04 Thread Caraman Mihai Claudiu-B02008
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Wednesday, July 04, 2012 5:30 PM > To: Caraman Mihai Claudiu-B02008 > Cc: ; KVM list; linuxppc-dev; qemu- > p...@nongnu.org List; Benjamin Herrenschmidt > Subject: Re: [Qemu-ppc] [RFC PATCH 12

Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-04 Thread Alexander Graf
;> p...@nongnu.org List; Benjamin Herrenschmidt >> Subject: Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM >> kernel hooks >> >> >> On 25.06.2012, at 14:26, Mihai Caraman wrote: >> >>> Hook DO_KVM macro to 64-bit booke in a optimal way si

RE: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-04 Thread Caraman Mihai Claudiu-B02008
an Mihai Claudiu-B02008 >>> Cc: ; KVM list; linuxppc-dev; qemu- >>> p...@nongnu.org List; Benjamin Herrenschmidt >>> Subject: Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM >>> kernel hooks >>> >>> >>> On 25.06.2

Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-04 Thread Benjamin Herrenschmidt
On Wed, 2012-07-04 at 16:29 +0200, Alexander Graf wrote: > > +#ifdef CONFIG_KVM_BOOKE_HV > > +#define KVM_BOOKE_HV_MFSPR(reg, spr) \ > > + BEGIN_FTR_SECTION \ > > + mfspr reg, spr; \ >

Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-05 Thread Scott Wood
@nongnu.org >> List; Benjamin Herrenschmidt >> Subject: Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM >> kernel hooks >> >> On 04.07.2012, at 17:27, Caraman Mihai Claudiu-B02008 wrote: >> >>>> -Original Message- >>>&g

RE: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-06 Thread Caraman Mihai Claudiu-B02008
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Thursday, July 05, 2012 1:26 AM > To: Alexander Graf > Cc: Caraman Mihai Claudiu-B02008; ; KVM list; > linuxppc-dev; qemu-...@nongnu.org List > Subject: Re: [Qemu-ppc] [RFC

Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-06 Thread Alexander Graf
VM list; >> linuxppc-dev; qemu-...@nongnu.org List >> Subject: Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM >> kernel hooks >> >> On Wed, 2012-07-04 at 16:29 +0200, Alexander Graf wrote: >> >>

RE: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-07 Thread Caraman Mihai Claudiu-B02008
t;> To: Alexander Graf >>> Cc: Caraman Mihai Claudiu-B02008; ; KVM list; >>> linuxppc-dev; qemu-...@nongnu.org List >>> Subject: Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM >>> kernel hooks >>> >>> You can't but in any

Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-11 Thread Alexander Graf
M list; >> linuxppc-dev; qemu-...@nongnu.org List >> Subject: Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM >> kernel hooks >> >> On 07.07.2012, at 00:33, Caraman Mihai Claudiu-B02008 wrote: >> >>>> -Original Message- >>>>

Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-11 Thread Benjamin Herrenschmidt
On Thu, 2012-07-12 at 00:25 +0200, Alexander Graf wrote: > Or just free up another register early on, like here. If you're going to do that, you want to measure the impact on null syscall performance though. Cheers, Ben. ___ Linuxppc-dev mailing list

Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-11 Thread Alexander Graf
On 12.07.2012, at 00:28, Benjamin Herrenschmidt wrote: > On Thu, 2012-07-12 at 00:25 +0200, Alexander Graf wrote: >> Or just free up another register early on, like here. > > If you're going to do that, you want to measure the impact on null > syscall performance though. That should hold true f

Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-11 Thread Benjamin Herrenschmidt
On Thu, 2012-07-12 at 00:35 +0200, Alexander Graf wrote: > > On Thu, 2012-07-12 at 00:25 +0200, Alexander Graf wrote: > >> Or just free up another register early on, like here. > > > > If you're going to do that, you want to measure the impact on null > > syscall performance though. > > That shou

Re: [Qemu-ppc] [RFC PATCH 12/17] PowerPC: booke64: Add DO_KVM kernel hooks

2012-07-11 Thread Alexander Graf
On 12.07.2012, at 00:43, Benjamin Herrenschmidt wrote: > On Thu, 2012-07-12 at 00:35 +0200, Alexander Graf wrote: >>> On Thu, 2012-07-12 at 00:25 +0200, Alexander Graf wrote: Or just free up another register early on, like here. >>> >>> If you're going to do that, you want to measure the im