WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] emulated tsc and frequency info

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] emulated tsc and frequency info
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Tue, 20 Jul 2010 13:52:36 +0200
Cc: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 20 Jul 2010 04:53:32 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=juergen.gross@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1279626869; x=1311162869; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; z=Message-ID:=20<4C458E04.4070807@xxxxxxxxxxxxxx>|Date:=20 Tue,=2020=20Jul=202010=2013:52:36=20+0200|From:=20Juergen =20Gross=20<juergen.gross@xxxxxxxxxxxxxx>|MIME-Version: =201.0|To:=20Keir=20Fraser=20<keir.fraser@xxxxxxxxxxxxx> |CC:=20"xen-devel@xxxxxxxxxxxxxxxxxxx"=20<xen-devel@lists .xensource.com>,=20=0D=0A=20Dan=20Magenheimer=20<dan.mage nheimer@xxxxxxxxxx>|Subject:=20Re:=20[Xen-devel]=20emulat ed=20tsc=20and=20frequency=20info|References:=20<C86B324F .1B0BD%keir.fraser@xxxxxxxxxxxxx>|In-Reply-To:=20<C86B324 F.1B0BD%keir.fraser@xxxxxxxxxxxxx> |Content-Transfer-Encoding:=207bit; bh=qZTvx/kpXm3W61FL2MP6SyvogJMWlQu10ABwQkfl5KM=; b=onRNfOX95+tEGfzqIYEYRfAoXaNldjnuqPqQbfwXQI6NhKuww5Dx3wA7 rRN5EyTTQtEmNK5k2PttWItG6QnGz6d3n9gBJc+IiBakC+5qQec9ANT5P +QTVrOyLCtTTjSGTueuK8fmKvvCOJQsO4w9n07WvqwD6n6bLWaMlO1AqK bEqVjWwyWLPEnAMNngb8IIn/Fws7I3i60ldc8JWFIZEjqQXVQeaou+2pI 35Md4E79DYPcg1KHE0/O+2Q8w8eb0;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=XqBK1dJHkPtjBL9MLOW2Lv0E5NQTCiNjoTeFgBJLodqch0+uONGIsh02 CZzpFsoBWKyuSqq1U5bliqtyRIWynqLv/5dxl63cnwAYBvr8lTzRmZkX7 LaOrgveRFihD0fCrJ8ljn2QsX6FCQb5C1ASeC/jUr4Cyi6+XRG7mFjNRI /pA0BocW15qXiHK9tKtJ5SC5q8vGsy/ZHqVdS99VrzBUHsrKrEr8H4I46 Qe4tPBdcah/QDj+Cx5PT54Sj0ofdI;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C86B324F.1B0BD%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Fujitsu Technology Solutions
References: <C86B324F.1B0BD%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Iceowl/1.0b1 Icedove/3.0.5
On 07/20/2010 12:00 PM, Keir Fraser wrote:
On 20/07/2010 10:20, "Juergen Gross"<juergen.gross@xxxxxxxxxxxxxx>  wrote:

with xen 4.0 and xen-unstable I see weird tsc information in my HVM-domain
with PV-driver, if xen chooses to emulate tsc (d->arch.vtsc is set):

correction: only xen 4.0 is affected!
xen-unstable does the scaling correctly.


In the shared info page the tsc_to_system_mul is still reflecting the host
cpu frequency instead of the emulated 1 GHz.

The reason is quite simple: tsc_set_info() is never called with a gtsc_khz
value other than 0. I wonder which solution is the correct one:
- if tsc_set_info() is called with gtsc_khz=0, assume 1 GHz (my favorite).

That sounds best to me. Cc'ing Dan as he may have an opinion.

  -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel




--
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@xxxxxxxxxxxxxx
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>