summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorLendacky, Thomas via groups.io <thomas.lendacky=amd.com@groups.io>2023-03-29 02:09:24 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-04-01 03:15:51 +0000
commit67a6f414aa0e2a9cac965fcc6d83b6cbd6e893c0 (patch)
treee3570c95c4891bc85f869e7d3c74d6a793bec3b3 /MdeModulePkg/Universal
parent3323359a811a597b8ee045638c5addd10444402c (diff)
downloadedk2-67a6f414aa0e2a9cac965fcc6d83b6cbd6e893c0.tar.gz
edk2-67a6f414aa0e2a9cac965fcc6d83b6cbd6e893c0.tar.bz2
edk2-67a6f414aa0e2a9cac965fcc6d83b6cbd6e893c0.zip
UefiCpuPkg/MpInitLib: Ensure SEV-SNP VMSA allocations are not 2MB aligned
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4353 Due to AMD erratum #1467, an SEV-SNP VMSA should not be 2MB aligned. To work around this issue, allocate two pages instead of one. Because of the way that page allocation is implemented, always try to use the second page. If the second page is not 2MB aligned, free the first page and use the second page. If the second page is 2MB aligned, free the second page and use the first page. Freeing in this way reduces holes in the memory map. Fixes: 06544455d0d4 ("UefiCpuPkg/MpInitLib: Use SEV-SNP AP Creation ...") Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal')
0 files changed, 0 insertions, 0 deletions