qemu-e2k/target-ppc
Alexey Kardashevskiy 063cac5326 target-ppc: Fix number of threads per core limit
The number of threads per core is different for POWER6/7/8 CPUs.
Guest systems do not expect to see more threads per core than
a specific CPU supports so we need to limit this number.
This limit is implemented by ppc_get_compat_smt_threads().

However it has a problem as it checks for PCR (Processor Compatibility
Register) mask, 2.05 means 2 threads per core, 2.06 - 4 threads.
For POWER8 one would expect PCR_COMPAT_2_07 bit set and
ppc_get_compat_smt_threads() checking for it to return 8 threads
per core. But the latest PowerISA spec now is 2.07 and there is
no 2.07 compatibility mode defined, QEMU does not define it either
(will be in PowerISA 2.08).

Instead of relying on a PCR mask, this uses kvmppc_smt_threads()
which returns the maximum supported threads number for KVM or
1 for TCG.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
2014-07-15 16:11:58 +02:00
..
arch_dump.c target-ppc: Set the correct endianness in ELF dump header 2014-06-16 13:24:36 +02:00
cpu-models.c target-ppc: Remove POWER7+ and POWER8E families 2014-07-08 12:10:36 +02:00
cpu-models.h target-ppc: Add pvr_match() callback 2014-07-08 12:10:36 +02:00
cpu-qom.h target-ppc: Add pvr_match() callback 2014-07-08 12:10:36 +02:00
cpu.h target-ppc: enable virtio endian ambivalent support 2014-06-29 19:39:43 +03:00
dfp_helper.c target-ppc: Fix compiler warning 2014-06-24 20:01:24 +04:00
excp_helper.c spapr_hcall: Add address-translation-mode-on-interrupt resource in H_SET_MODE 2014-06-16 13:24:45 +02:00
fpu_helper.c powerpc: use float64 for frsqrte 2014-06-16 13:24:46 +02:00
gdbstub.c target-ppc: Fix gdbstub for ppc64le-linux-user 2014-07-08 12:10:36 +02:00
helper_regs.h PPC: Only enter MSR_POW when no interrupts pending 2014-04-08 11:20:05 +02:00
helper.h target-ppc: Add POWER8's TM SPRs 2014-06-16 13:24:45 +02:00
int_helper.c target-ppc: Refactor AES Instructions 2014-06-16 13:24:33 +02:00
kvm_ppc.c
kvm_ppc.h spapr_iommu: Make in-kernel TCE table optional 2014-06-27 13:48:23 +02:00
kvm-stub.c
kvm.c spapr_iommu: Make in-kernel TCE table optional 2014-06-27 13:48:23 +02:00
machine.c KVM: target-ppc: Enable TM state migration 2014-06-16 13:24:45 +02:00
Makefile.objs target-ppc: Introduce DFP Helper Utilities 2014-06-16 13:24:29 +02:00
mem_helper.c target-ppc: Allow little-endian user mode. 2014-06-16 13:24:40 +02:00
mfrom_table_gen.c
mfrom_table.c
misc_helper.c target-ppc: Add POWER8's TM SPRs 2014-06-16 13:24:45 +02:00
mmu_helper.c PPC: Fix booke206 TLB with phys addrs > 32bit 2014-07-08 12:10:36 +02:00
mmu-hash32.c tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
mmu-hash32.h target-ppc: Use PowerPCCPU in PowerPCCPUClass::handle_mmu_fault hook 2014-03-13 19:20:48 +01:00
mmu-hash64.c tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
mmu-hash64.h target-ppc: Use PowerPCCPU in PowerPCCPUClass::handle_mmu_fault hook 2014-03-13 19:20:48 +01:00
STATUS
timebase_helper.c tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
translate_init.c target-ppc: Fix number of threads per core limit 2014-07-15 16:11:58 +02:00
translate.c target-ppc: Remove unused gen_qemu_ld8s() 2014-06-27 13:48:23 +02:00
user_only_helper.c