From patchwork Tue Jun 7 16:48:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 9162031 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 183C160467 for ; Tue, 7 Jun 2016 16:51:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A2FF27248 for ; Tue, 7 Jun 2016 16:51:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F34372824F; Tue, 7 Jun 2016 16:51:00 +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 AEA1127248 for ; Tue, 7 Jun 2016 16:51:00 +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 1bAKBc-0000Pl-9Y; Tue, 07 Jun 2016 16:49:04 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAKBb-0000MB-82 for xen-devel@lists.xen.org; Tue, 07 Jun 2016 16:49:03 +0000 Received: from [85.158.139.211] by server-4.bemta-5.messagelabs.com id A5/89-10829-EFAF6575; Tue, 07 Jun 2016 16:49:02 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRWlGSWpSXmKPExsVysyfVTffvr7B wgyXPLS2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oyJz7ewFyzkrphy4D5LA+M6ji5GLg4hgU2M EjP7VrNDOKcZJXaf2szUxcjJwSagKXHn8ycwW0RAWuLa58uMIEXMAvMYJc4s3MkOkhAWiJFYe +I2kM3BwSKgKjHrhRtImFfAWeLO96usILaEgJzEyWOTwWxOAReJl89fsoDYQkA1Dxp2MU9g5F 7AyLCKUb04tagstUjXTC+pKDM9oyQ3MTNH19DAVC83tbg4MT01JzGpWC85P3cTI9C/DECwg3F qg/MhRkkOJiVR3qffwsKF+JLyUyozEosz4otKc1KLDzFqcHAIbF67+gKjFEtefl6qkgTvq59A dYJFqempFWmZOcAAhCmV4OBREuHNegeU5i0uSMwtzkyHSJ1iVJQS59UBSQiAJDJK8+DaYEF/i VFWSpiXEegoIZ6C1KLczBJU+VeM4hyMSsK8HiDbeTLzSuCmvwJazAS0mOUr2OKSRISUVAMjq1 N52W6pVxdf780olp3akrXZtsX2UszhexypPhs+fkxydeQ4avL3DI98p8JXH/W/ZawtNgJyWSr KLjsfJHdPlaxN2XHqqSn3Z624u54pt6QvCIYkPr1z2eL7qQ1fq88c3PBtxpGTSsFtGjsq9k35 xb/ilZqB1NWIOdvaK0+zv/r25dPpZesKlViKMxINtZiLihMBE2eaAXUCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-16.tower-206.messagelabs.com!1465318141!27743530!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 32480 invoked from network); 7 Jun 2016 16:49:01 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-16.tower-206.messagelabs.com with SMTP; 7 Jun 2016 16:49:01 -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 AB3F5434; Tue, 7 Jun 2016 09:49:35 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.215.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F1F553F246; Tue, 7 Jun 2016 09:48:59 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 7 Jun 2016 17:48:41 +0100 Message-Id: <1465318123-3090-7-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465318123-3090-1-git-send-email-julien.grall@arm.com> References: <1465318123-3090-1-git-send-email-julien.grall@arm.com> Cc: sstabellini@kernel.org, wei.chen@arm.com, steve.capper@arm.com, Julien Grall , shannon.zhao@linaro.org, shankerd@codeaurora.org Subject: [Xen-devel] [RFC 6/8] Revert "xen/arm: warn the user that we cannot route SPIs to Dom0 on ACPI" 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 This reverts commit f91c84edebe67296e4051af055dbf0adafb13a37. SPI routing for ACPI support will be added in a follow-up patch. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- xen/arch/arm/vgic.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/xen/arch/arm/vgic.c b/xen/arch/arm/vgic.c index 413ff16..ee35683 100644 --- a/xen/arch/arm/vgic.c +++ b/xen/arch/arm/vgic.c @@ -25,8 +25,6 @@ #include #include #include -#include -#include #include @@ -344,22 +342,9 @@ void vgic_enable_irqs(struct vcpu *v, uint32_t r, int n) unsigned long flags; int i = 0; struct vcpu *v_target; - struct domain *d = v->domain; while ( (i = find_next_bit(&mask, 32, i)) < 32 ) { irq = i + (32 * n); - /* Set the irq type and route it to guest only for SPI and Dom0 */ - if( irq_access_permitted(d, irq) && is_hardware_domain(d) && - ( irq >= 32 ) && ( !acpi_disabled ) ) - { - static int log_once = 0; - if ( !log_once ) - { - gprintk(XENLOG_WARNING, "Routing SPIs to Dom0 on ACPI systems is unimplemented.\n"); - log_once++; - } - } - v_target = __vgic_get_target_vcpu(v, irq); p = irq_to_pending(v_target, irq); set_bit(GIC_IRQ_GUEST_ENABLED, &p->status);