From patchwork Fri Apr 7 22:08:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 9670561 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3C2ED602A0 for ; Fri, 7 Apr 2017 22:12:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E18D2860E for ; Fri, 7 Apr 2017 22:12:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 22FF828647; Fri, 7 Apr 2017 22:12:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D508B2860E for ; Fri, 7 Apr 2017 22:12:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwc5J-0000LE-4B; Fri, 07 Apr 2017 22:10:25 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwc5H-0000He-Id for xen-devel@lists.xenproject.org; Fri, 07 Apr 2017 22:10:23 +0000 Received: from [85.158.139.211] by server-3.bemta-5.messagelabs.com id CE/CE-01936-E4E08E85; Fri, 07 Apr 2017 22:10:22 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRWlGSWpSXmKPExsVysyfVTdeP70W EweuzShbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8ayP39YCrbwVHQfs2pgfMzVxcjFISSwiVHi 0/luFghnL6PEsm872LoYOTnYBHQldtx8zQxiiwiESsz5+YgZpIhZYA2jRPunp6wgCWEBJ4nWi dNZQGwWAVWJxx+XgzXzCrhLtG37y97FyMEhISAnceVfAkiYEyh8aMoysBIhATeJG+2rWCYwci 9gZFjFqF6cWlSWWqRroZdUlJmeUZKbmJmja2hgqpebWlycmJ6ak5hUrJecn7uJEehdBiDYwXi w2fkQoyQHk5Ior4LPkwghvqT8lMqMxOKM+KLSnNTiQ4wyHBxKErzlvC8ihASLUtNTK9Iyc4Bh BpOW4OBREuFN5AFK8xYXJOYWZ6ZDpE4xKkqJ8waC9AmAJDJK8+DaYKF9iVFWSpiXEegQIZ6C1 KLczBJU+VeM4hyMSsK8/iBTeDLzSuCmvwJazAS02OfWU5DFJYkIKakGxqrqjGemiZleem8UXm m1q1cLKLwRP3mW8YfjrO73mfl67HUyP9oTX70Xnfox99UG36wPK+eyFn6e8Uik4N1ygdlLrzH P1ehv2dr8xn4j7z+NV3w+W9vefTT/010uYLjy3cmfQatq5h99eS7h9RNVrgX6prFFX2SrLW6Z cSda+JbFbJphM+WgsBJLcUaioRZzUXEiAOSo3tZoAgAA X-Env-Sender: andre.przywara@arm.com X-Msg-Ref: server-4.tower-206.messagelabs.com!1491603022!92458599!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 61053 invoked from network); 7 Apr 2017 22:10:22 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-4.tower-206.messagelabs.com with SMTP; 7 Apr 2017 22:10:22 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C3FE2B16; Fri, 7 Apr 2017 15:10:21 -0700 (PDT) Received: from slackpad.lan (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2D0243F3E1; Fri, 7 Apr 2017 15:10:20 -0700 (PDT) From: Andre Przywara To: Stefano Stabellini , Julien Grall Date: Fri, 7 Apr 2017 23:08:09 +0100 Message-Id: <1491602906-10587-18-git-send-email-andre.przywara@arm.com> X-Mailer: git-send-email 2.8.2 In-Reply-To: <1491602906-10587-1-git-send-email-andre.przywara@arm.com> References: <1491602906-10587-1-git-send-email-andre.przywara@arm.com> Cc: xen-devel@lists.xenproject.org, Vijaya Kumar K , Vijay Kilari , Shanker Donthineni Subject: [Xen-devel] [PATCH v7 17/34] ARM: GIC: export vgic_init_pending_irq() X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP For LPIs we later want to dynamically allocate struct pending_irqs. Let's export the vgic_init_pending_irq() to be able to reuse it. Signed-off-by: Andre Przywara --- xen/arch/arm/vgic.c | 2 +- xen/include/asm-arm/vgic.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/vgic.c b/xen/arch/arm/vgic.c index 5c68fe7..1bc3dc7 100644 --- a/xen/arch/arm/vgic.c +++ b/xen/arch/arm/vgic.c @@ -61,7 +61,7 @@ struct vgic_irq_rank *vgic_rank_irq(struct vcpu *v, unsigned int irq) return vgic_get_rank(v, rank); } -static void vgic_init_pending_irq(struct pending_irq *p, unsigned int virq) +void vgic_init_pending_irq(struct pending_irq *p, unsigned int virq) { INIT_LIST_HEAD(&p->inflight); INIT_LIST_HEAD(&p->lr_queue); diff --git a/xen/include/asm-arm/vgic.h b/xen/include/asm-arm/vgic.h index 6cab6ca..978bc37 100644 --- a/xen/include/asm-arm/vgic.h +++ b/xen/include/asm-arm/vgic.h @@ -302,6 +302,7 @@ extern struct vcpu *vgic_get_target_vcpu(struct vcpu *v, unsigned int virq); extern void vgic_vcpu_inject_irq(struct vcpu *v, unsigned int virq); extern void vgic_vcpu_inject_spi(struct domain *d, unsigned int virq); extern void vgic_clear_pending_irqs(struct vcpu *v); +extern void vgic_init_pending_irq(struct pending_irq *p, unsigned int virq); extern struct pending_irq *irq_to_pending(struct vcpu *v, unsigned int irq); extern struct pending_irq *spi_to_pending(struct domain *d, unsigned int irq); extern struct vgic_irq_rank *vgic_rank_offset(struct vcpu *v, int b, int n, int s);