]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/ResetVector: Perform a simple SEV-ES sanity check
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 7 Jan 2021 18:48:14 +0000 (12:48 -0600)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Jan 2021 19:34:39 +0000 (19:34 +0000)
commitbd0c1c8e225b1274fc7e3f154811af40619e3f04
treea83cc103896ecc1d115f7b0be845b1452e5c16a6
parent7cb96c47a94ea310b151c36380ea8266d21aa12a
OvmfPkg/ResetVector: Perform a simple SEV-ES sanity check

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

If a hypervisor incorrectly reports through CPUID that SEV-ES is not
active, ensure that a #VC exception was not taken. If it is found that
a #VC was taken, then the code enters a HLT loop.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <afa2030b95b852313b13982df82d472187e59b92.1610045305.git.thomas.lendacky@amd.com>
OvmfPkg/ResetVector/Ia32/PageTables64.asm