From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: "Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>,
Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: [PATCH/RFC] report hardware tsc frequency even for emulated tsc
Date: Mon, 30 Nov 2009 11:21:37 -0800 [thread overview]
Message-ID: <4B141B41.50702@goop.org> (raw)
In-Reply-To: <9349646c-6b4a-489e-b881-4b8d6b5b5ef9@default>
On 11/30/09 07:55, Dan Magenheimer wrote:
> This patch changes the reported hz rate to the
> hz rate of the initial machine on which the guest
> is booted and retains that reported hz rate across
> save/restore/migration.
>
The pvclock algorithm relies on knowing what rate the tsc advances at.
If you return the "real" tsc speed in the clock info, won't that break?
> Jeremy has pointed out that reporting 1000.0 MHz is
> useful because it shows that TSC is being emulated.
> However, with the new tsc_mode default where
> a guest may start with native TSC and switch to
> emulated TSC after migration, users are likely to
> get even more confused.
I don't see how the original CPU speed is any more relevant than the
emulated speed, which is at least constant. The CPU speed is fairly
pointless info given that it has no bearing on how fast the CPU is
running from moment to moment, even ignoring migration. (On native "cpu
MHz" updates on the fly as the CPU speed changes, but I don't think your
proposal will allow that.)
> And "xm debug-key s"
> reveals not only whether TSC is being emulated but
> also the frequency so is more descriptive anyway.
>
It is not available to non-privileged users.
J
next prev parent reply other threads:[~2009-11-30 19:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-30 15:55 [PATCH/RFC] report hardware tsc frequency even for emulated tsc Dan Magenheimer
2009-11-30 19:21 ` Jeremy Fitzhardinge [this message]
2009-11-30 20:51 ` Dan Magenheimer
2009-11-30 21:06 ` Jeremy Fitzhardinge
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=4B141B41.50702@goop.org \
--to=jeremy@goop.org \
--cc=dan.magenheimer@oracle.com \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.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.