KVM: nVMX: Implement VMXON and VMXOFF
authorNadav Har'El <nyh@il.ibm.com>
Wed, 25 May 2011 20:02:54 +0000 (23:02 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:09 +0000 (11:45 +0300)
commitec378aeef9dfc7c4ba72e9bd6cd4bd6f7d5fd0cc
treed6ae108db5cae27c7b07fa16f78c5eaafa2096d9
parent801d342432190947928e18f893f073fd87cd8bdf
KVM: nVMX: Implement VMXON and VMXOFF

This patch allows a guest to use the VMXON and VMXOFF instructions, and
emulates them accordingly. Basically this amounts to checking some
prerequisites, and then remembering whether the guest has enabled or disabled
VMX operation.

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