@@ -2064,7 +2064,7 @@ static void pc_machine_class_init(ObjectClass *oc, void *data)
mc->possible_cpu_arch_ids = pc_possible_cpu_arch_ids;
mc->default_boot_order = "cad";
mc->hot_add_cpu = pc_hot_add_cpu;
- mc->max_cpus = 255;
+ mc->max_cpus = 288;
mc->reset = pc_machine_reset;
hc->pre_plug = pc_machine_device_pre_plug_cb;
hc->plug = pc_machine_device_plug_cb;
@@ -409,6 +409,7 @@ static void pc_xen_hvm_init(MachineState *machine)
static void pc_i440fx_machine_options(MachineClass *m)
{
+ m->max_cpus = 255;
m->family = "pc_piix";
m->desc = "Standard PC (i440FX + PIIX, 1996)";
m->hot_add_cpu = pc_hot_add_cpu;
@@ -297,6 +297,7 @@ static void pc_q35_2_6_machine_options(MachineClass *m)
{
pc_q35_2_7_machine_options(m);
m->alias = NULL;
+ m->max_cpus = 255;
SET_MACHINE_COMPAT(m, PC_COMPAT_2_6);
}
along with it for machine versions 2.6 and older keep it at 255 and also freeze that limit at 255 for pc_piix4 machine as it won't be getting more than 255 CPUs. Signed-off-by: Igor Mammedov <imammedo@redhat.com> --- hw/i386/pc.c | 2 +- hw/i386/pc_piix.c | 1 + hw/i386/pc_q35.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)