diff options
author | Ryan Afranji <afranji@google.com> | 2022-12-08 08:51:15 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-12-09 07:08:50 +0000 |
commit | 127e2c531556b968a51e8e2191d6e4580281856a (patch) | |
tree | d8dfa71a7ebb640cdb98f8d923de42e5c336c7ed | |
parent | 54d81d06fc165fcb8eb832acd6a7cf644b029549 (diff) | |
download | edk2-127e2c531556b968a51e8e2191d6e4580281856a.tar.gz |
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>
-rw-r--r-- | OvmfPkg/Library/CcExitLib/CcExitVeHandler.c | 1 |
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;
|