From patchwork Thu Aug 27 13:25:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 44260 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 n7RDPA07023639 for ; Thu, 27 Aug 2009 13:25:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752584AbZH0NZG (ORCPT ); Thu, 27 Aug 2009 09:25:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752605AbZH0NZF (ORCPT ); Thu, 27 Aug 2009 09:25:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40364 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752384AbZH0NZE (ORCPT ); Thu, 27 Aug 2009 09:25:04 -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 n7RDP64K008291 for ; Thu, 27 Aug 2009 09:25:07 -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 n7RDP5q1001274; Thu, 27 Aug 2009 09:25:06 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id C5B6818D467; Thu, 27 Aug 2009 16:25:04 +0300 (IDT) Date: Thu, 27 Aug 2009 16:25:04 +0300 From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH] fix misreporting of coalesced interrupts by kvm tracer Message-ID: <20090827132504.GQ30093@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 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/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index fd9e166..5694997 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -376,7 +376,7 @@ static int __apic_accept_irq(struct kvm_lapic *apic, int delivery_mode, result = !apic_test_and_set_irr(vector, apic); trace_kvm_apic_accept_irq(vcpu->vcpu_id, delivery_mode, - trig_mode, vector, result); + trig_mode, vector, !result); if (!result) { if (trig_mode) apic_debug("level trig mode repeatedly for "