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: [email protected] [Made commit, added commit msg - Oliver] Signed-off-by: Oliver Upton <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 5ef8acb commit 07721fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)