[PATCH] qemu-kvm: Fix in-kernel PIT reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux