x86: acpi: let the firmware handle pending "CPU remove" events in SMM
commit69dea9d6b3d1070ee49498a18c9bee5b60d00619
authorIgor Mammedov <imammedo@redhat.com>
Mon, 7 Dec 2020 14:07:36 +0000 (7 09:07 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 9 Dec 2020 18:04:17 +0000 (9 13:04 -0500)
tree9c5fd008eb7094b2ff4296ccf22b36e593fc2e8c
parent414aa64fda6099eefebb2fb7bd4a0350b34738cc
x86: acpi: let the firmware handle pending "CPU remove" events in SMM

if firmware and QEMU negotiated CPU hotunplug support, generate
_EJ0 method so that it will mark CPU for removal by firmware and
pass control to it by triggering SMI.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20201207140739.3829993-6-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/cpu.c
hw/i386/acpi-build.c
include/hw/acpi/cpu.h