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>
This commit is contained in:
Ryan Afranji 2022-12-08 08:51:15 +08:00 committed by mergify[bot]
parent 54d81d06fc
commit 127e2c5315

View File

@ -545,6 +545,7 @@ CcExitHandleVe (
case EXIT_REASON_MONITOR_INSTRUCTION: case EXIT_REASON_MONITOR_INSTRUCTION:
case EXIT_REASON_WBINVD: case EXIT_REASON_WBINVD:
case EXIT_REASON_RDPMC: case EXIT_REASON_RDPMC:
case EXIT_REASON_INVD:
/* Handle as nops. */ /* Handle as nops. */
break; break;