From: Andi Kleen Subject: Re: [RFC, PATCH 17/24] i386 Vmi msr patch Date: Wed, 22 Mar 2006 21:21:32 +0100 Message-ID: <200603222121.34117.ak@suse.de> References: <200603131812.k2DICGJE005747@zach-dev.vmware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200603131812.k2DICGJE005747@zach-dev.vmware.com> Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org To: virtualization@lists.osdl.org Cc: Zachary Amsden , Linus Torvalds , Linux Kernel Mailing List , Xen-devel , Andrew Morton , Dan Hecht , Dan Arai , Anne Holler , Pratap Subrahmanyam , Christopher Li , Joshua LeVasseur , Chris Wright , Rik Van Riel , Jyothy Reddy , Jack Lo , Kip Macy , Jan Beulich , Ky Srinivasan , Wim Coekaerts , Leendert van Doorn List-Id: xen-devel@lists.xenproject.org > -#define rdtsc(low,high) \ > - __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high)) > - > -#define rdtscl(low) \ > - __asm__ __volatile__("rdtsc" : "=a" (low) : : "edx") > - > -#define rdtscll(val) \ > - __asm__ __volatile__("rdtsc" : "=A" (val)) > - > -#define write_tsc(val1,val2) wrmsr(0x10, val1, val2) > - > -#define rdpmc(counter,low,high) \ > - __asm__ __volatile__("rdpmc" \ > - : "=a" (low), "=d" (high) \ > - : "c" (counter)) The kernel doesn't use rdpmc. And moving rdtsc is useless as I wrote earlier. But mostly it is used from user space and you will break everything there. -Andi