path: root/hw
authorJan Kiszka <[email protected]>2011-06-27 10:23:35 (GMT)
committer Avi Kivity <[email protected]>2011-06-28 08:20:08 (GMT)
commitbcd4f22796ebda2934a980060ea704ebedb46173 (patch) (side-by-side diff)
treef16fe58d2d4120c7b94f23ddef3afb61beb30dfc /hw
parent59539c913383fdd3350681301b44f02fa7ee2757 (diff)
qemu-kvm: Fix in-kernel PIT reset
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 <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
Diffstat (limited to 'hw') (more/less context) (ignore whitespace changes)
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