From: Dan Magenheimer Subject: RE: rdtsc: correctness vs performance on Xen (and KVM?) Date: Tue, 1 Sep 2009 08:26:17 -0700 (PDT) Message-ID: <382878d4-f980-45e7-ab49-694344386c42@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 , Jeremy Fitzhardinge Cc: "Xen-Devel (E-mail)" , Alan Cox List-Id: xen-devel@lists.xenproject.org > On 01/09/2009 15:53, "Dan Magenheimer"=20 > wrote: >=20 > > 1) fake rdmsr (or hypercall if it works) returns a virtual > > address within a range of addresses that is not "owned by" > > the OS (e.g. maybe in Xen address space?). The page is > > only readable outside of ring 0, but writeable in ring 0 > > (by Xen). > > 2) All TLB misses on this page are handled directly by Xen > > so the OS never sees the address/page. >=20 > I think these are probably possible, at least for a 64-bit=20 > hypervisor which > isn't playing segment limit tricks. Will it work for pv32_on_64? (I don't care much about 32-bit hypervisor.) =20 > > 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?