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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 16:22:22 +0000 (17:22 +0100)
commit24dfae91a23a55c9f4cbe8fd778ed229ee9cced1
tree64c6afde0e579d6d6239a06f2597177f9df86e45
parente61c236dcf3416211008774b6c2bfa01753a82c1
KVM: nVMX: Don't emulate instructions in guest mode

commit 07721feee46b4b248402133228235318199b05ec upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/vmx.c