From: Dan Magenheimer Subject: RE: Bizarre pv kernel ultra-high frequency rdtsc?!? Date: Sat, 21 Nov 2009 14:05:01 -0800 (PST) Message-ID: <4c03e97b-0789-4724-80ad-6a73ce575dda@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable 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: Keir Fraser , Jeremy Fitzhardinge Cc: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org Yes, that does indeed fix it. Thanks very much! Now, onward to scaling! (Necessary when the PV kernel boots on "tsc safe" hardware but then migrates.) Thanks again! Dan > -----Original Message----- > From: Keir Fraser [mailto:keir.fraser@eu.citrix.com] > Sent: Saturday, November 21, 2009 2:45 PM > To: Dan Magenheimer; Jeremy Fitzhardinge > Cc: Xen-Devel (E-mail) > Subject: Re: Bizarre pv kernel ultra-high frequency rdtsc?!? >=20 >=20 > On 20/11/2009 23:45, "Dan Magenheimer"=20 > wrote: >=20 > > - _u.tsc_timestamp =3D t->stime_local_stamp; > > - _u.system_time =3D t->stime_local_stamp; > > + _u.tsc_timestamp =3D t->stime_local_stamp - BIG_OFFSET; > > + _u.system_time =3D t->stime_local_stamp - BIG_OFFSET; >=20 > Ah, the line above is the bug. You should be subtracting=20 > BIG_OFFSET from > _u.tsc_timestamp only. Leave _u.system_time as it is. That'll=20 > fix all your > observed problems. >=20 > -- Keir >=20 >=20 >