public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] qemu-kvm: Fix in-kernel PIT reset
@ 2011-06-27 10:23 Jan Kiszka
  2011-06-28  8:20 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2011-06-27 10:23 UTC (permalink / raw)
  To: Avi Kivity, Marcelo Tosatti; +Cc: kvm

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] qemu-kvm: Fix in-kernel PIT reset
  2011-06-27 10:23 [PATCH] qemu-kvm: Fix in-kernel PIT reset Jan Kiszka
@ 2011-06-28  8:20 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2011-06-28  8:20 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Marcelo Tosatti, kvm

On 06/27/2011 01:23 PM, Jan Kiszka wrote:
> 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.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-28  8:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-27 10:23 [PATCH] qemu-kvm: Fix in-kernel PIT reset Jan Kiszka
2011-06-28  8:20 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox