OvmfPkg/CpuHotplugSmm: add function for collecting CPUs with events
Add a function that collects the APIC IDs of CPUs that have just been hot-plugged, or are about to be hot-unplugged. Pending events are only located and never cleared; QEMU's AML needs the firmware to leave the status bits intact in the hotplug register block. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Igor Mammedov <imammedo@redhat.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1512 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20200226221156.29589-10-lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
This commit is contained in:
committed by
mergify[bot]
parent
f668e78871
commit
763840c9ab
23
OvmfPkg/CpuHotplugSmm/ApicId.h
Normal file
23
OvmfPkg/CpuHotplugSmm/ApicId.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/** @file
|
||||
Type and macro definitions for representing and printing APIC IDs, compatibly
|
||||
with the LocalApicLib and PrintLib classes, respectively.
|
||||
|
||||
Copyright (c) 2020, Red Hat, Inc.
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
||||
#ifndef APIC_ID_H_
|
||||
#define APIC_ID_H_
|
||||
|
||||
//
|
||||
// The type that LocalApicLib represents an APIC ID with.
|
||||
//
|
||||
typedef UINT32 APIC_ID;
|
||||
|
||||
//
|
||||
// The PrintLib conversion specification for formatting an APIC_ID.
|
||||
//
|
||||
#define FMT_APIC_ID "0x%08x"
|
||||
|
||||
#endif // APIC_ID_H_
|
Reference in New Issue
Block a user