]> Git Repo - qemu.git/commit
spapr: Use QEMU limit for maximum CPUs number
authorAlexey Kardashevskiy <[email protected]>
Thu, 6 Aug 2015 03:37:24 +0000 (13:37 +1000)
committerDavid Gibson <[email protected]>
Wed, 23 Sep 2015 00:51:10 +0000 (10:51 +1000)
commit38b02bd846672f33bc2eabcb9847c4b78069e097
tree22825fbef73cee4a2024b56e976350b7d56edd67
parent94649d423e4647fca3bc3e8b2b363d6d2adee9ce
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 <[email protected]>
Reviewed-by: David Gibson <[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/ppc/spapr.c
This page took 0.025087 seconds and 4 git commands to generate.