From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eran Rom Subject: Re: guest gettimeofday behavior Date: Mon, 6 Jul 2009 08:24:07 +0000 (UTC) Message-ID: References: <4A4730B9.1090902@redhat.com> <4A49B6A5.4090801@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from main.gmane.org ([80.91.229.2]:38694 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752330AbZGFIYR (ORCPT ); Mon, 6 Jul 2009 04:24:17 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MNjUo-0003Pb-0L for kvm@vger.kernel.org; Mon, 06 Jul 2009 08:24:18 +0000 Received: from nesher3.haifa.il.ibm.com ([192.114.107.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jul 2009 08:24:17 +0000 Received: from eranr by nesher3.haifa.il.ibm.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jul 2009 08:24:17 +0000 Sender: kvm-owner@vger.kernel.org List-ID: Eran Rom il.ibm.com> writes: > > Avi Kivity redhat.com> writes: > > > 2.6.27 has kvmclock. > > > Thanks a lot! > Will try the kvmclock > Eran > Still getting a misbehaving clock: guest uses kvmclock with kernel 2.6.27 host kernel is 2.6.27 with kvm-qemu-87 & kvm-kmod-87 doing: now = gettimeofday goal = now + 10 minutes while (now < goal) { sleep(10) now = gettimeofday print(now) } getting: ... now = 2098031895 now = 2108035868 now = 2118039818 now = 2128043797 now = 2138048010 now = 18446744071562636328 Thanks very much, Eran