qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Add reset irq state for ps2 reboot callback.
@ 2009-01-21 23:32 Dor Laor
  2009-01-26 15:58 ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: Dor Laor @ 2009-01-21 23:32 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 468 bytes --]

Should solve 100% cpu ioport poll after reboot.

Signed-off-by: Dor Laor <dor@redhat.com>
---
 hw/ps2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/ps2.c b/hw/ps2.c
index 054b92f..fb77005 100644
--- 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)


[-- Attachment #2: 0001-Add-reset-irq-state-for-ps2-reboot-callback.patch --]
[-- Type: text/plain, Size: 685 bytes --]

>From 01d8a8312b2425227a4828d27b940decd67b7f00 Mon Sep 17 00:00:00 2001
From: Dor Laor <dor@redhat.com>
Date: Thu, 22 Jan 2009 01:27:57 +0200
Subject: [PATCH] Add reset irq state for ps2 reboot callback.
 Should solve 100% cpu ioport poll after reboot.

Signed-off-by: Dor Laor <dor@redhat.com>
---
 hw/ps2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/ps2.c b/hw/ps2.c
index 054b92f..fb77005 100644
--- 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)
-- 
1.5.6.6


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

end of thread, other threads:[~2009-01-26 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21 23:32 [Qemu-devel] [PATCH] Add reset irq state for ps2 reboot callback Dor Laor
2009-01-26 15:58 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).