KVM: ppc: Refactor powerpc.c to relocate 440-specific code
authorHollis Blanchard <hollisb@us.ibm.com>
Wed, 5 Nov 2008 15:36:14 +0000 (09:36 -0600)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:52:21 +0000 (16:52 +0200)
commit9dd921cfea734409a931ccc6eafd7f09850311e9
tree84bd4c0fe65cb866dd78882c90e54df5f7d17313
parentd9fbd03d240380826c0ec16f927242be24ff6265
KVM: ppc: Refactor powerpc.c to relocate 440-specific code

This introduces a set of core-provided hooks. For 440, some of these are
implemented by booke.c, with the rest in (the new) 44x.c.

Note that these hooks are link-time, not run-time. Since it is not possible to
build a single kernel for both e500 and 440 (for example), using function
pointers would only add overhead.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/44x.c [new file with mode: 0644]
arch/powerpc/kvm/44x_tlb.h
arch/powerpc/kvm/Kconfig
arch/powerpc/kvm/Makefile
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/emulate.c
arch/powerpc/kvm/powerpc.c