KVM: VMX: Handle vmx instruction vmexits
authorAvi Kivity <avi@redhat.com>
Tue, 16 Jun 2009 11:19:52 +0000 (14:19 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 28 Jun 2009 11:10:31 +0000 (14:10 +0300)
commite3c7cb6ad7191e92ba89d00a7ae5f5dd1ca0c214
tree57de5664b9fefca3de7d50ad6b6dc652f8570bf5
parentef50f7ac7e234f9696555e41eab3de69c3d86166
KVM: VMX: Handle vmx instruction vmexits

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.

Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c