audk/MdePkg/Include
Hao Wu d9f1cac51b MdePkg/BaseLib: Introduce new SpeculationBarrier API
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1417

X86 specific BaseLib API AsmLfence() was introduced to address the Spectre
Variant 1 (CVE-2017-5753) issue. The purpose of this API is to insert
barriers to stop speculative execution. However, the API is highly
architecture (X86) specific, and thus should be avoided using across
generic code.

To address this issue, this patch will add a new BaseLib API called
SpeculationBarrier(). Different architectures will have different
implementations for this API.

For IA32 and x64, the implementation of SpeculationBarrier() will
directly call AsmLfence().

For ARM and AARCH64, this patch will add a temporary empty implementation
as a placeholder. We hope experts in ARM can help to contribute the actual
implementation.

For EBC, similar to the ARM and AARCH64 cases, a temporary empty
implementation is added.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2018-12-25 09:15:34 +08:00
..
AArch64 MdePkg/Base: introduce MAX_ALLOC_ADDRESS 2018-12-20 11:01:38 +01:00
Arm MdePkg/Arm/ProcessorBind.h: fix copy/paste error 2018-12-20 12:29:57 +01:00
Ebc MdePkg/Base: introduce MAX_ALLOC_ADDRESS 2018-12-20 11:01:38 +01:00
Guid MdePkg Cper.h: Add generic error macros for ARM platform 2018-08-15 09:34:48 -07:00
Ia32 MdePkg/Base: introduce MAX_ALLOC_ADDRESS 2018-12-20 11:01:38 +01:00
IndustryStandard MdePkg ACPI: fix the typos in Acpi61.h and Acpi62.h 2018-11-27 11:18:28 +08:00
Library MdePkg/BaseLib: Introduce new SpeculationBarrier API 2018-12-25 09:15:34 +08:00
Pi MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Ppi MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Protocol MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
Uefi MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
X64 MdePkg/Base: introduce MAX_ALLOC_ADDRESS 2018-12-20 11:01:38 +01:00
Base.h MdePkg/Base.h: Implement BASE_CR() via OFFSET_OF(). 2018-11-02 22:15:54 +08:00
PiDxe.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PiMm.h MdePkg: Add new definitions for Management Mode. 2017-08-29 09:37:36 +08:00
PiPei.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PiSmm.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Uefi.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00