qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Dor Laor <dlaor@redhat.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH] Add reset irq state for ps2 reboot callback.
Date: Thu, 22 Jan 2009 01:32:53 +0200	[thread overview]
Message-ID: <4977B0A5.1080108@redhat.com> (raw)

[-- 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


             reply	other threads:[~2009-01-21 23:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-21 23:32 Dor Laor [this message]
2009-01-26 15:58 ` [Qemu-devel] [PATCH] Add reset irq state for ps2 reboot callback Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4977B0A5.1080108@redhat.com \
    --to=dlaor@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).