]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/PlatformPei/PlatformPei.inf
OvmfPkg/PlatformPei: clear CPU caches
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 2 Oct 2018 12:17:25 +0000 (16:17 +0400)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 5 Oct 2018 20:02:55 +0000 (22:02 +0200)
commitd20ae95a13e851d56c6618108b18c93526505ca2
tree0c284036c516fa5d0735c2867dfbde71d3dc7eda
parentc0b1f749ef1304810ed4ea58ded65b7f41d79d3e
OvmfPkg/PlatformPei: clear CPU caches

This is for conformance with the TCG "Platform Reset Attack Mitigation
Specification". Because clearing the CPU caches at boot doesn't impact
performance significantly, do it unconditionally, for simplicity's
sake.

Flush the cache on all logical processors, thanks to
EFI_PEI_MP_SERVICES_PPI and CacheMaintenanceLib.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Julien Grall <julien.grall@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
[lersek@redhat.com: remove bogus Message-Id line from commit msg]
OvmfPkg/PlatformPei/ClearCache.c [new file with mode: 0644]
OvmfPkg/PlatformPei/Platform.c
OvmfPkg/PlatformPei/Platform.h
OvmfPkg/PlatformPei/PlatformPei.inf