From patchwork Fri Nov 6 18:26:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 37877 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B53BAB7088 for ; Sat, 7 Nov 2009 05:32:00 +1100 (EST) Received: from localhost ([127.0.0.1]:59619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6TbJ-0006Aq-Vg for incoming@patchwork.ozlabs.org; Fri, 06 Nov 2009 13:31:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N6TWH-0000Bv-Em for qemu-devel@nongnu.org; Fri, 06 Nov 2009 13:26:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N6TW9-0008RF-Q7 for qemu-devel@nongnu.org; Fri, 06 Nov 2009 13:26:41 -0500 Received: from [199.232.76.173] (port=44862 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6TW9-0008Qg-Gr for qemu-devel@nongnu.org; Fri, 06 Nov 2009 13:26:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:23062) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N6TW9-0001iF-5q for qemu-devel@nongnu.org; Fri, 06 Nov 2009 13:26:37 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nA6IQa1S024682; Fri, 6 Nov 2009 13:26:36 -0500 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nA6IQUhX029342; Fri, 6 Nov 2009 13:26:35 -0500 From: Glauber Costa To: qemu-devel@nongnu.org Date: Fri, 6 Nov 2009 16:26:25 -0200 Message-Id: <1257531990-19437-4-git-send-email-glommer@redhat.com> In-Reply-To: <1257531990-19437-3-git-send-email-glommer@redhat.com> References: <1257531990-19437-1-git-send-email-glommer@redhat.com> <1257531990-19437-2-git-send-email-glommer@redhat.com> <1257531990-19437-3-git-send-email-glommer@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH 3/8] provide apic_set_irq_delivered X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org i8259 chip will use it, so provide it, and export it through pc.h Signed-off-by: Glauber Costa --- hw/apic.c | 5 +++++ hw/pc.h | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index c89008e..a445c7f 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -388,6 +388,11 @@ void apic_reset_irq_delivered(void) apic_irq_delivered = 0; } +void apic_set_irq_delivered(void) +{ + apic_irq_delivered = 1; +} + int apic_get_irq_delivered(void) { return apic_irq_delivered; diff --git a/hw/pc.h b/hw/pc.h index 3e0c8ec..478f70c 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -46,6 +46,7 @@ int apic_get_interrupt(CPUState *env); qemu_irq *ioapic_init(void); void ioapic_set_irq(void *opaque, int vector, int level); void apic_reset_irq_delivered(void); +void apic_set_irq_delivered(void); int apic_get_irq_delivered(void); qemu_irq *kvm_ioapic_init(void);