]> 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)
commit1c8b6090e9dbd640666188483e12a8dafb7bf15f
treef11388b8205ac3924aea1c9d545fc82009d00d6a
parentc18548bf9aca18698fd469d4a3b6a35d50d70276
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