qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH][RESEND] Time drift again.


From: Marcelo Tosatti
Subject: Re: [Qemu-devel] [PATCH][RESEND] Time drift again.
Date: Thu, 15 Jan 2009 11:53:16 -0200
User-agent: Mutt/1.5.18 (2008-05-17)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]