]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/CpuHotplugSmm: introduce Post-SMM Pen for hot-added CPUs
authorLaszlo Ersek <lersek@redhat.com>
Wed, 26 Feb 2020 22:11:51 +0000 (23:11 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 4 Mar 2020 12:22:07 +0000 (12:22 +0000)
commit63c89da242f3a49e0dbdfac0d2a29ae0daa73970
tree24783319cf8c70a91bdece78dfb6b9df28363d2a
parent17cb8ddba39b58e008a58aa6d502856d61f82dc9
OvmfPkg/CpuHotplugSmm: introduce Post-SMM Pen for hot-added CPUs

Once a hot-added CPU finishes the SMBASE relocation, we need to pen it in
a HLT loop. Add the NASM implementation (with just a handful of
instructions, but much documentation), and some C language helper
functions.

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-12-lersek@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
OvmfPkg/CpuHotplugSmm/PostSmmPen.nasm [new file with mode: 0644]
OvmfPkg/CpuHotplugSmm/Smbase.c [new file with mode: 0644]
OvmfPkg/CpuHotplugSmm/Smbase.h [new file with mode: 0644]