From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWix2-0005vf-3o for qemu-devel@nongnu.org; Wed, 28 Mar 2007 20:57:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWiwz-0005t9-D2 for qemu-devel@nongnu.org; Wed, 28 Mar 2007 20:57:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWiwy-0005t1-QH for qemu-devel@nongnu.org; Wed, 28 Mar 2007 19:57:12 -0500 Received: from vms048pub.verizon.net ([206.46.252.48]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWiuR-000232-RF for qemu-devel@nongnu.org; Wed, 28 Mar 2007 20:54:35 -0400 Received: from localhost ([68.163.130.64]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JFN000003UIEBL3@vms048.mailsrvcs.net> for qemu-devel@nongnu.org; Wed, 28 Mar 2007 19:54:18 -0500 (CDT) Date: Wed, 28 Mar 2007 20:54:32 -0400 From: Thomas Tuttle Message-id: <20070329005432.GA10266@lion> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=YiEDa0DAkWCtVeE4 Content-disposition: inline Subject: [Qemu-devel] Clock runs at double speed in guest Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi. I have a 64-bit dual-core (Core 2 Duo) laptop, and I'm trying to install Gentoo AMD64 on a Qemu virtual machine. The system clock runs at double speed. If I run `date' in a tight loop, I can see it ticking off two seconds for every one second of real time. The hardware clock does not run at double speed; if I run `hwclock --hctosys', the system clock jumps back to the right time. I have tried: 1) Setting the host's RTC's max-user-freq to 1024 2) Setting the guest's RTC's max-user-freq to 1024, just for good measure 3) Running the host with the CPU frequency locked to the minimum (1 GHz) 4) Running the host with the CPU frequency locked to the maximum (2 GHz) This problem does not occur if: 1) The guest is booted with the kernel parameter "nolapic" 2) The guest is a 32-bit kernel 3) I manually modify hw/mc146818rtc.c to send interrupts half as often. I'd really like to get this fixed, because it's the only barrier to me being able to use Qemu (and KVM) for arch testing Gentoo. If there's any more information I can provide (if you need access to the machine, it could be arranged), please don't hesitate to ask. I am not subscribed to qemu-devel, so please CC me on replies. Thanks, Thomas Tuttle --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGCw5I/UG6u69REsYRArASAJsG0DkNpkOXhtAv4j/j5bsI0UoX0gCcDNUu Fx9TqPYegNzVaCqhI4MVTFg= =8a0j -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--