diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2015-08-06 13:37:24 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2015-09-23 10:51:10 +1000 |
commit | 38b02bd846672f33bc2eabcb9847c4b78069e097 (patch) | |
tree | 22825fbef73cee4a2024b56e976350b7d56edd67 /tests/pcnet-test.c | |
parent | 94649d423e4647fca3bc3e8b2b363d6d2adee9ce (diff) | |
download | qemu-38b02bd846672f33bc2eabcb9847c4b78069e097.zip qemu-38b02bd846672f33bc2eabcb9847c4b78069e097.tar.gz qemu-38b02bd846672f33bc2eabcb9847c4b78069e097.tar.bz2 |
spapr: Use QEMU limit for maximum CPUs number
sPAPR uses hard coded limit of maximum 255 supported CPUs which is
exactly the same as QEMU-wide limit which is MAX_CPUMASK_BITS and also
defined as 255.
This makes use of a global CPU number limit for the "pseries" machine.
In order to anticipate future increase of the MAX_CPUMASK_BITS
(or to help debugging large systems), this also bumps the FDT_MAX_SIZE
limit from 256K to 1M assuming that 1 CPU core needs roughly 512 bytes
in the device tree so the new limit can cover up to 2048 CPU cores.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/pcnet-test.c')
0 files changed, 0 insertions, 0 deletions