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)
commit7d15c06f1abfe4b893c6c2c8a306b02210a6a6db
tree7c29513bfb6b32194ea7ac8c1b7c3e0048aacb12
parent63fff5c1e3695ff5c9ad8c198a3b03ca4c0c73a8
KVM: PPC: Implement kvmppc_xlate for all targets

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