From: Dan Magenheimer Subject: RE: RE: rdtsc: correctness vs performance on Xen (and KVM?) Date: Tue, 1 Sep 2009 08:56:12 -0700 (PDT) Message-ID: References: <4A9D5AC30200007800012B74@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4A9D5AC30200007800012B74@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Keir Fraser , Jeremy Fitzhardinge Cc: "Xen-Devel (E-mail)" , Alan Cox List-Id: xen-devel@lists.xenproject.org > >> > If these are OK, and you see other parts of the proposal > >> > that require PV kernel mods, please point them out. > >>=20 > >> Won't the pvclock computation be per-cpu? How will you deal with > >> that? > > > >Hmmm... is it possible for the same virtual address/page > >to map to a different physical address/page on each processor? >=20 > Not within today's Xen or Linux (which both assume a global kernel > address space, in particular non-root page table entries=20 > mapping kernel > space to be the same in all address spaces - you'd need=20 > 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?