diff options
| author | Bharata B Rao | 2014-03-05 09:32:36 +0100 |
|---|---|---|
| committer | Andreas Färber | 2014-03-20 02:39:33 +0100 |
| commit | 5ec83c73e5ece590538878b24dfcb422904533e0 (patch) | |
| tree | 256572056d362bd5cc2a36526972167b4ef2c3f4 /include | |
| parent | target-ppc: Fix overallocation of opcode tables (diff) | |
| download | qemu-5ec83c73e5ece590538878b24dfcb422904533e0.tar.gz qemu-5ec83c73e5ece590538878b24dfcb422904533e0.tar.xz qemu-5ec83c73e5ece590538878b24dfcb422904533e0.zip | |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
