[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] emulated tsc and frequency info


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Tue, 20 Jul 2010 11:20:37 +0200
  • Delivery-date: Tue, 20 Jul 2010 02:21:43 -0700
  • 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:Subject:Content-Type: Content-Transfer-Encoding; b=UbXotHa4xnPF5WJ5ECgMks3Co4CQUyoQF62T1QIoTwrjY8HA1aEomN0n j5LkeVcEig9bFf+d17yayxPv3sVXsA4sKLBMWA4F62YjfDgRzqvCKEQpy gHqHNNUqu/3N9cAa+u2Elchkh/3aUzuIHLstZBdBpav2LM2uAg0yoR2jZ qvU1bRd2BH2CJz87uGqtwzckDnV+H3xcc8tm0/26VQeXq9I8KRnKBPI3O AsPBg5MMSDuAbDT276+Oyf2OTBLi1;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

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):

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).
- don't use 0 as default value for gtsc_khz when calling tsc_set_info()
  (this would require changes in the tools, too).
- let the domU check the vtsc-flag in cpuid-info and assume 1 GHz then (very
  ugly in my opinion).

Any thoughts?


Juergen

--
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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.