Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2481771 authored by Paul Mackerras's avatar Paul Mackerras Committed by Alexander Graf
Browse files

KVM: PPC: Book3S PR: Fix compilation without CONFIG_ALTIVEC



Commit 9d1ffdd8 ("KVM: PPC: Book3S PR: Don't corrupt guest state
when kernel uses VMX") added a call to kvmppc_load_up_altivec() that
isn't guarded by CONFIG_ALTIVEC, causing a link failure when building
a kernel without CONFIG_ALTIVEC set.  This adds an #ifdef to fix this.

Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent f3271d4c
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -619,8 +619,10 @@ static void kvmppc_handle_lost_ext(struct kvm_vcpu *vcpu)


	if (lost_ext & MSR_FP)
	if (lost_ext & MSR_FP)
		kvmppc_load_up_fpu();
		kvmppc_load_up_fpu();
#ifdef CONFIG_ALTIVEC
	if (lost_ext & MSR_VEC)
	if (lost_ext & MSR_VEC)
		kvmppc_load_up_altivec();
		kvmppc_load_up_altivec();
#endif
	current->thread.regs->msr |= lost_ext;
	current->thread.regs->msr |= lost_ext;
}
}