]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/ResetVector: move the GHCB page setup in AmdSev.asm
authorBrijesh Singh <brijesh.singh@amd.com>
Tue, 17 Aug 2021 13:46:51 +0000 (21:46 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 27 Aug 2021 12:10:40 +0000 (12:10 +0000)
commitb9af5037b270c4767b275fd5d23b942c422e742f
treed12364a37e9ee7c87acb68df99fb0d94aea33d36
parentab77b6031b03733c28fa5f477d802fd67b3f3ee0
OvmfPkg/ResetVector: move the GHCB page setup in AmdSev.asm

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3429

While build the initial page table, the SetCr3ForPageTables64 checks
whether SEV-ES is enabled. If so, clear the page encryption mask from the
GHCB page. Move the logic to clear the page encryption mask in the
AmdSev.asm.

Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Min Xu <min.m.xu@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Erdem Aktas <erdemaktas@google.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
OvmfPkg/ResetVector/Ia32/AmdSev.asm
OvmfPkg/ResetVector/Ia32/PageTables64.asm