]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86/time: use correct guest TSC frequency in tsc_set_info()
authorHaozhong Zhang <haozhong.zhang@intel.com>
Fri, 8 Jan 2016 09:48:10 +0000 (10:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Jan 2016 09:48:10 +0000 (10:48 +0100)
commit0a449aa43d88164789b3f60ed3bbd64dae897da8
tree2597fb1be2de1d32b6edaea4a529bc441506585a
parent9754544a55d3a290e3198c36198e66d059033a38
x86/time: use correct guest TSC frequency in tsc_set_info()

When TSC_MODE_PVRDTSCP is used for a HVM container and TSC scaling is
available, use the non-zero value of argument gtsc_khz of tsc_set_info()
as the guest TSC frequency rather than using the host TSC
frequency. Otherwise, TSC scaling will not be able get the correct ratio
between the host and guest TSC frequencies.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/time.c
xen/include/asm-x86/domain.h