KVM: PPC: Add helper functions to call real mode loaders
commitd5e528136cda31a32ff7d1eaa8d06220eb443781
authorAlexander Graf <agraf@suse.de>
Fri, 15 Jan 2010 13:49:10 +0000 (15 14:49 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:52 +0000 (1 12:35 -0300)
tree07a90874f9885e26e2089f4cdf473675d01859a9
parentfbad5f1dfdd097ca282ee3a796986e11eb5a971f
KVM: PPC: Add helper functions to call real mode loaders

Linux contains quite some bits of code to load FPU, Altivec and VSX lazily for
a task. It calls those bits in real mode, coming from an interrupt handler.

For KVM we better reuse those, so let's wrap a bit of trampoline magic around
them and then we can call them from normal module code.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s_64_exports.c
arch/powerpc/kvm/book3s_64_rmhandlers.S