All of lore.kernel.org
 help / color / mirror / Atom feed
* Guest TSC and Xen (Intel and AMD feedback please)
@ 2008-07-01 17:33 Dan Magenheimer
  2008-07-01 17:40 ` Keir Fraser
  2008-07-02  2:52 ` Tian, Kevin
  0 siblings, 2 replies; 23+ messages in thread
From: Dan Magenheimer @ 2008-07-01 17:33 UTC (permalink / raw)
  To: Xen-Devel (E-mail)

[-- Attachment #1: Type: text/plain, Size: 1546 bytes --]

Various versions of Linux under various circumstances select
TSC as the primary clocksource for the kernel.  This is
especially true for uniprocessor kernels, but also in some
cases for multiprocessor kernels.  In most cases, this
is because a processor bit (tsc_invariant? constant_tsc?)
is passed through directly from the hardware via Xen and
tested by the hvm guest and the result implies that the
TSC is "stable".

I'd like to propose that, for a Xen hvm guest, TSC should
NEVER be considered stable.  For at least these reasons:

1) Often this test is done once at guest boot; if the guest
   migrates to another machine without the bit set, time
   will be erratic.
2) I *think* that in some cases even within the same system,
   TSC values will skew somewhat.  Since a uniprocessor guest
   will often be rescheduled to a different pcpu by Xen,
   the underlying tsc may appear erratic.

Comments (especially from Intel and AMD)?

If agreed, could Intel and AMD provide patches so that hvm
reads of the bits return "false"?  Or will this cause other
problems?

Another alternative would be to trap all rdtsc's and emulate
them but this probably will not be easy and may have
significant performance implications.  But perhaps it should
be an option?

Dan

===================================
Thanks... for the memory
I really could use more / My throughput's on the floor
The balloon is flat / My swap disk's fat / I've OOM's in store
Overcommitted so much
(with apologies to the late great Bob Hope)

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 23+ messages in thread
[parent not found: <878wwltk01.fsf@basil.nowhere.org>]

end of thread, other threads:[~2008-07-10 14:29 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01 17:33 Guest TSC and Xen (Intel and AMD feedback please) Dan Magenheimer
2008-07-01 17:40 ` Keir Fraser
2008-07-02  2:52 ` Tian, Kevin
2008-07-03  1:21   ` Dan Magenheimer
2008-07-04  0:56     ` Tian, Kevin
2008-07-04 17:31       ` Dan Magenheimer
2008-07-08  1:38         ` Tian, Kevin
2008-07-08  2:28           ` Zhang, Li
2008-07-08  2:59           ` Zhang, Li
2008-07-08  3:34             ` Dan Magenheimer
2008-07-08  4:21               ` Tian, Kevin
2008-07-08  6:49               ` Zhang, Li
2008-07-08  6:58                 ` Zhang, Li
2008-07-08  9:46                   ` Zhang, Li
2008-07-08 14:48                     ` Dave Winchell
2008-07-08 14:56                       ` Keir Fraser
2008-07-09  0:29                     ` Dan Magenheimer
2008-07-09 21:32                       ` [PATCH] softtsc (was RE: Guest TSC and Xen (Intel and AMD feedback please)) Dan Magenheimer
2008-07-10  1:48                         ` Zhang, Li
2008-07-10  9:18                         ` Keir Fraser
2008-07-10 14:19                           ` Dan Magenheimer
2008-07-10 14:29                             ` Keir Fraser
     [not found] <878wwltk01.fsf@basil.nowhere.org>
2008-07-01 21:43 ` Guest TSC and Xen (Intel and AMD feedback please) Dan Magenheimer

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.