From: TeLeMan <geleman@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [RFC PATCH] ACPI timer fix
Date: Wed, 12 Dec 2007 06:36:44 -0800 (PST) [thread overview]
Message-ID: <14296430.post@talk.nabble.com> (raw)
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.
reply other threads:[~2007-12-12 14:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14296430.post@talk.nabble.com \
--to=geleman@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).