From: Dan Magenheimer Subject: RE: tsc_mode == 1 and hvm guests Date: Mon, 10 May 2010 08:30:03 -0700 (PDT) Message-ID: References: <509b3e9e-f5b2-46eb-b55e-cfea9091bc49@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Stefano Stabellini Cc: "Xu, Dongxiao" , xen-devel@lists.xensource.com, Keir Fraser , "Zhang, Xiantao" List-Id: xen-devel@lists.xenproject.org > However I can tell you that without the patch when vtsc =3D=3D 1 > hvm_gtsc_need_scale returns 0 therefore scaling is never done. > For this reason I cannot see how the tsc frequency would remain the > same when vtsc =3D=3D 1 and the underling hardware has a different tsc > rate. > The offset would be OK though. I think when vtsc=3D=3D1 (e.g. tsc_mode=3D=3D1), no scaling is done on HVM as the underlying machine is presented to be a 1GHz machine (regardless of the true TSC rate or whether migration had occurred or not). PV also presented only a 1GHz clock for awhile and I changed it (with input from Jeremy as I recall) so that it would be less confusing to end users who might be confused by seeing Linux boot output claiming the underlying machine "is only running at 1GHz!!". There's a large number of different combinations to be tested (and possibly broken) here. I'd prefer to see "I tested this feature on 4.0.0 and it doesn't work" before putting a patch into the stable stream. For xen-unstable I have no problem with the patch of course.