]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: nVMX: Don't emulate instructions in guest mode
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Feb 2020 23:26:29 +0000 (15:26 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 23 Feb 2020 09:11:55 +0000 (10:11 +0100)
vmx_check_intercept is not yet fully implemented. To avoid emulating
instructions disallowed by the L1 hypervisor, refuse to emulate
instructions by default.

Cc: stable@vger.kernel.org
[Made commit, added commit msg - Oliver]
Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c

index dcca514ffd42cc6987805e1d2edee15f484e24d0..5801a86f9c2439456033bf61d534aca9f662be1f 100644 (file)
@@ -7164,7 +7164,7 @@ static int vmx_check_intercept(struct kvm_vcpu *vcpu,
        }
 
        /* TODO: check more intercepts... */
-       return X86EMUL_CONTINUE;
+       return X86EMUL_UNHANDLEABLE;
 }
 
 #ifdef CONFIG_X86_64