]> git.proxmox.com Git - mirror_edk2.git/commit
Ovmf/ResetVector: Simplify and consolidate the SEV features checks
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 7 Jan 2021 18:48:11 +0000 (12:48 -0600)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Jan 2021 19:34:39 +0000 (19:34 +0000)
commita91b700e385e7484ab7286b3ba7ea2efbd59480e
tree033eb6b195a8890dd1a91663c39b5b00a232983d
parent55ee36b0c490d9a6582e083bb3ac78a22d33053f
Ovmf/ResetVector: Simplify and consolidate the SEV features checks

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

Simplify and consolidate the SEV and SEV-ES checks into a single routine.
This new routine will use CPUID to check for the appropriate CPUID leaves
and the required values, as well as read the non-interceptable SEV status
MSR (0xc0010131) to check SEV and SEV-ES enablement.

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: <43a660624c32b5f6c2610bf42ee39101c21aff68.1610045305.git.thomas.lendacky@amd.com>
OvmfPkg/ResetVector/Ia32/PageTables64.asm