KVM: VMX: Handle vmx instruction vmexits
authorAvi Kivity <avi@redhat.com>
Thu, 6 Aug 2009 17:40:01 +0000 (14:40 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:17:21 +0000 (20:17 -0700)
commitc8ad967ceb6cb90124162aada5a407c10d4b599c
tree49ab2a9a13d9782c41b6b706c0fa3225936f39df
parentf06f0605b998dfe1453380bfff72bd861ca3a016
KVM: VMX: Handle vmx instruction vmexits

(cherry picked from commit e3c7cb6ad7191e92ba89d00a7ae5f5dd1ca0c214)

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