From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J2Shc-0003om-SM for qemu-devel@nongnu.org; Wed, 12 Dec 2007 09:36:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J2Sha-0003mP-TX for qemu-devel@nongnu.org; Wed, 12 Dec 2007 09:36:48 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2Sha-0003m2-Kf for qemu-devel@nongnu.org; Wed, 12 Dec 2007 09:36:46 -0500 Received: from kuber.nabble.com ([216.139.236.158]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J2Sha-0003KW-CC for qemu-devel@nongnu.org; Wed, 12 Dec 2007 09:36:46 -0500 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1J2ShY-0001YO-TW for qemu-devel@nongnu.org; Wed, 12 Dec 2007 06:36:44 -0800 Message-ID: <14296430.post@talk.nabble.com> Date: Wed, 12 Dec 2007 06:36:44 -0800 (PST) From: TeLeMan Subject: [Qemu-devel] [RFC PATCH] ACPI timer fix MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 tmr_overflow_time is updated only once on guest Windows, so ACPI timer interrupt is raised only twice. My solution is that tmr_overflow_time is updated every time after setting expired_time. I tested it on Windows XP, not sure on other guest OS . acpi.patch: --- qemu.orig/hw/acpi.c Wed Dec 12 22:12:56 2007 +++ qemu/hw/acpi.c Wed Dec 12 22:14:00 2007 @@ -102,6 +102,7 @@ static void pm_update_sci(PIIX4PMState * if ((s->pmen & TMROF_EN) && !(pmsts & TMROF_EN)) { expire_time = muldiv64(s->tmr_overflow_time, ticks_per_sec, PM_FREQ); qemu_mod_timer(s->tmr_timer, expire_time); + s->tmr_overflow_time+=0x800000LL; } else { qemu_del_timer(s->tmr_timer); } http://www.nabble.com/file/p14296430/acpi.patch acpi.patch -- View this message in context: http://www.nabble.com/-RFC-PATCH--ACPI-timer-fix-tp14296430p14296430.html Sent from the QEMU - Dev mailing list archive at Nabble.com.