mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-14 09:09:56 +00:00
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>
This commit is contained in:
parent
5467a97d0f
commit
aba3bd7ffe
@ -120,6 +120,7 @@ extern int kvmppc_st(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, b
|
|||||||
extern void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec);
|
extern void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec);
|
||||||
extern void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat,
|
extern void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat,
|
||||||
bool upper, u32 val);
|
bool upper, u32 val);
|
||||||
|
extern void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr);
|
||||||
|
|
||||||
extern u32 kvmppc_trampoline_lowmem;
|
extern u32 kvmppc_trampoline_lowmem;
|
||||||
extern u32 kvmppc_trampoline_enter;
|
extern u32 kvmppc_trampoline_enter;
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
/* #define EXIT_DEBUG_SIMPLE */
|
/* #define EXIT_DEBUG_SIMPLE */
|
||||||
/* #define DEBUG_EXT */
|
/* #define DEBUG_EXT */
|
||||||
|
|
||||||
static void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr);
|
|
||||||
static int kvmppc_handle_ext(struct kvm_vcpu *vcpu, unsigned int exit_nr,
|
static int kvmppc_handle_ext(struct kvm_vcpu *vcpu, unsigned int exit_nr,
|
||||||
ulong msr);
|
ulong msr);
|
||||||
|
|
||||||
@ -598,7 +597,7 @@ static inline int get_fpr_index(int i)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Give up external provider (FPU, Altivec, VSX) */
|
/* Give up external provider (FPU, Altivec, VSX) */
|
||||||
static void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr)
|
void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr)
|
||||||
{
|
{
|
||||||
struct thread_struct *t = ¤t->thread;
|
struct thread_struct *t = ¤t->thread;
|
||||||
u64 *vcpu_fpr = vcpu->arch.fpr;
|
u64 *vcpu_fpr = vcpu->arch.fpr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user