]> Git Repo - qemu.git/commit
target-ppc: Force CPU threads count to be a power of 2
authorBharata B Rao <[email protected]>
Wed, 5 Mar 2014 08:32:36 +0000 (14:02 +0530)
committerAndreas Färber <[email protected]>
Thu, 20 Mar 2014 01:39:33 +0000 (02:39 +0100)
commit5ec83c73e5ece590538878b24dfcb422904533e0
tree256572056d362bd5cc2a36526972167b4ef2c3f4
parenta80172a4762465a40f6b59d10d64360bd272b700
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 <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Stewart Smith <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
target-ppc/translate_init.c
This page took 0.025117 seconds and 4 git commands to generate.