From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48712 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUn2u-0000BR-P9 for qemu-devel@nongnu.org; Mon, 20 Dec 2010 16:13:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUn2t-0004nM-H0 for qemu-devel@nongnu.org; Mon, 20 Dec 2010 16:13:28 -0500 Received: from cantor.suse.de ([195.135.220.2]:52983 helo=mx1.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUn2t-0004n4-41 for qemu-devel@nongnu.org; Mon, 20 Dec 2010 16:13:27 -0500 From: Alexander Graf Date: Mon, 20 Dec 2010 22:13:24 +0100 Message-Id: <1292879604-22268-9-git-send-email-agraf@suse.de> In-Reply-To: <1292879604-22268-1-git-send-email-agraf@suse.de> References: <1292879604-22268-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 8/8] ahci: fix !msi interrupts List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Developers Cc: Kevin Wolf , Joerg Roedel , Gerd Hoffmann , Sebastian Herbszt When not using MSI, receiving an interrupt while the interrupt line is active pulses the interrupt line. Without this, guests don't realize that a new interrupt occured. Signed-off-by: Alexander Graf --- hw/ide/ahci.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 97aef68..4c920da 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -153,11 +153,10 @@ static void ahci_check_irq(AHCIState *s) } } + ahci_irq_lower(s, NULL); if (s->control_regs.irqstatus && (s->control_regs.ghc & HOST_CTL_IRQ_EN)) { ahci_irq_raise(s, NULL); - } else { - ahci_irq_lower(s, NULL); } } -- 1.6.0.2