]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a84990d5915c817093ca6d9251b448fcbf11601
treef11388b8205ac3924aea1c9d545fc82009d00d6a
parent3b4396a8775ec3e4d7866a2ba853918f5bfa5197
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