From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [Qemu-devel] Para-Virtualized Clock Usage Date: Wed, 24 Apr 2013 05:27:48 -0300 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 Cc: "Joji Mekkattuparamban (joji)" , "qemu-devel@nongnu.org" , kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43057 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758005Ab3DXV7j (ORCPT ); Wed, 24 Apr 2013 17:59:39 -0400 Content-Disposition: inline In-Reply-To: <20130423055215.GA12401@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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.