public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Glauber Costa <glommer@redhat.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, avi@redhat.com
Subject: Re: [PATCH v2 1/2] keep guest wallclock in sync with host clock
Date: Tue, 8 Sep 2009 17:00:04 -0300	[thread overview]
Message-ID: <20090908200004.GA20785@amt.cnet> (raw)
In-Reply-To: <20090908193752.GH9013@mothafucka.localdomain>

On Tue, Sep 08, 2009 at 04:37:52PM -0300, Glauber Costa wrote:
> On Tue, Sep 08, 2009 at 03:41:59PM -0300, Marcelo Tosatti wrote:
> > On Wed, Sep 02, 2009 at 10:34:57AM -0400, Glauber Costa wrote:
> > > KVM clock is great to avoid drifting in guest VMs running ontop of kvm.
> > > However, the current mechanism will not propagate changes in wallclock value
> > > upwards. This effectively means that in a large pool of VMs that need accurate timing,
> > > all of them has to run NTP, instead of just the host doing it.
> > > 
> > > Since the host updates information in the shared memory area upon msr writes,
> > > this patch introduces a worker that writes to that msr, and calls do_settimeofday
> > > at fixed intervals, with second resolution. A interval of 0 determines that we
> > > are not interested in this behaviour. A later patch will make this optional at
> > > runtime
> > > 
> > > Signed-off-by: Glauber Costa <glommer@redhat.com>
> > 
> > As mentioned before, ntp already does this (and its not that heavy is
> > it?).
> > 
> > For example, if ntp running on the host, it avoids stepping the clock
> > backwards by slow adjustment, while the periodic frequency adjustment on
> > the guest bypasses that.
> 
> Simple question: How do I run ntp in guests without network?

You don't.


  reply	other threads:[~2009-09-08 20:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=20090908200004.GA20785@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=avi@redhat.com \
    --cc=glommer@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