All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH][RESEND] Time drift again.
Date: Thu, 15 Jan 2009 11:53:16 -0200	[thread overview]
Message-ID: <20090115135316.GA3434@amt.cnet> (raw)
In-Reply-To: <20090114170222.GE6431@shareable.org>

On Wed, Jan 14, 2009 at 05:02:23PM +0000, Jamie Lokier wrote:
> Gleb Natapov wrote:
> >  After my last patch to fix interrupt coalescing was rejected
> > on the basis that it is too intrusive we decided to make the
> > fix much more localized and only fix the problem for RTC time
> > source. Unfortunately it is impossible to fix the problem entirely
> > inside RTC code like Andrzej proposed since Windows reads RTC
> > register C more then once on each time interrupt so it is impossible
> > to count reliably how many interrupt windows actually handled.
> > Proposed solution is localized to I386 target and is disabled by
> > default. To enable it "-rtc-td-hack" flag should be used.
> 
> I truly don't understand why the time correction is done by arcane
> guest-specific details like counting register reads, making interrupts
> behave different from real hardware, and only correcting guests which
> use particular clock sources - instead of simply warping virtual time
> (in all the places it's used) which might actually work on all targets
> and all guest OSes.
> 
> I don't remember anybody responding to that suggestion.
> Was it a silly one?

Not, it was not silly. The problem is every guest handles timekeeping
differently (even different clocks in the same guest behave
differently). Xen and ESX implement virtual time, but it can be
problematic in some scenarios.

http://lists.xensource.com/archives/html/xen-devel/2008-02/msg00036.html

  parent reply	other threads:[~2009-01-15 13:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14 11:59 [Qemu-devel] [PATCH][RESEND] Time drift again Gleb Natapov
2009-01-14 17:02 ` Jamie Lokier
2009-01-14 17:34   ` Avi Kivity
2009-01-15 13:53   ` Marcelo Tosatti [this message]
2009-01-15 20:12 ` Anthony Liguori

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=20090115135316.GA3434@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=qemu-devel@nongnu.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 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.