From: Jan Kiszka <jan.kiszka@siemens.com>
To: Avi Kivity <avi@redhat.com>, Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm <kvm@vger.kernel.org>
Subject: [PATCH] qemu-kvm: Fix in-kernel PIT reset
Date: Mon, 27 Jun 2011 12:23:35 +0200 [thread overview]
Message-ID: <4E085A27.4080505@siemens.com> (raw)
Analogously to the PIC, we were lacking sync of the PIT user space
state to the kernel after reset. Fix it pragmatically, the code will be
reworked for upstream anyway.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
hw/i8254.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hw/i8254.c b/hw/i8254.c
index 33974db..824d5c7 100644
--- a/hw/i8254.c
+++ b/hw/i8254.c
@@ -487,6 +487,9 @@ static void pit_reset(DeviceState *dev)
s->gate = (i != 2);
pit_load_count(pit, 0, i);
}
+ if (vmstate_pit.post_load) {
+ vmstate_pit.post_load(pit, 2);
+ }
}
#ifdef TARGET_I386
--
1.7.1
next reply other threads:[~2011-06-27 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-27 10:23 Jan Kiszka [this message]
2011-06-28 8:20 ` [PATCH] qemu-kvm: Fix in-kernel PIT reset Avi Kivity
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=4E085A27.4080505@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/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