All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "dan.magenheimer@oracle.com" <dan.magenheimer@oracle.com>
Cc: Andi Kleen <andi@firstfloor.org>,
	"Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>
Subject: Re: RE: Guest TSC and Xen (Intel and AMD feedback please)
Date: Tue, 01 Jul 2008 18:08:13 -0700	[thread overview]
Message-ID: <486AD4FD.8070808@goop.org> (raw)
In-Reply-To: <20080701154325906.00000003744@djm-pc>

Dan Magenheimer wrote:
> Hi Andy --
>
> Thanks for the reply.
>
> No, I don't think the TSC offset capabilities in VT are sufficient.
> If you are migrating from a TSC-synchronized SMP system and TSC
> was selected as the clocksource by the guest at boot *because* TSC
> is always synchronized, and then you migrate to a system where TSC
> is not synchronized, Xen can synchronize it once at migrate time
> but then the TSC's on the target system will immediately start to
> diverge.  So TSC might be a reasonable clocksource on the first
> system but not on the target system.  One could of course use
> CPUID to disallow a TSC-unsynchronized host as a suitable target
> for a TSC-synchronized-assumed guest, but that seems overly restrictive,
> especially if TSC wasn't selected as the clocksource for the guest
> and/or the guest (and its apps) isn't particularly time-sensitive.
>   

Linux (as in, relatively modern kernels, at least) will downgrade the 
tsc if it starts misbehaving.  This can happen, for example, if the tsc 
seems fine on initial inspection, but then starts misbehaving when the 
cpu frequency changes.

On the other hand, if its a modern kernel you may as well use a pv linux 
kernel and get a proper pv clocksource.

This is an area in which kernel behaviour has been changing a lot over 
the last few years, so its hard to guess what any given kernel version 
(+hacked by vendor) will do in this case...

    J

  reply	other threads:[~2008-07-02  1:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <878wwltk01.fsf@basil.nowhere.org>
2008-07-01 21:43 ` Guest TSC and Xen (Intel and AMD feedback please) Dan Magenheimer
2008-07-02  1:08   ` Jeremy Fitzhardinge [this message]
2008-07-02  3:21   ` Tian, Kevin
2008-07-03  1:26     ` Dan Magenheimer

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=486AD4FD.8070808@goop.org \
    --to=jeremy@goop.org \
    --cc=andi@firstfloor.org \
    --cc=dan.magenheimer@oracle.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.