From: Keir Fraser Subject: Re: TSC scaling and softtsc reprise, and PROPOSAL Date: Mon, 27 Jul 2009 20:55:10 +0100 Message-ID: References: <2dce8618-e307-4104-b5da-35435185e9bb@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <2dce8618-e307-4104-b5da-35435185e9bb@default> 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 , Ian Pratt , "Zhang, Xiantao" , "Xen-Devel (E-mail)" Cc: "Dong, Eddie" , John Levon List-Id: xen-devel@lists.xenproject.org On 27/07/2009 18:25, "Dan Magenheimer" wrote: >> I believe this affects the guest OS executing RDTSC, not >> guest apps, and is >> only to delay the TSC to not 'run past' pending timer ticks >> (typically where >> they have been delayed due to the guest being preempted). >> >> -- Keir > > Could be. The text would lead me to believe otherwise > though. Read the section on "Virtual TSC" in the > above PDF. Specifically the Virtual TSC "advances even > when the the virtual CPU is not running" and "In the > past, this feature had sometimes been recommended to > improve performance of APPLICATIONS that read the > TSC frequently..." (my emphasis) Yes, then it sounds like they virtualise it for apps too. Also there is an option to virtualise the TSC at a specified frequency -- that would be pretty weird if it applied only to guest-OS RDTSCs but not guest-app RDTSCs. Interesting... -- Keir