kvm/book3s: Make kernel emulated H_PUT_TCE available for "PR" KVM
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 15 Mar 2012 21:58:34 +0000 (21:58 +0000)
committerAlexander Graf <agraf@suse.de>
Sun, 6 May 2012 14:19:11 +0000 (16:19 +0200)
commitf31e65e1170edba4a86bd8cba0318e251d3746d0
tree511cd618867f7335e451d416cb7fc8e6944606ff
parent4444aa5f78eff73a353c8c4784cda2de74dea54b
kvm/book3s: Make kernel emulated H_PUT_TCE available for "PR" KVM

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 and moves the bulk of the code there to a new file called
book3s_64_vio.c.

This speeds things up a bit on my G5.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[agraf: fix for hv kvm, 32bit, whitespace]
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/Makefile
arch/powerpc/kvm/book3s_64_vio.c [new file with mode: 0644]
arch/powerpc/kvm/book3s_64_vio_hv.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/book3s_pr_papr.c
arch/powerpc/kvm/powerpc.c