From: Kyle Hayes <kyle@silverbeach.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch] option -no-tsc for i386 with speedstep
Date: Mon, 25 Apr 2005 20:03:01 -0700 [thread overview]
Message-ID: <200504252003.01917.kyle@silverbeach.net> (raw)
In-Reply-To: <20050425111532.GA2554@dizzy.ath.cx>
On Monday 25 April 2005 04:15, Massimo Dal Zotto wrote:
> When qemu runs on an i386 cpu with speedstep enabled the clock of the
> guest os is not in sync with the clock on the host os because the
> vm_timer used for irq 0 generates interrupts at wrong rate when
> the host cpu frequency changes.
>
> The problem is that the vm_timer uses the rdtsc instruction and the
> value of ticks_per_sec, computed at start time, for calculating the
> expire time of vm_timers. While ticks_per_sec is constant the values
> returned by rdtsc are dependent on the current cpu clock, which is not
> constant if speedstep is used.
There is a discussion about this problem on either x86-secret.com or
Sudhian. I can't remember which :-( In the latest series of P4 chips
(both Xeon and desktop I think), the counter used for the rdtsc
instruction stays at the same frequency while the rest of the CPU changes.
This led to some "interesting" results with programs like CPU-Z.
Intel's response was that they now hold the counter at a stable frequency
so that this works. Unfortunately, there are years of processors which do
not do that, so other workarounds must be done.
Best,
Kyle
prev parent reply other threads:[~2005-04-26 3:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-25 11:15 [Qemu-devel] [patch] option -no-tsc for i386 with speedstep Massimo Dal Zotto
2005-04-25 15:44 ` [Qemu-devel] " Heike C. Zimmerer
2005-04-25 17:07 ` [Qemu-devel] " Jim C. Brown
2005-04-25 17:28 ` Paul Brook
2005-04-25 17:44 ` Massimo Dal Zotto
2005-04-25 17:47 ` [Qemu-devel] " Heike C. Zimmerer
2005-04-25 18:58 ` [Qemu-devel] " Fabrice Bellard
2005-04-25 20:17 ` Massimo Dal Zotto
2005-04-25 20:24 ` Jonas Maebe
2005-04-25 20:38 ` Filip Navara
2005-04-25 21:03 ` Lionel Ulmer
2005-04-25 22:45 ` Taras Glek
2005-04-25 21:46 ` [Qemu-devel] [patch] option -no-tsc for i386 with speedstep (solved) Massimo Dal Zotto
2005-04-26 6:50 ` Jonas Maebe
2005-04-26 3:03 ` Kyle Hayes [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=200504252003.01917.kyle@silverbeach.net \
--to=kyle@silverbeach.net \
--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 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).