From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPmYp-00079j-6G for qemu-devel@nongnu.org; Wed, 21 Jan 2009 18:32:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPmYo-00079L-EQ for qemu-devel@nongnu.org; Wed, 21 Jan 2009 18:32:38 -0500 Received: from [199.232.76.173] (port=55735 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPmYo-00079I-8v for qemu-devel@nongnu.org; Wed, 21 Jan 2009 18:32:38 -0500 Received: from mx2.redhat.com ([66.187.237.31]:58354) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPmYm-0008KG-HB for qemu-devel@nongnu.org; Wed, 21 Jan 2009 18:32:38 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n0LNWYno008331 for ; Wed, 21 Jan 2009 18:32:34 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n0LNWZkE015753 for ; Wed, 21 Jan 2009 18:32:35 -0500 Received: from localhost.localdomain (vpn-14-161.rdu.redhat.com [10.11.14.161]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n0LNWXP4017555 for ; Wed, 21 Jan 2009 18:32:34 -0500 Message-ID: <4977B0A5.1080108@redhat.com> Date: Thu, 22 Jan 2009 01:32:53 +0200 From: Dor Laor MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080401080303020107070000" Subject: [Qemu-devel] [PATCH] Add reset irq state for ps2 reboot callback. Reply-To: dlaor@redhat.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel This is a multi-part message in MIME format. --------------080401080303020107070000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Should solve 100% cpu ioport poll after reboot. Signed-off-by: Dor Laor --- 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) --------------080401080303020107070000 Content-Type: text/plain; name="0001-Add-reset-irq-state-for-ps2-reboot-callback.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="0001-Add-reset-irq-state-for-ps2-reboot-callback.patch" >>From 01d8a8312b2425227a4828d27b940decd67b7f00 Mon Sep 17 00:00:00 2001 From: Dor Laor 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 --- 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 --------------080401080303020107070000--