KVM: VMX: Define new functions to wrapper direct call of asm code
authorDongxiao Xu <dongxiao.xu@intel.com>
Tue, 11 May 2010 10:29:38 +0000 (18:29 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:41 +0000 (10:35 +0300)
commit7725b89414836df492d6222b1d3cacb0ca576d77
tree1e96bbd57950801e6f8396752cb8bff2fc2a8ffa
parent6859762e8ae32ec258a671faf5c9fef07b25b83f
KVM: VMX: Define new functions to wrapper direct call of asm code

Define vmcs_load() and kvm_cpu_vmxon() to avoid direct call of asm
code. Also move VMXE bit operation out of kvm_cpu_vmxoff().

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