public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm/ppc/booke64: fix build breakage from Altivec, and disable e6500
@ 2013-05-10  3:14 Scott Wood
  2013-05-10  9:40 ` Caraman Mihai Claudiu-B02008
  0 siblings, 1 reply; 21+ messages in thread
From: Scott Wood @ 2013-05-10  3:14 UTC (permalink / raw)
  To: Alexander Graf; +Cc: kvm-ppc, kvm, Scott Wood, Mihai Caraman

BookE altivec support brought two new exceptions, but KVM was not
updated, so the build broke for all 64-bit booke with KVM enabled.

Add the new vectors, but there's more than this required to make
Altivec work in the guest, and we can't prevent the guest from turning
on Altivec (which can corrupt host state until state save/restore is
implemented).  Disable e6500 on KVM until this is fixed.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Mihai Caraman <mihai.caraman@freescale.com>
---
 arch/powerpc/kvm/bookehv_interrupts.S |    4 ++++
 arch/powerpc/kvm/e500mc.c             |    2 --
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kvm/bookehv_interrupts.S b/arch/powerpc/kvm/bookehv_interrupts.S
index e8ed7d6..6397613 100644
--- a/arch/powerpc/kvm/bookehv_interrupts.S
+++ b/arch/powerpc/kvm/bookehv_interrupts.S
@@ -309,6 +309,10 @@ kvm_handler BOOKE_INTERRUPT_DOORBELL_CRITICAL, EX_PARAMS(CRIT), \
 	SPRN_CSRR0, SPRN_CSRR1, 0
 kvm_handler BOOKE_INTERRUPT_HV_PRIV, EX_PARAMS(GEN), \
 	SPRN_SRR0, SPRN_SRR1, NEED_EMU
+kvm_handler BOOKE_INTERRUPT_ALTIVEC_UNAVAIL, EX_PARAMS(GEN), \
+	SPRN_SRR0, SPRN_SRR1, 0
+kvm_handler BOOKE_INTERRUPT_ALTIVEC_ASSIST, EX_PARAMS(GEN), \
+	SPRN_SRR0, SPRN_SRR1, 0
 kvm_handler BOOKE_INTERRUPT_HV_SYSCALL, EX_PARAMS(GEN), \
 	SPRN_SRR0, SPRN_SRR1, 0
 kvm_handler BOOKE_INTERRUPT_GUEST_DBELL, EX_PARAMS(GDBELL), \
diff --git a/arch/powerpc/kvm/e500mc.c b/arch/powerpc/kvm/e500mc.c
index 753cc99..19c8379 100644
--- a/arch/powerpc/kvm/e500mc.c
+++ b/arch/powerpc/kvm/e500mc.c
@@ -177,8 +177,6 @@ int kvmppc_core_check_processor_compat(void)
 		r = 0;
 	else if (strcmp(cur_cpu_spec->cpu_name, "e5500") == 0)
 		r = 0;
-	else if (strcmp(cur_cpu_spec->cpu_name, "e6500") == 0)
-		r = 0;
 	else
 		r = -ENOTSUPP;
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2013-05-31  6:11 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-10  3:14 [PATCH] kvm/ppc/booke64: fix build breakage from Altivec, and disable e6500 Scott Wood
2013-05-10  9:40 ` Caraman Mihai Claudiu-B02008
2013-05-10 13:15   ` Alexander Graf
2013-05-10 14:11     ` Caraman Mihai Claudiu-B02008
2013-05-10 14:13       ` Alexander Graf
2013-05-10 16:50         ` Caraman Mihai Claudiu-B02008
2013-05-10 16:50           ` Alexander Graf
2013-05-10 18:03             ` Caraman Mihai Claudiu-B02008
2013-05-10 18:06               ` Scott Wood
2013-05-10 18:22                 ` Alexander Graf
2013-05-10 18:51                   ` Caraman Mihai Claudiu-B02008
2013-05-10 18:59                     ` Alexander Graf
2013-05-10 18:39                 ` Caraman Mihai Claudiu-B02008
2013-05-10 17:42       ` Scott Wood
2013-05-10 18:20         ` Caraman Mihai Claudiu-B02008
2013-05-10 18:23           ` Scott Wood
2013-05-10 19:06             ` Caraman Mihai Claudiu-B02008
2013-05-10 19:15               ` Scott Wood
2013-05-30 21:52                 ` Scott Wood
2013-05-31  6:11                   ` Caraman Mihai Claudiu-B02008
2013-05-10 17:37   ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox