KVM: VMX: VMCLEAR/VMPTRLD usage changes
authorDongxiao Xu <dongxiao.xu@intel.com>
Tue, 11 May 2010 10:29:45 +0000 (18:29 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:42 +0000 (10:35 +0300)
commitb923e62e4d48bc5242b32a6ef5ba0f886137668a
tree71652285850011abeea56b6f444498cffd66fd45
parent92fe13be74303a7b80dc3c99e22e12a87d41bd5f
KVM: VMX: VMCLEAR/VMPTRLD usage changes

Originally VMCLEAR/VMPTRLD is called on vcpu migration. To
support hosted VMM coexistance, VMCLEAR is executed on vcpu
schedule out, and VMPTRLD is executed on vcpu schedule in.
This could also eliminate the IPI when doing VMCLEAR.

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