aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-02-19 05:00:39 -0500
committerAvi Kivity <avi@redhat.com>2010-04-25 05:35:12 -0400
commitaba3bd7ffe13fad6c4483b49686ad454a4cb409b (patch)
treec42e287e9988dbeccdaba4e86d98cbe54d801653
parent5467a97d0f0ac99d2db0281ce1762e85afe16da2 (diff)
KVM: PPC: Make ext giveup non-static
We need to call the ext giveup handlers from code outside of book3s.c. So let's make it non-static. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--arch/powerpc/include/asm/kvm_book3s.h1
-rw-r--r--arch/powerpc/kvm/book3s.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/kvm_book3s.h b/arch/powerpc/include/asm/kvm_book3s.h
index 8463976ff9f1..fd432100f6db 100644
--- a/arch/powerpc/include/asm/kvm_book3s.h
+++ b/arch/powerpc/include/asm/kvm_book3s.h
@@ -120,6 +120,7 @@ extern int kvmppc_st(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, b
120extern void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec); 120extern void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec);
121extern void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat, 121extern void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat,
122 bool upper, u32 val); 122 bool upper, u32 val);
123extern void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr);
123 124
124extern u32 kvmppc_trampoline_lowmem; 125extern u32 kvmppc_trampoline_lowmem;
125extern u32 kvmppc_trampoline_enter; 126extern u32 kvmppc_trampoline_enter;
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c
index a9f45197a036..38f242a690f7 100644
--- a/arch/powerpc/kvm/book3s.c
+++ b/arch/powerpc/kvm/book3s.c
@@ -36,7 +36,6 @@
36/* #define EXIT_DEBUG_SIMPLE */ 36/* #define EXIT_DEBUG_SIMPLE */
37/* #define DEBUG_EXT */ 37/* #define DEBUG_EXT */
38 38
39static void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr);
40static int kvmppc_handle_ext(struct kvm_vcpu *vcpu, unsigned int exit_nr, 39static int kvmppc_handle_ext(struct kvm_vcpu *vcpu, unsigned int exit_nr,
41 ulong msr); 40 ulong msr);
42 41
@@ -598,7 +597,7 @@ static inline int get_fpr_index(int i)
598} 597}
599 598
600/* Give up external provider (FPU, Altivec, VSX) */ 599/* Give up external provider (FPU, Altivec, VSX) */
601static void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr) 600void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr)
602{ 601{
603 struct thread_struct *t = &current->thread; 602 struct thread_struct *t = &current->thread;
604 u64 *vcpu_fpr = vcpu->arch.fpr; 603 u64 *vcpu_fpr = vcpu->arch.fpr;