KVM: nVMX: No need for handle_vmx_insn function any more
authorNadav Har'El <nyh@il.ibm.com>
Wed, 25 May 2011 20:11:03 +0000 (23:11 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:15 +0000 (11:45 +0300)
commit99e65e805dea4df061aa4038211112aa96416412
tree5783fc09f0e0a5331d9ec0e8ca815aa59f58b393
parentcd232ad02f00286c3f8c9df30948da17212ef905
KVM: nVMX: No need for handle_vmx_insn function any more

Before nested VMX support, the exit handler for a guest executing a VMX
instruction (vmclear, vmlaunch, vmptrld, vmptrst, vmread, vmread, vmresume,
vmwrite, vmon, vmoff), was handle_vmx_insn(). This handler simply threw a #UD
exception. Now that all these exit reasons are properly handled (and emulate
the respective VMX instruction), nothing calls this dummy handler and it can
be removed.

Signed-off-by: Nadav Har'El <nyh@il.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c