KVM: VMX: VMXON/VMXOFF usage changes
authorDongxiao Xu <dongxiao.xu@intel.com>
Tue, 11 May 2010 10:29:48 +0000 (18:29 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:43 +0000 (10:35 +0300)
commit4610c9cc6d9c84f7d585583699f04d5f51c83671
treef67e81f151849fcce2b62665603f680fa9bb94b3
parentb923e62e4d48bc5242b32a6ef5ba0f886137668a
KVM: VMX: VMXON/VMXOFF usage changes

SDM suggests VMXON should be called before VMPTRLD, and VMXOFF
should be called after doing VMCLEAR.

Therefore in vmm coexistence case, we should firstly call VMXON
before any VMCS operation, and then call VMXOFF after the
operation is done.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c