Re: [PATCH v2] Use the POWER8 Micro Partition Prefetch Engine in KVM HV on POWER8

2014-07-08 Thread Stewart Smith
Hi! Thanks for review, much appreciated! Alexander Graf writes: > On 08.07.14 07:06, Stewart Smith wrote: >> @@ -1528,6 +1535,7 @@ static void kvmppc_run_core(struct kvmppc_vcore *vc) >> int i, need_vpa_update; >> int srcu_idx; >> struct kvm_vcpu *vcpus_to_update[threads_per_core]

Re: [PATCH v2] Use the POWER8 Micro Partition Prefetch Engine in KVM HV on POWER8

2014-07-08 Thread Alexander Graf
On 08.07.14 07:06, Stewart Smith wrote: The POWER8 processor has a Micro Partition Prefetch Engine, which is a fancy way of saying "has way to store and load contents of L2 or L2+MRU way of L3 cache". We initiate the storing of the log (list of addresses) using the logmpp instruction and start r

Re: [PULL 3.16 0/6] 3.16 patch queue 2014-07-08

2014-07-08 Thread Alexander Graf
On 08.07.14 12:13, Paolo Bonzini wrote: Il 08/07/2014 12:04, Alexander Graf ha scritto: Hi Paolo / Marcelo, This is my current patch queue for 3.16. Please pull. Alex The following changes since commit 5c02c392cd2320e8d612376d6b72b6548a680923: Merge tag 'virtio-next-for-linus' of git

Re: [PULL 3.16 0/6] 3.16 patch queue 2014-07-08

2014-07-08 Thread Paolo Bonzini
Il 08/07/2014 12:04, Alexander Graf ha scritto: Hi Paolo / Marcelo, This is my current patch queue for 3.16. Please pull. Alex The following changes since commit 5c02c392cd2320e8d612376d6b72b6548a680923: Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/r

[PULL 3.16 0/6] 3.16 patch queue 2014-07-08

2014-07-08 Thread Alexander Graf
Hi Paolo / Marcelo, This is my current patch queue for 3.16. Please pull. Alex The following changes since commit 5c02c392cd2320e8d612376d6b72b6548a680923: Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux (2014-06-11 21:10:33 -0700) are avail

[PULL 1/6] KVM: PPC: Book3E: Unlock mmu_lock when setting caching atttribute

2014-07-08 Thread Alexander Graf
From: Mihai Caraman The patch 08c9a188d0d0fc0f0c5e17d89a06bb59c493110f kvm: powerpc: use caching attributes as per linux pte do not handle properly the error case, letting mmu_lock locked. The lock will further generate a RCU stall from kvmppc_e500_emul_tlbwe() caller. In case of an erro

[PULL 2/6] KVM: PPC: BOOK3S: HV: Use base page size when comparing against slb value

2014-07-08 Thread Alexander Graf
From: "Aneesh Kumar K.V" With guests supporting Multiple page size per segment (MPSS), hpte_page_size returns the actual page size used. Add a new function to return base page size and use that to compare against the the page size calculated from SLB. Without this patch a hpte lookup can fail sin

[PULL 6/6] KVM: PPC: RTAS: Do byte swaps explicitly

2014-07-08 Thread Alexander Graf
In commit b59d9d26b we introduced implicit byte swaps for RTAS calls. Unfortunately we messed up and didn't swizzle return values properly. Also the old approach wasn't "sparse" compatible - we were randomly reading __be32 values on an LE system. Let's just do all of the swizzling explicitly with

[PULL 4/6] KVM: PPC: Assembly functions exported to modules need _GLOBAL_TOC()

2014-07-08 Thread Alexander Graf
From: Anton Blanchard Both kvmppc_hv_entry_trampoline and kvmppc_entry_trampoline are assembly functions that are exported to modules and also require a valid r2. As such we need to use _GLOBAL_TOC so we provide a global entry point that establishes the TOC (r2). Signed-off-by: Anton Blanchard

[PULL 5/6] KVM: PPC: Book3S PR: Fix ABIv2 on LE

2014-07-08 Thread Alexander Graf
We switched to ABIv2 on Little Endian systems now which gets rid of the dotted function names. Branch to the actual functions when we see such a system. Signed-off-by: Alexander Graf --- arch/powerpc/kvm/book3s_interrupts.S | 4 arch/powerpc/kvm/book3s_rmhandlers.S | 4 2 files changed

[PULL 3/6] PPC: Add _GLOBAL_TOC for 32bit

2014-07-08 Thread Alexander Graf
Commit ac5a8ee8 started using _GLOBAL_TOC on ppc32 code. Unfortunately it's only defined for 64bit targets though. Define it for ppc32 as well, fixing the build breakage that commit introduced. Signed-off-by: Alexander Graf --- arch/powerpc/include/asm/ppc_asm.h | 2 ++ 1 file changed, 2 inserti