Skip to content

Commit b2d7ecb

Browse files
tudorlmpe
authored andcommitted
powerpc/kvm/booke: Fix altivec related build break
Add missing "altivec unavailable" interrupt injection helper thus fixing the linker error below: arch/powerpc/kvm/emulate_loadstore.o: In function `kvmppc_check_altivec_disabled': arch/powerpc/kvm/emulate_loadstore.c: undefined reference to `.kvmppc_core_queue_vec_unavail' Fixes: 09f9849 ("KVM: PPC: Book3S: Add MMIO emulation for VMX instructions") Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 6029755 commit b2d7ecb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/powerpc/kvm/booke.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,13 @@ void kvmppc_core_queue_fpunavail(struct kvm_vcpu *vcpu)
305305
kvmppc_booke_queue_irqprio(vcpu, BOOKE_IRQPRIO_FP_UNAVAIL);
306306
}
307307

308+
#ifdef CONFIG_ALTIVEC
309+
void kvmppc_core_queue_vec_unavail(struct kvm_vcpu *vcpu)
310+
{
311+
kvmppc_booke_queue_irqprio(vcpu, BOOKE_IRQPRIO_ALTIVEC_UNAVAIL);
312+
}
313+
#endif
314+
308315
void kvmppc_core_queue_dec(struct kvm_vcpu *vcpu)
309316
{
310317
kvmppc_booke_queue_irqprio(vcpu, BOOKE_IRQPRIO_DECREMENTER);

0 commit comments

Comments
 (0)