]> xenbits.xensource.com Git - people/liuw/xen.git/commit
x86/hvm: move saving/loading vcpu's TSC to common code
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 1 Mar 2016 13:38:22 +0000 (14:38 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 15 Mar 2016 16:32:32 +0000 (16:32 +0000)
commitbfab8cb2ced696156b2e6b731c19c9dbf707bab4
tree24a95c386bc87fe570a7888c7218385f92aa03a4
parent2c58b54d3a99e8a35992101757a39fc7ca40a051
x86/hvm: move saving/loading vcpu's TSC to common code

Both VMX and SVM save/load vcpu's TSC when saving/loading vcpu's
context, so this patch moves saving/loading vcpu's TSC to the common
functions hvm_[save|load]_cpu_ctxt().

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c