Skip to contentSkip to conversation

qemu-kvm: Fix in-kernel PIT reset

PATCH Applied Jan Kiszka 2 participants 2 messages Jun 27, 2011 – Jun 28, 2011 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 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.

---
 hw/i8254.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
hw/i8254.c +3 -0
index 33974db..824d5c7 100644
@@ -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
Signature · 1 line
1.7.1
Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

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.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function