aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/e500mc.c
diff options
context:
space:
mode:
authorMihai Caraman <mihai.caraman@freescale.com>2014-09-01 05:01:59 -0400
committerAlexander Graf <agraf@suse.de>2014-09-22 04:11:35 -0400
commitd2ca32a2d4f029b90e4b8f67879a9dfead0c85fa (patch)
tree33f51e56a97910a6df7dfe3eff4ed67cbf96cb59 /arch/powerpc/kvm/e500mc.c
parent188e267ce249b491dfbb77d881996dcb5610dc90 (diff)
KVM: PPC: Book3E: Enable e6500 core
Now that AltiVec and hardware thread support is in place enable e6500 core. Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/e500mc.c')
-rw-r--r--arch/powerpc/kvm/e500mc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500mc.c b/arch/powerpc/kvm/e500mc.c
index bf8f99f6676a..2fdc8722e324 100644
--- a/arch/powerpc/kvm/e500mc.c
+++ b/arch/powerpc/kvm/e500mc.c
@@ -180,6 +180,16 @@ int kvmppc_core_check_processor_compat(void)
180 r = 0; 180 r = 0;
181 else if (strcmp(cur_cpu_spec->cpu_name, "e5500") == 0) 181 else if (strcmp(cur_cpu_spec->cpu_name, "e5500") == 0)
182 r = 0; 182 r = 0;
183#ifdef CONFIG_ALTIVEC
184 /*
185 * Since guests have the priviledge to enable AltiVec, we need AltiVec
186 * support in the host to save/restore their context.
187 * Don't use CPU_FTR_ALTIVEC to identify cores with AltiVec unit
188 * because it's cleared in the absence of CONFIG_ALTIVEC!
189 */
190 else if (strcmp(cur_cpu_spec->cpu_name, "e6500") == 0)
191 r = 0;
192#endif
183 else 193 else
184 r = -ENOTSUPP; 194 r = -ENOTSUPP;
185 195