From: Dan Magenheimer Subject: RE: TSC scaling and softtsc reprise, and PROPOSAL Date: Mon, 3 Aug 2009 13:19:03 -0700 (PDT) Message-ID: <37f5585d-678b-4394-a641-f5e2a29057d9@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 , Ian Pratt , "Zhang, Xiantao" , "Xen-Devel (E-mail)" Cc: "Dong, Eddie" , John Levon List-Id: xen-devel@lists.xenproject.org FYI, I have confirmed with a VMware expert that TSC is always emulated (unless a flag is set). > -----Original Message----- > From: Keir Fraser [mailto:keir.fraser@eu.citrix.com] > Sent: Monday, July 27, 2009 1:55 PM > To: Dan Magenheimer; Ian Pratt; Zhang, Xiantao; Xen-Devel (E-mail) > Cc: John Levon; Dong, Eddie > Subject: Re: TSC scaling and softtsc reprise, and PROPOSAL >=20 >=20 > On 27/07/2009 18:25, "Dan Magenheimer"=20 > wrote: >=20 > >> 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). > >>=20 > >> -- Keir > >=20 > > 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) >=20 > Yes, then it sounds like they virtualise it for apps too.=20 > 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=20 > guest-app RDTSCs. >=20 > Interesting... >=20 > -- Keir >=20 >=20 >