From: Keir Fraser Subject: Re: Bizarre pv kernel ultra-high frequency rdtsc?!? Date: Sat, 21 Nov 2009 21:45:24 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , Jeremy Fitzhardinge Cc: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 20/11/2009 23:45, "Dan Magenheimer" wrote: > - _u.tsc_timestamp = t->stime_local_stamp; > - _u.system_time = t->stime_local_stamp; > + _u.tsc_timestamp = t->stime_local_stamp - BIG_OFFSET; > + _u.system_time = t->stime_local_stamp - BIG_OFFSET; Ah, the line above is the bug. You should be subtracting BIG_OFFSET from _u.tsc_timestamp only. Leave _u.system_time as it is. That'll fix all your observed problems. -- Keir