virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: James Morris <jmorris@namei.org>
Cc: virtualization@lists.osdl.org
Subject: Re: [LGUEST] updated nohz/hrtimer WIP patches (v04)
Date: Thu, 29 Mar 2007 12:24:02 -0700	[thread overview]
Message-ID: <460C1252.6040503@goop.org> (raw)
In-Reply-To: <Line.LNX.4.64.0703291509470.14851@d.namei>

James Morris wrote:
> Yep, it's as simple as possible now, and absolute time something to 
> investigate along with time synchronization between the host and the 
> guest (which we effectively avoid at this point).
>   

There doesn't need to be any time synchronization; you just need a way
to get at the hypervisor's current clock.  You end up doing the
hypervisor_clock() + delta yourself anyway, but at least its under your
control.

> 'delta' is limited to 2^32 nanoseconds on 32-bit, which is not enough to 
> be useful (I really don't understand why the API is like this).  So, 
> instead, the 64-bit ktime_t delta is derived.

It means the max delta between timer interrupts is ~4 seconds, but
that's not too bad.  The clock infrastructure will sort out resetting
the timer to do longer delays.  It probably isn't terribly useful to do
longer delays than that, because you need to deal with drift between the
kernel's clocksource and the timer.

    J

  reply	other threads:[~2007-03-29 19:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-26 16:11 [LGUEST] updated nohz/hrtimer WIP patches (v02) James Morris
2007-03-29 15:53 ` [LGUEST] updated nohz/hrtimer WIP patches (v04) James Morris
2007-03-29 16:45   ` Jeremy Fitzhardinge
2007-03-29 19:15     ` James Morris
2007-03-29 19:24       ` Jeremy Fitzhardinge [this message]
2007-03-30  2:08   ` Rusty Russell

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=460C1252.6040503@goop.org \
    --to=jeremy@goop.org \
    --cc=jmorris@namei.org \
    --cc=virtualization@lists.osdl.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;
as well as URLs for NNTP newsgroup(s).