From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQ5wv-0004Mr-NW for qemu-devel@nongnu.org; Mon, 25 Apr 2005 11:56:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQ5wu-0004Ma-Jo for qemu-devel@nongnu.org; Mon, 25 Apr 2005 11:56:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQ5wu-0003sB-Ei for qemu-devel@nongnu.org; Mon, 25 Apr 2005 11:56:40 -0400 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DQ5yy-0007D7-O7 for qemu-devel@nongnu.org; Mon, 25 Apr 2005 11:58:49 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DQ5qL-0001Lp-AK for qemu-devel@nongnu.org; Mon, 25 Apr 2005 17:49:53 +0200 Received: from p54a10c29.dip0.t-ipconnect.de ([84.161.12.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Apr 2005 17:49:53 +0200 Received: from hcz by p54a10c29.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Apr 2005 17:49:53 +0200 From: "Heike C. Zimmerer" Date: Mon, 25 Apr 2005 17:44:18 +0200 Message-ID: References: <20050425111532.GA2554@dizzy.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: news Subject: [Qemu-devel] Re: [patch] option -no-tsc for i386 with speedstep Reply-To: hcz@hczim.de, 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 Massimo Dal Zotto writes: > When qemu runs on an i386 cpu with speedstep enabled the clock of the > guest os is not in sync with the clock on the host os because the > vm_timer used for irq 0 generates interrupts at wrong rate when > the host cpu frequency changes. > > The following patch fixes the problem by adding a new option -no-tsc for > the i386 architecture which can be used to disable rdtsc when running on > a cpu with speedstep enabled. Unfortunately this patch, effectively replacing a single assembly instruction by a gettimeofday() call, slows some operations down to a degree that makes a WinXP guest on GNU/Linux host nearly unusable at network and file system operations (at least here). - Heike