From patchwork Mon Sep 28 21:15:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 34397 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 E3B9AB7C0C for ; Tue, 29 Sep 2009 07:21:08 +1000 (EST) Received: from localhost ([127.0.0.1]:38034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsNea-0001cj-VG for incoming@patchwork.ozlabs.org; Mon, 28 Sep 2009 17:21:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsNZD-0008Va-1G for qemu-devel@nongnu.org; Mon, 28 Sep 2009 17:15:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsNZ8-0008Tu-GO for qemu-devel@nongnu.org; Mon, 28 Sep 2009 17:15:30 -0400 Received: from [199.232.76.173] (port=49504 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsNZ8-0008Tp-9d for qemu-devel@nongnu.org; Mon, 28 Sep 2009 17:15:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1109) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsNZ7-0001x7-TL for qemu-devel@nongnu.org; Mon, 28 Sep 2009 17:15:26 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8SLFOHG022287; Mon, 28 Sep 2009 17:15:25 -0400 Received: from localhost.localdomain (vpn-13-41.rdu.redhat.com [10.11.13.41]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8SLFHk2017993; Mon, 28 Sep 2009 17:15:23 -0400 From: Glauber Costa To: qemu-devel@nongnu.org Date: Mon, 28 Sep 2009 18:15:14 -0300 Message-Id: <1254172517-28216-4-git-send-email-glommer@redhat.com> In-Reply-To: <1254172517-28216-3-git-send-email-glommer@redhat.com> References: <1254172517-28216-1-git-send-email-glommer@redhat.com> <1254172517-28216-2-git-send-email-glommer@redhat.com> <1254172517-28216-3-git-send-email-glommer@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 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/6] 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 b3f5179..f6b5542 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -392,6 +392,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 c9cdd4a..f7c1a88 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -45,6 +45,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); /* i8254.c */