pc: Add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs
commit080ac219cc7d9c55adf925c3545b7450055ad625
authorIgor Mammedov <imammedo@redhat.com>
Thu, 20 Oct 2016 14:58:42 +0000 (20 16:58 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 24 Oct 2016 19:29:15 +0000 (24 17:29 -0200)
tree851d8c7b19b6b9c0e5fe2049603eb54ededc2fe4
parent079019f2e319bd1279681b6c1d7dde785d09e69e
pc: Add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

Currently firmware uses 1 byte at 0x5F offset in RTC CMOS
to get number of CPUs present at boot. However 1 byte is
not enough to handle more than 255 CPUs.  So add a new
fw_cfg file that would allow QEMU to tell it.
For compat reasons add file only for machine types that
support more than 255 CPUs.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c
include/hw/i386/pc.h