Skip to content

Commit

Permalink
KVM: nVMX: Don't emulate instructions in guest mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paolo Bonzini committed Feb 23, 2020
1 parent 5ef8acb commit 07721fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/vmx/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07721fe

Please sign in to comment.