From: Keir Fraser Subject: Re: RE: rdtsc: correctness vs performance on Xen (and KVM?) Date: Tue, 01 Sep 2009 17:06:00 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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: Dan Magenheimer , Jan Beulich , Jeremy Fitzhardinge Cc: "Xen-Devel (E-mail)" , Alan Cox List-Id: xen-devel@lists.xenproject.org On 01/09/2009 16:56, "Dan Magenheimer" wrote: >> Not within today's Xen or Linux (which both assume a global kernel >> address space, in particular non-root page table entries >> mapping kernel >> space to be the same in all address spaces - you'd need >> separate entries >> at all levels for this). > > OK, I forgot: No software-accessible TLB. > > Can you think of any trick (that doesn't require the cost of a > trap/hypercall) to allow an app to determine what pcpu > it is running on? I can't think of any that don't require kernel modifications. Which takes us back to considering vsyscall, perhaps. -- Keir