From: Glauber Costa <glommer@redhat.com>
To: kvm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, avi@redhat.com
Subject: [PATCH v2 0/2] Automatically grab wallclock time updates from hypervisor
Date: Wed, 2 Sep 2009 10:34:56 -0400 [thread overview]
Message-ID: <1251902098-8660-1-git-send-email-glommer@redhat.com> (raw)
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(-)
next reply other threads:[~2009-09-02 14:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-02 14:34 Glauber Costa [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1251902098-8660-1-git-send-email-glommer@redhat.com \
--to=glommer@redhat.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®