All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aritoki TAKADA <aritoki.takada.jt@hitachi.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm@vger.kernel.org, ltc-kernel@ml.yrl.intra.hitachi.co.jp
Subject: Re: Question: Timekeeping between Host and Guest with NTP
Date: Mon, 27 Aug 2012 18:37:11 +0900	[thread overview]
Message-ID: <503B3FC7.1090605@hitachi.com> (raw)
In-Reply-To: <20120824150030.GD13206@amt.cnet>

Hello,

(2012/08/25 0:00), Marcelo Tosatti wrote:
<snip>

> kvmclock driver has access to the ntpd corrected frequency of the host, but:
>
> 1) kvmclock time as reported to the guest uses the TSC as an offset in
> addition to the host monotonic clock, TSC is susceptible to frequency
> variations.
>
> The guest has its own timekeeping (it accumulates time from kvmclock,
> at every timer interrupt). The algorithm is not
> perfect, and its suspectible to small variations.
>
> These add up over time.
>
> 2) Corrections to UTC, such as leap seconds, are not reflected to the
> host monotonic clock. NTP algorithm in the guest is responsible for
> synchronization to UTC.

I see, I understood the pitfalls of the guest only syncing to kvmclock,
and now NTP on the guest seems simple and reasonable for me.
Thank you again for your detailed explanation.

Sincerely,

---
Aritoki TAKADA
aritoki.takada.jt@hitachi.com
Hitachi, Ltd., Yokohama Research Laboratory

      reply	other threads:[~2012-08-27  9:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-22  8:46 Question: Timekeeping between Host and Guest with NTP Aritoki TAKADA
2012-08-23 18:13 ` Marcelo Tosatti
2012-08-24 11:43   ` Aritoki TAKADA
2012-08-24 15:00     ` Marcelo Tosatti
2012-08-27  9:37       ` Aritoki TAKADA [this message]

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=503B3FC7.1090605@hitachi.com \
    --to=aritoki.takada.jt@hitachi.com \
    --cc=kvm@vger.kernel.org \
    --cc=ltc-kernel@ml.yrl.intra.hitachi.co.jp \
    --cc=mtosatti@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.