]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Library/CcExitLib/CcExitVeHandler.c
OvmfPkg/VmgExitLig: HALT on #VE when access to private memory
authorMin M Xu <min.m.xu@intel.com>
Fri, 28 Oct 2022 08:24:01 +0000 (16:24 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 4 Nov 2022 09:41:23 +0000 (09:41 +0000)
commiteff44c008d99eca6e3700e864b014821ba88683c
treece9197c3ed1aa12a1e5f3698793a8d7b636c2f71
parent2695e4921944d12be3d7e38f8e68a5c5ed01b005
OvmfPkg/VmgExitLig: HALT on #VE when access to private memory

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

EPT-violation #VE should be always on shared memory, which means the
shared bit of the GuestPA should be set. But in current #VE Handler
it is not checked. When it occurs, stop TD immediately and log out
the error.

Cc: Erdem Aktas <erdemaktas@google.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Guorui Yu <ruogui.ygr@alibaba-inc.com>
Tested-by: Guorui Yu <ruogui.ygr@alibaba-inc.com>
OvmfPkg/Library/VmgExitLib/VmTdExitVeHandler.c