diff options
author | Mihai Caraman <mihai.caraman@freescale.com> | 2014-09-01 11:01:59 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-09-22 10:11:35 +0200 |
commit | d2ca32a2d4f029b90e4b8f67879a9dfead0c85fa (patch) | |
tree | 33f51e56a97910a6df7dfe3eff4ed67cbf96cb59 /arch/powerpc/kvm | |
parent | KVM: PPC: e500mc: Add support for single threaded vcpus on e6500 core (diff) | |
download | linux-d2ca32a2d4f029b90e4b8f67879a9dfead0c85fa.tar.xz linux-d2ca32a2d4f029b90e4b8f67879a9dfead0c85fa.zip |
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')
-rw-r--r-- | arch/powerpc/kvm/e500mc.c | 10 |
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) r = 0; else if (strcmp(cur_cpu_spec->cpu_name, "e5500") == 0) r = 0; +#ifdef CONFIG_ALTIVEC + /* + * Since guests have the priviledge to enable AltiVec, we need AltiVec + * support in the host to save/restore their context. + * Don't use CPU_FTR_ALTIVEC to identify cores with AltiVec unit + * because it's cleared in the absence of CONFIG_ALTIVEC! + */ + else if (strcmp(cur_cpu_spec->cpu_name, "e6500") == 0) + r = 0; +#endif else r = -ENOTSUPP; |