From: Andrew Cooper Date: Thu, 25 Oct 2018 13:08:33 +0000 (+0100) Subject: x86/vvmx: Let L1 handle all the unconditional vmexit instructions X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3092 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6faff8f9005d685185cd3f4ed116bf45d7d1553f;p=xen.git x86/vvmx: Let L1 handle all the unconditional vmexit instructions Signed-off-by: Andrew Cooper Reviewed-by: Sergey Dyasli Acked-by: Kevin Tian --- diff --git a/xen/arch/x86/hvm/vmx/vvmx.c b/xen/arch/x86/hvm/vmx/vvmx.c index aa202e0d12..7051eb3509 100644 --- a/xen/arch/x86/hvm/vmx/vvmx.c +++ b/xen/arch/x86/hvm/vmx/vvmx.c @@ -2383,6 +2383,8 @@ int nvmx_n2_vmexit_handler(struct cpu_user_regs *regs, case EXIT_REASON_TRIPLE_FAULT: case EXIT_REASON_TASK_SWITCH: case EXIT_REASON_CPUID: + case EXIT_REASON_GETSEC: + case EXIT_REASON_INVD: case EXIT_REASON_VMCALL: case EXIT_REASON_VMCLEAR: case EXIT_REASON_VMLAUNCH: @@ -2395,6 +2397,7 @@ int nvmx_n2_vmexit_handler(struct cpu_user_regs *regs, case EXIT_REASON_VMXON: case EXIT_REASON_INVEPT: case EXIT_REASON_XSETBV: + case EXIT_REASON_INVVPID: /* inject to L1 */ nvcpu->nv_vmexit_pending = 1; break;