From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Clock running at double speed in guest Date: Tue, 06 Mar 2007 15:34:33 +0200 Message-ID: <45ED6DE9.4060409@qumranet.com> References: <1169857906.30807.52.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: tim.c.chen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org Return-path: In-Reply-To: <1169857906.30807.52.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Tim Chen wrote: > I notice that when I am testing kvm, the clock on guest is running at > twice the speed. Same thing also happen using qemu without kvm. > > I look at my wall clock when I issue the command "time sleep 30". When > the command returns and report 30 sec has elasped, I found that actually > only 15 sec has passed on the wall clock. Perhaps somewhere an extra > clock tick was counted. > > I am using 2.6.20-rc5 on host and 2.6.19 on guest. Test is done on a > dual socket woodcrest machine. > > I've managed to reproduce this briefly. As soon as I started debugging it, however, it went away. Does this reproduce regularly for you? Do you run kvm as a user that has access to /dev/rtc? -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV