]> www.infradead.org Git - qemu-nvme.git/commit
x86: lpc9: let firmware negotiate 'CPU hotplug with SMI' features
authorIgor Mammedov <imammedo@redhat.com>
Wed, 23 Sep 2020 09:46:40 +0000 (05:46 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Sep 2020 06:15:24 +0000 (02:15 -0400)
commit00dc02d284eab0890936ec47c0b7baba5e3b4e37
tree7b58e18a411cc3cbc3d5058268cb26c374821c80
parent2d69eba5fe52045b2c8b0d04fd3806414352afc1
x86: lpc9: let firmware negotiate 'CPU hotplug with SMI' features

It will allow firmware to notify QEMU that firmware requires SMI
being triggered on CPU hot[un]plug, so that it would be able to account
for hotplugged CPU and relocate it to new SMM base and/or safely remove
CPU on unplug.

Using negotiated features, follow up patches will insert SMI upcall
into AML code, to make sure that firmware processes hotplug before
guest OS would attempt to use new CPU.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20200923094650.1301166-2-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc.c
hw/isa/lpc_ich9.c
include/hw/i386/ich9.h