All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dong, Eddie" <eddie.dong@intel.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Cc: "Tian, Kevin" <kevin.tian@intel.com>,
	"Dong, Eddie" <eddie.dong@intel.com>,
	Keir Fraser <keir.fraser@eu.citrix.com>,
	"Zhang, Xiantao" <xiantao.zhang@intel.com>
Subject: RE: TSC virtualization across different host frequency platform migration
Date: Thu, 23 Apr 2009 09:28:53 +0800	[thread overview]
Message-ID: <9832F13BD22FB94A829F798DA4A8280501A7FC09FD@pdsmsx503.ccr.corp.intel.com> (raw)
In-Reply-To: <a8eca533-4045-4802-a856-40800278d9ff@default>

Dan Magenheimer wrote:
> Hi Eddie/Kevin --
> 
> I'm sorry to be dense, but I don't understand the
> details of your solution.  I'm also not sure I
> understand the problem you are trying to solve.
> The problem description doesn't describe a problem,
> just an event.
> 
> I'm guessing the problem is:  When a guest chooses
> TSC as its primary clocksource AND a migration later
> occurs to a host with a different TSC frequency
> THEN wallclock time (e.g. the "date" command)
> becomes incorrect.

Mostly yes though don't know if guest wall clock depends on TSC heavily.

> 
> I'm also guessing that you are NOT trying to solve
> the problem:  An application that uses TSC
> heavily to measure the passage of time AND
> calibrates TSC on host A AND invisibly
> migrates to host B with a different TSC
> frequency THEN will NOT be able to accurately
> measure the passage of time.  However, it will
> continue to be monotonically increasing.

Yes, if we don't scale the TSC.
The proposal tries to solve the problem.

We can use software trap and emulate to scale the TSC so
that guest TSC after migration is same with that before migration.

But this is not optimial since the overhead may be too high. So we 
propose to use smart scaling, which continuously use TSC_OFFSET,
but adjust the TSC_OFFSET value time to time (today it is fixed), 
so that an application that uses TSC heavily to measure the passage of time
can get correct time.

thx, eddie

  reply	other threads:[~2009-04-23  1:28 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-21 14:17 Xen 4.0 Feature Requests Stephen Spector
2009-04-21 14:53 ` R: " Francesco Gallo
2009-04-22 14:51   ` Kashif Ali
2009-04-22 19:49     ` Alessandro R.
2009-04-23  7:27       ` Robert Dunkley
2009-04-23 13:38         ` Thiago Camargo Martins Cordeiro
2009-04-23 14:34           ` R: [Xen-users] " Robert Dunkley
2009-04-23 15:01             ` R: " Thiago Camargo Martins Cordeiro
2009-04-24  8:50             ` RE: R: [Xen-users] " Kieran Mansley
2009-04-21 16:48 ` Tim Moore
2009-04-21 17:37   ` Paul Schulze
2009-04-21 19:13   ` Jean Guyader
2009-04-22  1:08   ` Dirk Utterback
2009-04-22  1:14     ` Samuel Thibault
2009-04-22  8:08       ` Dirk Utterback
2009-04-22  8:11         ` Samuel Thibault
2009-04-21 18:43 ` Pasi Kärkkäinen
2009-04-21 20:03   ` Andy Burns
2009-04-21 20:10     ` Maximilian Wilhelm
2009-04-22  0:31 ` Philipp Schmid
2009-04-22  1:24   ` Akio Takebe
2009-04-22  1:32     ` TSC virtualization across different host frequency platform migration Dong, Eddie
2009-04-22  8:13       ` Keir Fraser
2009-04-22  8:49         ` Dong, Eddie
2009-04-22 15:47       ` Dan Magenheimer
2009-04-23  1:28         ` Dong, Eddie [this message]
2009-04-23  3:20           ` Tian, Kevin
2009-04-23  3:39             ` Dan Magenheimer
2009-04-23  6:15               ` Tian, Kevin
2009-04-23 13:58                 ` Dan Magenheimer
2009-04-22  1:57     ` Xen 4.0 Feature Requests Ryo Tsuruta
2009-04-22 16:14 ` [Xen-devel] " Thiago Camargo Martins Cordeiro
2009-05-03 18:27 ` Sander Eikelenboom
2009-05-03 20:12   ` Paul Schulze
2009-05-04  5:54     ` Re[2]: " Sander Eikelenboom
2009-05-05 14:24       ` Ian Jackson

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=9832F13BD22FB94A829F798DA4A8280501A7FC09FD@pdsmsx503.ccr.corp.intel.com \
    --to=eddie.dong@intel.com \
    --cc=dan.magenheimer@oracle.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xiantao.zhang@intel.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.