audk/OvmfPkg/CpuHotplugSmm
Ankur Arora 15e6ae8ea4 OvmfPkg/CpuHotplugSmm: introduce UnplugCpus()
Introduce UnplugCpus() which maps each APIC ID being unplugged
onto the hardware ID of the processor and informs PiSmmCpuDxeSmm
of removal by calling EFI_SMM_CPU_SERVICE_PROTOCOL.RemoveProcessor().

With this change we handle the first phase of unplug where we collect
the CPUs that need to be unplugged and mark them for removal in SMM
data structures.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Aaron Young <aaron.young@oracle.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3132
Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20210312062656.2477515-5-ankur.a.arora@oracle.com>
2021-03-16 13:21:46 +00:00
..
ApicId.h OvmfPkg/CpuHotplugSmm: add function for collecting CPUs with events 2020-03-04 12:22:07 +00:00
CpuHotplug.c OvmfPkg/CpuHotplugSmm: introduce UnplugCpus() 2021-03-16 13:21:46 +00:00
CpuHotplugSmm.inf OvmfPkg/CpuHotplugSmm: introduce First SMI Handler for hot-added CPUs 2020-03-04 12:22:07 +00:00
FirstSmiHandler.nasm OvmfPkg/CpuHotplugSmm: introduce First SMI Handler for hot-added CPUs 2020-03-04 12:22:07 +00:00
FirstSmiHandlerContext.h OvmfPkg/CpuHotplugSmm: introduce First SMI Handler for hot-added CPUs 2020-03-04 12:22:07 +00:00
PostSmmPen.nasm OvmfPkg/CpuHotplugSmm: introduce Post-SMM Pen for hot-added CPUs 2020-03-04 12:22:07 +00:00
QemuCpuhp.c OvmfPkg/CpuHotplugSmm: add Qemu Cpu Status helper 2021-03-16 13:21:46 +00:00
QemuCpuhp.h OvmfPkg/CpuHotplugSmm: add Qemu Cpu Status helper 2021-03-16 13:21:46 +00:00
Smbase.c OvmfPkg/CpuHotplugSmm: fix CPU hotplug race just after SMI broadcast 2020-08-27 18:01:00 +00:00
Smbase.h OvmfPkg/CpuHotplugSmm: introduce First SMI Handler for hot-added CPUs 2020-03-04 12:22:07 +00:00