diff options
author | Alexander Graf <agraf@suse.de> | 2010-01-15 08:49:10 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:52 -0500 |
commit | d5e528136cda31a32ff7d1eaa8d06220eb443781 (patch) | |
tree | 07a90874f9885e26e2089f4cdf473675d01859a9 /arch/powerpc/include | |
parent | fbad5f1dfdd097ca282ee3a796986e11eb5a971f (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.h | 3 |
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, | |||
124 | extern u32 kvmppc_trampoline_lowmem; | 124 | extern u32 kvmppc_trampoline_lowmem; |
125 | extern u32 kvmppc_trampoline_enter; | 125 | extern u32 kvmppc_trampoline_enter; |
126 | extern void kvmppc_rmcall(ulong srr0, ulong srr1); | 126 | extern void kvmppc_rmcall(ulong srr0, ulong srr1); |
127 | extern void kvmppc_load_up_fpu(void); | ||
128 | extern void kvmppc_load_up_altivec(void); | ||
129 | extern void kvmppc_load_up_vsx(void); | ||
127 | 130 | ||
128 | static inline struct kvmppc_vcpu_book3s *to_book3s(struct kvm_vcpu *vcpu) | 131 | static inline struct kvmppc_vcpu_book3s *to_book3s(struct kvm_vcpu *vcpu) |
129 | { | 132 | { |