From patchwork Fri Feb 26 20:12:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 82448 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1QKD36c019498 for ; Fri, 26 Feb 2010 20:13:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966001Ab0BZUMb (ORCPT ); Fri, 26 Feb 2010 15:12:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62624 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965997Ab0BZUM3 (ORCPT ); Fri, 26 Feb 2010 15:12:29 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1QKCSqe005972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 26 Feb 2010 15:12:28 -0500 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1QKCMPM012766; Fri, 26 Feb 2010 15:12:27 -0500 From: Glauber Costa To: kvm@vger.kernel.org Cc: mtosatti@redhat.com Subject: [PATCH 03/10] provide apic_set_irq_delivered Date: Fri, 26 Feb 2010 17:12:14 -0300 Message-Id: <1267215141-13629-4-git-send-email-glommer@redhat.com> In-Reply-To: <1267215141-13629-3-git-send-email-glommer@redhat.com> References: <1267215141-13629-1-git-send-email-glommer@redhat.com> <1267215141-13629-2-git-send-email-glommer@redhat.com> <1267215141-13629-3-git-send-email-glommer@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 26 Feb 2010 20:13:03 +0000 (UTC) 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 8ccdf63..cad735a 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);