KVM: x86: add module parameter to disable periodic kvmclock sync
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 13 May 2015 01:42:04 +0000 (22:42 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 May 2015 08:43:35 +0000 (10:43 +0200)
The periodic kvmclock sync can be an undesired source of latencies.

When running cyclictest on a guest, a latency spike is visible.
With kvmclock periodic sync disabled, the spike is gone.

Guests should use ntp which means the propagations of ntp corrections
from the host clock are unnecessary.

v2:
-> Make parameter read-only (Radim)
-> Return early on kvmclock_sync_fn (Andrew)

Reported-and-tested-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c

Simple merge