From 127e2c531556b968a51e8e2191d6e4580281856a Mon Sep 17 00:00:00 2001 From: Ryan Afranji Date: Thu, 8 Dec 2022 08:51:15 +0800 Subject: [PATCH] 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 Reviewed-by: Jiewen Yao --- OvmfPkg/Library/CcExitLib/CcExitVeHandler.c | 1 + 1 file changed, 1 insertion(+) 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;