From: "Jan Beulich" Subject: Re: rdtsc hypercall, from userland?!? (was: rdtsc: correctness vs performance on Xen) Date: Thu, 10 Sep 2009 11:04:37 +0100 Message-ID: <4AA8EB55020000780001478B@vpn.id2.novell.com> References: <6dfe825c-f49e-402e-81d0-e8eaee3c9cda@default> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <6dfe825c-f49e-402e-81d0-e8eaee3c9cda@default> Content-Disposition: inline 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 Cc: Jeremy Fitzhardinge , "Xen-Devel (E-mail)" , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> Dan Magenheimer 09.09.09 20:05 >>> >(Note these measurements are normal kernel-land >hypercalls.) Currently all hypercalls from userland >are illegal, but this need not be the case for ALL >hypercalls. Is it possible >for Xen to implement a "rdtsc hypercall" that >is executable from userland, without requiring >OS changes? Early discussions look promising. While possible, I'd suspect that the good performance you see for 64-bits wouldn't hold: You can't (without potential for ambiguity) re-use syscall for this purpose, and the alternative ways (interrupt or call gate) are likely to be more in the performance range of what you measured for 32-bits, which doesn't seem that much better than emulated rdtsc. Jan