Re: [Xen-devel] [PATCH v2 04/14] x86/time.c: Use correct guest TSC frequency in tsc_get_info()

2015-12-09 Thread Haozhong Zhang
On 12/08/15 13:26, Boris Ostrovsky wrote: > On 12/07/2015 08:08 PM, Haozhong Zhang wrote: > >On 12/07/15 12:53, Boris Ostrovsky wrote: > >>On 12/06/2015 03:58 PM, Haozhong Zhang wrote: > >>>When the TSC mode of a HVM container is TSC_MODE_DEFAULT or > >>>TSC_MODE_PVRDTSCP and no TSC emulation is

Re: [Xen-devel] [PATCH v2 04/14] x86/time.c: Use correct guest TSC frequency in tsc_get_info()

2015-12-08 Thread Boris Ostrovsky
On 12/07/2015 08:08 PM, Haozhong Zhang wrote: On 12/07/15 12:53, Boris Ostrovsky wrote: On 12/06/2015 03:58 PM, Haozhong Zhang wrote: When the TSC mode of a HVM container is TSC_MODE_DEFAULT or TSC_MODE_PVRDTSCP and no TSC emulation is used, the existing tsc_get_info() uses the host TSC

Re: [Xen-devel] [PATCH v2 04/14] x86/time.c: Use correct guest TSC frequency in tsc_get_info()

2015-12-07 Thread Boris Ostrovsky
On 12/06/2015 03:58 PM, Haozhong Zhang wrote: When the TSC mode of a HVM container is TSC_MODE_DEFAULT or TSC_MODE_PVRDTSCP and no TSC emulation is used, the existing tsc_get_info() uses the host TSC frequency (cpu_khz) as the guest TSC frequency. However, tsc_set_info() may set the guest TSC

Re: [Xen-devel] [PATCH v2 04/14] x86/time.c: Use correct guest TSC frequency in tsc_get_info()

2015-12-07 Thread Haozhong Zhang
On 12/07/15 12:53, Boris Ostrovsky wrote: > On 12/06/2015 03:58 PM, Haozhong Zhang wrote: > >When the TSC mode of a HVM container is TSC_MODE_DEFAULT or > >TSC_MODE_PVRDTSCP and no TSC emulation is used, the existing > >tsc_get_info() uses the host TSC frequency (cpu_khz) as the guest TSC >

[Xen-devel] [PATCH v2 04/14] x86/time.c: Use correct guest TSC frequency in tsc_get_info()

2015-12-06 Thread Haozhong Zhang
When the TSC mode of a HVM container is TSC_MODE_DEFAULT or TSC_MODE_PVRDTSCP and no TSC emulation is used, the existing tsc_get_info() uses the host TSC frequency (cpu_khz) as the guest TSC frequency. However, tsc_set_info() may set the guest TSC frequency to a value different than the host. In