[PATCH 3/5] KVM: PPC: e500: Eliminate preempt_disable in local_sid_destroy_all

2011-07-07 Thread Scott Wood
The only place it makes sense to call this function already needs to have preemption disabled. Signed-off-by: Scott Wood --- arch/powerpc/kvm/e500_tlb.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c index d59

[PATCH 0/5] KVM: PPC: e500: TLB fixes and MMU API

2011-07-07 Thread Scott Wood
Scott Wood (5): KVM: PPC: e500: tlbsx: fix tlb0 esel KVM: PPC: e500: don't translate gfn to pfn with preemption disabled KVM: PPC: e500: Eliminate preempt_disable in local_sid_destroy_all KVM: PPC: e500: clear up confusion between host and guest entries KVM: PPC: e500: MMU API Documenta

[PATCH v5 5/5] KVM: PPC: e500: MMU API

2011-07-07 Thread Scott Wood
This implements a shared-memory API for giving host userspace access to the guest's TLB. Signed-off-by: Scott Wood --- v5: - respin on top of fixes - remove unused kvm_dump_tlbs() now that there's another way to get the data - clarify in the documentation that even though hardware ignores t

[PATCH 4/5] KVM: PPC: e500: clear up confusion between host and guest entries

2011-07-07 Thread Scott Wood
Split out the portions of tlbe_priv that should be associated with host entries into tlbe_ref. Base victim selection on the number of hardware entries, not guest entries. For TLB1, where one guest entry can be mapped by multiple host entries, we use the host tlbe_ref for tracking page references.

[PATCH 2/5] KVM: PPC: e500: don't translate gfn to pfn with preemption disabled

2011-07-07 Thread Scott Wood
Delay allocation of the shadow pid until we're ready to disable preemption and write the entry. Signed-off-by: Scott Wood --- arch/powerpc/kvm/e500_tlb.c | 36 +++- 1 files changed, 23 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/kvm/e500_tlb.c b/ar

[PATCH 1/5] KVM: PPC: e500: tlbsx: fix tlb0 esel

2011-07-07 Thread Scott Wood
It should contain the way, not the absolute TLB0 index. Signed-off-by: Scott Wood --- arch/powerpc/kvm/e500_tlb.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c index 13c432e..2e99d66 100644 --- a/arch/powerpc/

Re: [PULL 00/17] KVM PPC patch queue 2011-07-04

2011-07-07 Thread Marcelo Tosatti
On Mon, Jul 04, 2011 at 04:12:37PM +0200, Alexander Graf wrote: > Hi Avi, > > Here is my current patch queue for KVM on PPC. It contains support for > hardware accelerated KVM on 970 and POWER7 (no hardware) which is one > of the most interesting features we had added for a while now. > > This ne