aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/kvmclock.c
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2010-05-11 12:17:45 -0400
committerAvi Kivity <avi@redhat.com>2010-05-19 04:41:05 -0400
commit3a0d7256a6fb8c13f9fac6cd63250f97a8f0d8de (patch)
tree27a710b0f7e54c243382d47c290061699d0e755c /arch/x86/kernel/kvmclock.c
parent838815a78785022f6611e5c48386567aea7b818b (diff)
x86, paravirt: don't compute pvclock adjustments if we trust the tsc
If the HV told us we can fully trust the TSC, skip any correction Signed-off-by: Glauber Costa <glommer@redhat.com> Acked-by: Zachary Amsden <zamsden@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kernel/kvmclock.c')
-rw-r--r--arch/x86/kernel/kvmclock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
index 59c740fcb9b3..eb9b76c716c2 100644
--- a/arch/x86/kernel/kvmclock.c
+++ b/arch/x86/kernel/kvmclock.c
@@ -215,4 +215,7 @@ void __init kvmclock_init(void)
215 clocksource_register(&kvm_clock); 215 clocksource_register(&kvm_clock);
216 pv_info.paravirt_enabled = 1; 216 pv_info.paravirt_enabled = 1;
217 pv_info.name = "KVM"; 217 pv_info.name = "KVM";
218
219 if (kvm_para_has_feature(KVM_FEATURE_CLOCKSOURCE_STABLE_BIT))
220 pvclock_set_flags(PVCLOCK_TSC_STABLE_BIT);
218} 221}