audk/OvmfPkg/Bhyve/PlatformPei
Tom Lendacky 45388d046c OvmfPkg: Obtain SEV encryption mask with the new MemEncryptSevLib API
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3108

The early assembler code performs validation for some of the SEV-related
information, specifically the encryption bit position. The new
MemEncryptSevGetEncryptionMask() interface provides access to this
validated value.

To ensure that we always use a validated encryption mask for an SEV-ES
guest, update all locations that use CPUID to calculate the encryption
mask to use the new interface.

Also, clean up some call areas where extra masking was being performed
and where a function call was being used instead of the local variable
that was just set using the function.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Rebecca Cran <rebecca@bsdio.com>
Cc: Peter Grehan <grehan@freebsd.org>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Julien Grall <julien@xen.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <9de678c0d66443c6cc33e004a4cac0a0223c2ebc.1610045305.git.thomas.lendacky@amd.com>
2021-01-07 19:34:39 +00:00
..
AmdSev.c OvmfPkg: Obtain SEV encryption mask with the new MemEncryptSevLib API 2021-01-07 19:34:39 +00:00
ClearCache.c Add BhyvePkg, to support the bhyve hypervisor 2020-07-31 13:03:10 +00:00
Cmos.c Add BhyvePkg, to support the bhyve hypervisor 2020-07-31 13:03:10 +00:00
Cmos.h OvmfPkg/Bhyve: Fix various style issues 2020-11-30 17:49:39 +00:00
FeatureControl.c Add BhyvePkg, to support the bhyve hypervisor 2020-07-31 13:03:10 +00:00
Fv.c OvmfPkg/Bhyve: Fix various style issues 2020-11-30 17:49:39 +00:00
MemDetect.c Add BhyvePkg, to support the bhyve hypervisor 2020-07-31 13:03:10 +00:00
Platform.c OvmfPkg/Bhyve: Fix various style issues 2020-11-30 17:49:39 +00:00
Platform.h Add BhyvePkg, to support the bhyve hypervisor 2020-07-31 13:03:10 +00:00
PlatformPei.inf OvmfPkg/Bhyve: Fix various style issues 2020-11-30 17:49:39 +00:00