From patchwork Thu Sep 3 09:10:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 45329 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n839AdkT025344 for ; Thu, 3 Sep 2009 09:10:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754480AbZICJKe (ORCPT ); Thu, 3 Sep 2009 05:10:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754079AbZICJKe (ORCPT ); Thu, 3 Sep 2009 05:10:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26114 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754067AbZICJKd (ORCPT ); Thu, 3 Sep 2009 05:10:33 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n839Aag5019229 for ; Thu, 3 Sep 2009 05:10:36 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n839AYjZ022040; Thu, 3 Sep 2009 05:10:35 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 4B13618D467; Thu, 3 Sep 2009 12:10:34 +0300 (IDT) Date: Thu, 3 Sep 2009 12:10:34 +0300 From: Gleb Natapov To: mtosatti@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH] Fix coalesced interrupt reporting in IOAPIC Message-ID: <20090903091034.GB30093@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This bug was introduced by b4a2f5e723e4f7df46731106faf9e2405673c073 Signed-off-by: Gleb Natapov --- Gleb. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index e9de458..38a2d20 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c @@ -194,6 +194,8 @@ int kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level) if ((edge && old_irr != ioapic->irr) || (!edge && !entry.fields.remote_irr)) ret = ioapic_service(ioapic, irq); + else + ret = 0; /* report coalesced interrupt */ } trace_kvm_ioapic_set_irq(entry.bits, irq, ret == 0); }