KVM: VMX: Handle vmx instruction vmexits
commitb80260bc792ae85b9d04279d80d003e6043be9a7
authorAvi Kivity <avi@redhat.com>
Tue, 16 Jun 2009 11:19:52 +0000 (16 14:19 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Jul 2009 23:49:34 +0000 (2 16:49 -0700)
tree64399c710546a7e9d466c544b144d8eac77a201d
parentd42a5ebb5ecc66aa692a1141c7ba284ec612e9cc
KVM: VMX: Handle vmx instruction vmexits

commit e3c7cb6ad7191e92ba89d00a7ae5f5dd1ca0c214 upstream.

IF a guest tries to use vmx instructions, inject a #UD to let it know the
instruction is not implemented, rather than crashing.

This prevents guest userspace from crashing the guest kernel.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/vmx.c