From patchwork Wed Dec 2 13:46:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 40062 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 42714B7BED for ; Thu, 3 Dec 2009 03:18:55 +1100 (EST) Received: from localhost ([127.0.0.1]:60968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFrum-0004Gh-95 for incoming@patchwork.ozlabs.org; Wed, 02 Dec 2009 11:18:52 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFpXI-0004W9-QN for qemu-devel@nongnu.org; Wed, 02 Dec 2009 08:46:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFpXD-0004PP-Ra for qemu-devel@nongnu.org; Wed, 02 Dec 2009 08:46:27 -0500 Received: from [199.232.76.173] (port=58095 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFpXD-0004P6-M7 for qemu-devel@nongnu.org; Wed, 02 Dec 2009 08:46:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:12491) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFpXD-00041c-Bf for qemu-devel@nongnu.org; Wed, 02 Dec 2009 08:46:23 -0500 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 nB2DkMrT020310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Dec 2009 08:46:22 -0500 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nB2DkGtW025779; Wed, 2 Dec 2009 08:46:21 -0500 From: Glauber Costa To: qemu-devel@nongnu.org Date: Wed, 2 Dec 2009 11:46:09 -0200 Message-Id: <1259761575-3953-4-git-send-email-glommer@redhat.com> In-Reply-To: <1259761575-3953-3-git-send-email-glommer@redhat.com> References: <1259761575-3953-1-git-send-email-glommer@redhat.com> <1259761575-3953-2-git-send-email-glommer@redhat.com> <1259761575-3953-3-git-send-email-glommer@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: aliguori@us.ibm.com, avi@redhat.com Subject: [Qemu-devel] [PATCH 3/9] 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 87e7dc0..482bb1e 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 a3ad931..4c9b4c3 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -47,6 +47,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);