qemu-e2k/target-ppc
Bharata B Rao 5ec83c73e5 target-ppc: Force CPU threads count to be a power of 2
PowerPC kernel expects the number of SMT threads in a core to be a power
of 2. Since QEMU doesn't enforce this, it leads to an early guest kernel
crash if invalid threads count is specified.

Prevent this crash and make it a graceful exit from QEMU itself by
validating the user-supplied threads count.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-03-20 02:39:33 +01:00
..
arch_dump.c target-ppc: Add missing 'static' and 'const' attributes 2014-03-19 18:35:52 +01:00
cpu-models.c target-ppc: remove powerpc 970gx 2014-03-05 03:06:23 +01:00
cpu-models.h target-ppc: remove powerpc 970gx 2014-03-05 03:06:23 +01:00
cpu-qom.h target-ppc: Use PowerPCCPU in PowerPCCPUClass::handle_mmu_fault hook 2014-03-13 19:20:48 +01:00
cpu.h target-ppc: Reset SPRs on CPU reset 2014-03-20 02:39:33 +01:00
excp_helper.c cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
fpu_helper.c cpu: Move exception_index field from CPU_COMMON to CPUState 2014-03-13 19:20:46 +01:00
gdbstub.c cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
helper_regs.h cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
helper.h target-ppc: Altivec 2.07: Vector Permute and Exclusive OR 2014-03-05 03:07:00 +01:00
int_helper.c target-ppc: Add missing 'static' and 'const' attributes 2014-03-19 18:35:52 +01:00
kvm_ppc.c PPC: KVM: Compile fix for qemu_notify_event 2013-09-02 10:06:42 +02:00
kvm_ppc.h target-ppc: add PowerPCCPU::cpu_dt_id 2014-03-05 03:07:03 +01:00
kvm-stub.c kvm/openpic: in-kernel mpic support 2013-07-01 01:11:14 +02:00
kvm.c exec: Change cpu_abort() argument to CPUState 2014-03-13 19:52:28 +01:00
machine.c target-ppc: Add missing 'static' and 'const' attributes 2014-03-19 18:35:52 +01:00
Makefile.objs target-ppc: dump-guest-memory support 2013-10-25 23:25:48 +02:00
mem_helper.c target-ppc: Little Endian Correction to Load/Store Vector Element 2013-10-25 23:25:45 +02:00
mfrom_table_gen.c
mfrom_table.c
misc_helper.c cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
mmu_helper.c cputlb: Change tlb_set_page() argument to CPUState 2014-03-13 19:52:47 +01:00
mmu-hash32.c cputlb: Change tlb_set_page() argument to CPUState 2014-03-13 19:52:47 +01: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 cputlb: Change tlb_set_page() argument to CPUState 2014-03-13 19:52:47 +01:00
mmu-hash64.h target-ppc: Use PowerPCCPU in PowerPCCPUClass::handle_mmu_fault hook 2014-03-13 19:20:48 +01:00
STATUS target-ppc: remove powerpc 970gx 2014-03-05 03:06:23 +01:00
timebase_helper.c
translate_init.c target-ppc: Force CPU threads count to be a power of 2 2014-03-20 02:39:33 +01:00
translate.c cpu: Move breakpoints field from CPU_COMMON to CPUState 2014-03-13 19:20:47 +01:00
user_only_helper.c cpu: Move exception_index field from CPU_COMMON to CPUState 2014-03-13 19:20:46 +01:00