aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-01-15 08:49:10 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:35:52 -0500
commitd5e528136cda31a32ff7d1eaa8d06220eb443781 (patch)
tree07a90874f9885e26e2089f4cdf473675d01859a9 /arch/powerpc/include
parentfbad5f1dfdd097ca282ee3a796986e11eb5a971f (diff)
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>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/kvm_book3s.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_book3s.h b/arch/powerpc/include/asm/kvm_book3s.h
index c7db69f1e779..e1b441cce416 100644
--- a/arch/powerpc/include/asm/kvm_book3s.h
+++ b/arch/powerpc/include/asm/kvm_book3s.h
@@ -124,6 +124,9 @@ extern void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat,
124extern u32 kvmppc_trampoline_lowmem; 124extern u32 kvmppc_trampoline_lowmem;
125extern u32 kvmppc_trampoline_enter; 125extern u32 kvmppc_trampoline_enter;
126extern void kvmppc_rmcall(ulong srr0, ulong srr1); 126extern void kvmppc_rmcall(ulong srr0, ulong srr1);
127extern void kvmppc_load_up_fpu(void);
128extern void kvmppc_load_up_altivec(void);
129extern void kvmppc_load_up_vsx(void);
127 130
128static inline struct kvmppc_vcpu_book3s *to_book3s(struct kvm_vcpu *vcpu) 131static inline struct kvmppc_vcpu_book3s *to_book3s(struct kvm_vcpu *vcpu)
129{ 132{