summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/CcExitLib
diff options
context:
space:
mode:
authorRyan Afranji <afranji@google.com>2022-12-08 08:51:15 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-12-09 07:08:50 +0000
commit127e2c531556b968a51e8e2191d6e4580281856a (patch)
treed8dfa71a7ebb640cdb98f8d923de42e5c336c7ed /OvmfPkg/Library/CcExitLib
parent54d81d06fc165fcb8eb832acd6a7cf644b029549 (diff)
downloadedk2-127e2c531556b968a51e8e2191d6e4580281856a.tar.gz
edk2-127e2c531556b968a51e8e2191d6e4580281856a.tar.bz2
edk2-127e2c531556b968a51e8e2191d6e4580281856a.zip
OvmfPkg: Add INVD case in #VE handler
According to the Intel GHCI specification document section 2.4.1, the goal for instructions that do not have a corresponding TDCALL is for the handler to treat the instruction as a NOP. INVD does not have a corresponding TDCALL. This patch makes the #VE handler treat INVD as a NOP. Signed-off-by: Ryan Afranji <afranji@google.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'OvmfPkg/Library/CcExitLib')
-rw-r--r--OvmfPkg/Library/CcExitLib/CcExitVeHandler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/OvmfPkg/Library/CcExitLib/CcExitVeHandler.c b/OvmfPkg/Library/CcExitLib/CcExitVeHandler.c
index 081af7e12a..30d547d5fe 100644
--- a/OvmfPkg/Library/CcExitLib/CcExitVeHandler.c
+++ b/OvmfPkg/Library/CcExitLib/CcExitVeHandler.c
@@ -545,6 +545,7 @@ CcExitHandleVe (
case EXIT_REASON_MONITOR_INSTRUCTION:
case EXIT_REASON_WBINVD:
case EXIT_REASON_RDPMC:
+ case EXIT_REASON_INVD:
/* Handle as nops. */
break;