|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 06/14] x86/time.c: Scale host TSC in pvclock properly
On 12/07/2015 08:52 PM, Haozhong Zhang wrote: On 12/07/15 13:14, Boris Ostrovsky wrote:On 12/06/2015 03:58 PM, Haozhong Zhang wrote:This patch makes the pvclock return the scaled host TSC and corresponding scaling parameters to HVM domains if guest TSC is not emulated and TSC scaling is enabled. Signed-off-by: Haozhong Zhang <haozhong.zhang@xxxxxxxxx>+Joao who has been staring at this code. Joao, can you run this series through your test with non-native frequency? (http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg00683.html provides an interface to set it in config file). This is only guaranteed if we have constant/reliable TSC. So perhaps you should set tsc_scaling_supported only when either (or both?) of these TSC properties are true. Which is probably the case anyway but may be worth explicitly checking in start_svm/vmx? (and use tsc_scaling_supported instead of cpu_has_tsc_ratio in the 'if' statement) And just like I asked in the previous email --- should we then use the same scaler (which would be vtsc_to_ns) in both cases? At least for guests in HVM containers (it may work for PV guests as well, but it would need to be confirmed). Also, I noticed that this routine uses is_hvm_domain(). I think it should be has_hvm_container_domain(). -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |