]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/x86/kvm/vmx.c
KVM: VMX: avoid guest hang on invalid invvpid instruction
[linux.git] / arch / x86 / kvm / vmx.c
index 01f515873637cefd4fde957dadd5ea4ecd734fe9..0ce009cc23f1815c8654e468be85555c1d5c878a 100644 (file)
@@ -7458,6 +7458,7 @@ static int handle_invvpid(struct kvm_vcpu *vcpu)
        if (!(types & (1UL << type))) {
                nested_vmx_failValid(vcpu,
                        VMXERR_INVALID_OPERAND_TO_INVEPT_INVVPID);
+               skip_emulated_instruction(vcpu);
                return 1;
        }