Skip to contentSkip to conversation

hw/i386: add legacy cpu hotplug for pc-lite

PATCH New [email protected] 1 participant 1 message Oct 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/i386: add legacy cpu hotplug for pc-lite

From: Simon Guo <[email protected]>

Currently pc-lite cpu hot plug will leads to error like:
"acpi: device plug request for not supported device type: host-x86_64-cpu"

. However pc_lite_machine_options() didn't setup flag legacy_cpu_hotplug correctly, which will leads to a later mess state, and causes the error above.

This patch corrects this by initialize legacy_cpu_hotplug flag correctly at pc_lite_machine_options().

---
 hw/i386/pc_lite.c | 1 +
 1 file changed, 1 insertion(+)
hw/i386/pc_lite.c +1 -0
index 707f2fd..5fd05b1 100644
@@ -196,6 +196,7 @@ static void pc_lite_machine_options(MachineClass *m)
     m->units_per_default_bus = 1;
     m->no_floppy = 1;
     pcmc->type = PC_MACHINE_TYPE_LITE;
+	pcmc->legacy_cpu_hotplug = true;
 }
 
 static void pc_lite_2_7_machine_options(MachineClass *m)
Signature · 1 line
1.8.3.1