]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: Add INVD case in #VE handler
authorRyan Afranji <afranji@google.com>
Thu, 8 Dec 2022 00:51:15 +0000 (08:51 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 9 Dec 2022 07:08:50 +0000 (07:08 +0000)
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>
OvmfPkg/Library/CcExitLib/CcExitVeHandler.c

index 081af7e12aa58bbb13c052c966649cf9368cf0a2..30d547d5fe5537ba7e87b24e028355c58174354b 100644 (file)
@@ -545,6 +545,7 @@ CcExitHandleVe (
     case EXIT_REASON_MONITOR_INSTRUCTION:\r
     case EXIT_REASON_WBINVD:\r
     case EXIT_REASON_RDPMC:\r
+    case EXIT_REASON_INVD:\r
       /* Handle as nops. */\r
       break;\r
 \r