audk/OvmfPkg/Library/VmgExitLib
Lendacky, Thomas cc71bd9709 OvmfPkg/VmgExitLib: Add support for new MMIO MOV opcodes
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3345

Enabling TPM support results in guest termination of an SEV-ES guest
because it uses MMIO opcodes that are not currently supported.

Add support for the new MMIO opcodes (0xA0 - 0xA3), MOV instructions which
use a memory offset directly encoded in the instruction. Also, add a DEBUG
statement to identify an unsupported MMIO opcode being used.

Fixes: c45f678a1e
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Min Xu <min.m.xu@intel.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <2fdde57707b52ae39c49341c9d97053aaff56e4a.1619716333.git.thomas.lendacky@amd.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
2021-04-30 18:35:50 +00:00
..
PeiDxeVmgExitVcHandler.c OvmfPkg/VmgExitLib: Support nested #VCs 2021-01-07 19:34:39 +00:00
SecVmgExitLib.inf OvfmPkg/VmgExitLib: Validate #VC MMIO is to un-encrypted memory 2021-01-07 19:34:39 +00:00
SecVmgExitVcHandler.c OvmfPkg/VmgExitLib: Support nested #VCs 2021-01-07 19:34:39 +00:00
VmgExitLib.c UefiCpuPkg, OvmfPkg: Disable interrupts when using the GHCB 2020-11-10 19:07:55 +00:00
VmgExitLib.inf OvfmPkg/VmgExitLib: Validate #VC MMIO is to un-encrypted memory 2021-01-07 19:34:39 +00:00
VmgExitVcHandler.c OvmfPkg/VmgExitLib: Add support for new MMIO MOV opcodes 2021-04-30 18:35:50 +00:00
VmgExitVcHandler.h OvmfPkg/VmgExitLib: Support nested #VCs 2021-01-07 19:34:39 +00:00