From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV7j2-0000g9-Ju for qemu-devel@nongnu.org; Wed, 24 Apr 2013 17:59:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UV7j1-0006FC-QS for qemu-devel@nongnu.org; Wed, 24 Apr 2013 17:59:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV7j1-0006F1-IS for qemu-devel@nongnu.org; Wed, 24 Apr 2013 17:59:39 -0400 Date: Wed, 24 Apr 2013 05:27:48 -0300 From: Marcelo Tosatti Message-ID: <20130424082748.GA14374@amt.cnet> References: <375D787373987F47B9BF5BA875F1ED8818450330@xmb-rcd-x04.cisco.com> <20130423055215.GA12401@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130423055215.GA12401@redhat.com> Subject: Re: [Qemu-devel] Para-Virtualized Clock Usage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: "Joji Mekkattuparamban (joji)" , "qemu-devel@nongnu.org" , kvm@vger.kernel.org On Tue, Apr 23, 2013 at 08:52:16AM +0300, Gleb Natapov wrote: > On Mon, Apr 22, 2013 at 04:58:01PM +0000, Joji Mekkattuparamban (joji) wrote: > > Greetings, > > > > I have a SMP guest application, running on the 2.6.27 Linux kernel. The application, originally written for bare metal, makes extensive use of the TSC, by directly invoking rdtsc from the user space for timestamp purposes. While running on KVM (RHEL version 6.3), we are running into TSC issues on some hardware. As a solution, I am considering migrating to the pvclock. I am wondering if there is an example for migrating from TSC to the pvclock. Any pointers? > > > Wrong list, you should ask KVM (copied). Recent kernels have pvclock > vdso support which means that gettimeofday() uses it without entering > the kernel. Marcelo? > > -- > Gleb. Converting application to make use of gettimeofday() should be the best way to make use of pvclock, yes.