acpi: cphp: Force switch to modern cpu hotplug if APIC ID > 254
commitf9dc175d84802e9a00161bc8d4356b90d6c52125
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Oct 2016 12:05:33 +0000 (19 14:05 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 24 Oct 2016 19:29:14 +0000 (24 17:29 -0200)
treee1ec88db7d1bfbf9d560efda5dbf4d93c341c583
parent5eff33a2a10dd16ee336035f098fadf334cae6b1
acpi: cphp: Force switch to modern cpu hotplug if APIC ID > 254

Switch to modern cpu hotplug at machine startup time if
a cpu present at boot has apic-id in range unsupported
by legacy cpu hotplug interface (i.e. > 254), to avoid
killing QEMU from legacy cpu hotplug code with error:
   "acpi: invalid cpu id: #apic-id#"

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/acpi/cpu_hotplug.c