[PULL,14/51] KVM: PPC: Book3S PR: Fix compilation without CONFIG_ALTIVEC

Submitted by Alexander Graf on Oct. 31, 2013, 9:17 p.m.


Message ID 1383254316-11243-15-git-send-email-agraf@suse.de
State New
Headers show

Commit Message

Alexander Graf Oct. 31, 2013, 9:17 p.m.
From: Paul Mackerras <paulus@samba.org>

Commit 9d1ffdd8f3 ("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: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
 arch/powerpc/kvm/book3s_pr.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c
index 27db1e6..8d45f18 100644
--- a/arch/powerpc/kvm/book3s_pr.c
+++ b/arch/powerpc/kvm/book3s_pr.c
@@ -619,8 +619,10 @@  static void kvmppc_handle_lost_ext(struct kvm_vcpu *vcpu)
 	if (lost_ext & MSR_FP)
 	if (lost_ext & MSR_VEC)
 	current->thread.regs->msr |= lost_ext;