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)
commit630994b3c798dec3de1fb1d5a3dd9201267036f6
treef11388b8205ac3924aea1c9d545fc82009d00d6a
parent3ed1a4787617f948631a77903453847142271867
KVM: x86: add module parameter to disable periodic kvmclock sync

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