[PATCH] spapr: Add "memop" hypercall

2012-05-21 Thread Benjamin Herrenschmidt
This adds a kvm-specific hypervisor call to the pseries machine which allows to do what amounts to memmove, memcpy and xor over regions of physical memory such as the framebuffer. This is the simplest way to get usable framebuffer speed from SLOF since the framebuffer isn't mapped in the VRMA and

Re: [PATCH v2 1/2] ppc64: Rudimentary Support for extra page sizes on server CPUs

2012-05-21 Thread Alexander Graf
On 15.05.2012, at 06:06, Benjamin Herrenschmidt wrote: > More recent Power server chips (i.e. based on the 64 bit hash MMU) > support more than just the traditional 4k and 16M page sizes. This > can get quite complicated, because which page sizes are supported, > which combinations are supported

Re: [PATCH] spapr: Add "memop" hypercall

2012-05-21 Thread Alexander Graf
On 21.05.2012, at 09:24, Benjamin Herrenschmidt wrote: > This adds a kvm-specific hypervisor call to the pseries machine > which allows to do what amounts to memmove, memcpy and xor over > regions of physical memory such as the framebuffer. > > This is the simplest way to get usable framebuffer

Re: [PATCH] spapr: Add "memop" hypercall

2012-05-21 Thread Benjamin Herrenschmidt
On Mon, 2012-05-21 at 10:38 +0200, Alexander Graf wrote: > On 21.05.2012, at 09:24, Benjamin Herrenschmidt wrote: > > > This adds a kvm-specific hypervisor call to the pseries machine > > which allows to do what amounts to memmove, memcpy and xor over > > regions of physical memory such as the fra

Re: [PATCH] spapr: Add "memop" hypercall

2012-05-21 Thread Alexander Graf
On 21.05.2012, at 10:59, Benjamin Herrenschmidt wrote: > On Mon, 2012-05-21 at 10:38 +0200, Alexander Graf wrote: >> On 21.05.2012, at 09:24, Benjamin Herrenschmidt wrote: >> >>> This adds a kvm-specific hypervisor call to the pseries machine >>> which allows to do what amounts to memmove, memcp

[PATCH v2] KVM: PPC: booke: Added DECAR support

2012-05-21 Thread Bharat Bhushan
Added the decrementer auto-reload support. DECAR is readable on e500v2/e500mc and later cpus. Signed-off-by: Bharat Bhushan --- v2: - DECAR is readable on e500v2/e500mc and later cpus. arch/powerpc/include/asm/kvm_host.h |2 ++ arch/powerpc/kvm/booke.c|5 + arch/powerp

[PATCH v2] KVM: PPC: Not optimizing MSR_CE and MSR_ME with paravirt.

2012-05-21 Thread Bharat Bhushan
If there is pending critical or machine check interrupt then guest would like to capture it when guest enable MSR.CE and MSR_ME respectively. Also as mostly MSR_CE and MSR_ME are updated with rfi/rfci/rfmii which anyway traps so removing the the paravirt optimization for MSR.CE and MSR.ME. Signed-

Re: [PATCH] spapr: Add "memop" hypercall

2012-05-21 Thread Avi Kivity
On 05/21/2012 10:24 AM, Benjamin Herrenschmidt wrote: > This adds a kvm-specific hypervisor call to the pseries machine > which allows to do what amounts to memmove, memcpy and xor over > regions of physical memory such as the framebuffer. > > This is the simplest way to get usable framebuffer spee

Re: [PATCH] spapr: Add "memop" hypercall

2012-05-21 Thread Benjamin Herrenschmidt
On Mon, 2012-05-21 at 12:47 +0300, Avi Kivity wrote: > On 05/21/2012 10:24 AM, Benjamin Herrenschmidt wrote: > > This adds a kvm-specific hypervisor call to the pseries machine > > which allows to do what amounts to memmove, memcpy and xor over > > regions of physical memory such as the framebuffer

Re: [PATCH] spapr: Add "memop" hypercall

2012-05-21 Thread Avi Kivity
On 05/21/2012 01:04 PM, Benjamin Herrenschmidt wrote: > On Mon, 2012-05-21 at 12:47 +0300, Avi Kivity wrote: > > On 05/21/2012 10:24 AM, Benjamin Herrenschmidt wrote: > > > This adds a kvm-specific hypervisor call to the pseries machine > > > which allows to do what amounts to memmove, memcpy and x

Re: [PATCH] spapr: Add "memop" hypercall

2012-05-21 Thread Benjamin Herrenschmidt
On Mon, 2012-05-21 at 13:07 +0300, Avi Kivity wrote: > > Now I'm adding another one, so yes, it's looking like a trend :-) I'll > > look into it, at this stage with only those two, adding some comments in > > the header might be plenty enough. > > Documentation/virtual/kvm/ppc-pv.txt is a nice cen

Magic Page in e500v2

2012-05-21 Thread Aashish Mittal
Hi I'm working on KVM optimizations on Powerpc e500v2 embedded architecture. For my project i'm trying to increase the size of shared region mapped my Magic Page between host and guest for paravirtual support. I was expecting this would possible since we are using a TLB1 entry to map the magic

Re: Magic Page in e500v2

2012-05-21 Thread Alexander Graf
Hi Aashish, On 05/21/2012 01:51 PM, Aashish Mittal wrote: Hi I'm working on KVM optimizations on Powerpc e500v2 embedded architecture. For my project i'm trying to increase the size of shared region mapped my Magic Page between host and guest for paravirtual support. I was expecting this would p

Re: Magic Page in e500v2

2012-05-21 Thread Aashish Mittal
Hi Alex > Hi Aashish, > > On 05/21/2012 01:51 PM, Aashish Mittal wrote: >> Hi >> I'm working on KVM optimizations on Powerpc e500v2 embedded >> architecture. For my >> project i'm trying to increase the size of shared region mapped my Magic >> Page >> between host and guest for paravirtual support

Re: Magic Page in e500v2

2012-05-21 Thread Aashish Mittal
Hi Alex > > Hi Aashish, > > > > On 05/21/2012 01:51 PM, Aashish Mittal wrote: > >> Hi > >> I'm working on KVM optimizations on Powerpc e500v2 embedded > >> architecture. For my > >> project i'm trying to increase the size of shared region mapped my > >> Magic > >> Page > >> between host and guest

Re: [PATCH] spapr: Add "memop" hypercall

2012-05-21 Thread Avi Kivity
On 05/21/2012 02:48 PM, Benjamin Herrenschmidt wrote: > On Mon, 2012-05-21 at 13:07 +0300, Avi Kivity wrote: > > > Now I'm adding another one, so yes, it's looking like a trend :-) I'll > > > look into it, at this stage with only those two, adding some comments in > > > the header might be plenty e

Re: Magic Page in e500v2

2012-05-21 Thread Scott Wood
On 05/21/2012 07:37 AM, Aashish Mittal wrote: > Hi Alex > >> Hi Aashish, >> >> On 05/21/2012 01:51 PM, Aashish Mittal wrote: >>> Hi >>> I'm working on KVM optimizations on Powerpc e500v2 embedded >>> architecture. For my >>> project i'm trying to increase the size of shared region mapped my Magic

Re: [PATCH] spapr: Add "memop" hypercall

2012-05-21 Thread Benjamin Herrenschmidt
On Mon, 2012-05-21 at 16:55 +0300, Avi Kivity wrote: > > Okay. But let's have a spec, even a kvm-private one, and then an > implementation of that spec, instead of an implementation and some > documentation added as an afterthought (or not). > > > It's a bit like if you had private calls between