diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-02-05 02:26:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-28 18:36:13 +0300 |
commit | ee1238c0285f40d8297e70f3aaa0d8a981ea0b53 (patch) | |
tree | 04e7800d6028f0a31f5232fe2ca6f68096bec307 | |
parent | 719742a77e4733e99ea066363f4487fa7513bc5d (diff) | |
download | linux-ee1238c0285f40d8297e70f3aaa0d8a981ea0b53.tar.xz |
KVM: nVMX: Don't emulate instructions in guest mode
[ Upstream commit 07721feee46b4b248402133228235318199b05ec ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 86037cc11419..64837f07d955 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -12340,7 +12340,7 @@ static int vmx_check_intercept(struct kvm_vcpu *vcpu, } /* TODO: check more intercepts... */ - return X86EMUL_CONTINUE; + return X86EMUL_UNHANDLEABLE; } #ifdef CONFIG_X86_64 |