mirror of https://github.com/acidanthera/audk.git
67a6f414aa
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:
|
||
---|---|---|
.. | ||
AmdSev.c | ||
AmdSev.nasm | ||
CreatePageTable.c | ||
MpFuncs.nasm |