KVM: PPC: Implement kvmppc_xlate for all targets
authorAlexander Graf <agraf@suse.de>
Fri, 20 Jun 2014 11:52:36 +0000 (13:52 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 28 Jul 2014 14:15:50 +0000 (16:15 +0200)
We have a nice API to find the translated GPAs of a GVA including protection
flags. So far we only use it on Book3S, but there's no reason the same shouldn't
be used on BookE as well.

Implement a kvmppc_xlate() version for BookE and clean it up to make it more
readable in general.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/booke.c

Simple merge
Simple merge
Simple merge