|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH/RFC] report hardware tsc frequency even for emula
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|