Skip to content

Commit 07721fe

Browse files
committed
KVM: nVMX: Don't emulate instructions in guest mode
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>
1 parent 5ef8acb commit 07721fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7164,7 +7164,7 @@ static int vmx_check_intercept(struct kvm_vcpu *vcpu,
71647164
}
71657165

71667166
/* TODO: check more intercepts... */
7167-
return X86EMUL_CONTINUE;
7167+
return X86EMUL_UNHANDLEABLE;
71687168
}
71697169

71707170
#ifdef CONFIG_X86_64

0 commit comments

Comments
 (0)