public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Automatically grab wallclock time updates from hypervisor
@ 2009-09-02 14:34 Glauber Costa
  2009-09-02 14:34 ` [PATCH v2 1/2] keep guest wallclock in sync with host clock Glauber Costa
  0 siblings, 1 reply; 8+ messages in thread
From: Glauber Costa @ 2009-09-02 14:34 UTC (permalink / raw)
  To: kvm; +Cc: linux-kernel, avi

i folks,

In this proposed patch, I am introducing a worker fired by kvmclock that updates
guest wallclock periodically to reflect changes in the host's wallclock. With this
patch, a large pool of VMs will no longer have to run NTP in all of its guests.

The worker does that at a configurable interval, with a minimum granularity of 1
second. So, although not exactly cheap, the msr write needed to get an updated
wallclock value won't pose a heavy burden on the system.

It is also possible to disable it completely if this behaviour is undesired for
a specific scenario.

Changes from v1:
 * disabled by default
 * adjust clock in a loop, to prevent agaist host scheduling.

diffstat follows:

 arch/x86/include/asm/kvm_para.h |    6 +++
 arch/x86/kernel/kvmclock.c      |   85 ++++++++++++++++++++++++++++++++++----
 kernel/sysctl.c                 |   13 ++++++
 3 files changed, 95 insertions(+), 9 deletions(-)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-09-08 20:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-02 14:34 [PATCH v2 0/2] Automatically grab wallclock time updates from hypervisor Glauber Costa
2009-09-02 14:34 ` [PATCH v2 1/2] keep guest wallclock in sync with host clock Glauber Costa
2009-09-02 14:34   ` [PATCH v2 2/2] add sysctl for kvm wallclock sync Glauber Costa
2009-09-08 18:41   ` [PATCH v2 1/2] keep guest wallclock in sync with host clock Marcelo Tosatti
2009-09-08 19:37     ` Glauber Costa
2009-09-08 20:00       ` Marcelo Tosatti
2009-09-08 20:12         ` Anthony Liguori
2009-09-08 20:15         ` Glauber Costa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox