Add reset irq state for ps2 reboot callback (Dor Laor)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 26 Jan 2009 15:57:52 +0000 (15:57 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 26 Jan 2009 15:57:52 +0000 (15:57 +0000)
Should solve 100% cpu ioport poll after reboot.

Signed-off-by: Dor Laor <dor@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6445 c046a42c-6fe2-441c-8c8c-71466251a162

hw/ps2.c

index 054b92f..fb77005 100644 (file)
--- a/hw/ps2.c
+++ b/hw/ps2.c
@@ -497,6 +497,7 @@ static void ps2_reset(void *opaque)
     q->rptr = 0;
     q->wptr = 0;
     q->count = 0;
+    s->update_irq(s->update_arg, 0);
 }
 
 static void ps2_common_save (QEMUFile *f, PS2State *s)