hw/arm/virt: Increase max_cpus to 512
commitb10fbd5363e58a9996ad9af0f8f456d89770b0a9
authorEric Auger <eric.auger@redhat.com>
Fri, 22 Jun 2018 12:28:38 +0000 (22 13:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Jun 2018 12:28:38 +0000 (22 13:28 +0100)
tree674c8be7294f29b62d1a5b427fa4b623027abde4
parent17ec075a651a3f9613429c2d97018fce459ed943
hw/arm/virt: Increase max_cpus to 512

virt 3.0 now allows up to 512 vcpus whereas for earlier machine
types, max_cpus was set to 255 and any attempt to start the
machine with vcpus > 255 was rejected at a very early stage,
in vl.c/main level.

512 is the max supported by KVM. Anyway the actual vcpu count
that can be achieved depends on other parameters such as the
acceleration mode, the vgic version, the host kernel version.
Those are discovered later on.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-id: 1529072910-16156-12-git-send-email-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c