[PATCH] kvm/book3s: Make kernel emulated H_PUT_TCE available for "PR" KVM

2012-03-12 Thread Benjamin Herrenschmidt
There is nothing in the code for emulating TCE tables in the kernel that prevents it from working on "PR" KVM... other than ifdef's and location of the code. This renames book3s_64_vio_hv.c to book3s_64_vio.c and moves the bulk of the code there. This speeds things up a bit on my G5. --- arch/p

[PATCH 19/38] KVM: PPC: e500mc: add load inst fixup

2012-03-12 Thread Alexander Graf
There's always a chance we're unable to read a guest instruction. The guest could have its TLB mapped execute-, but not readable, something odd happens and our TLB gets flushed. So it's a good idea to be prepared for that case and have a fallback that allows us to fix things up in that case. Add f

Re: [PATCH v2 1/2] powerpc/e500: make load_up_spe a normal fuction

2012-03-12 Thread Alexander Graf
On 07.03.2012, at 18:08, Scott Wood wrote: > On 03/07/2012 07:56 AM, Alexander Graf wrote: >> On 03/01/2012 02:20 AM, Olivia Yin wrote: >>> From: Liu Yu >>> >>> So that we can call it when improving SPE switch like book3e did for >>> fp switch. >> >> Timur / Scott, can you please (n)ack this on

[PATCH] KVM: PPC: Save/Restore CR over vcpu_run

2012-03-12 Thread Alexander Graf
On PPC, CR2-CR4 are nonvolatile, thus have to be saved across function calls. We didn't respect that for any architecture until Paul spotted it in his patch for Book3S-HV. This patch saves/restores CR for all KVM capable PPC hosts. Signed-off-by: Alexander Graf --- v1 -> v2: - optimize booke