From patchwork Thu Jul 14 16:22:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 72027 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp165040qga; Thu, 14 Jul 2016 09:24:49 -0700 (PDT) X-Received: by 10.36.206.129 with SMTP id v123mr30024656itg.11.1468513487114; Thu, 14 Jul 2016 09:24:47 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id a124si2038318itd.84.2016.07.14.09.24.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jul 2016 09:24:47 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNjP3-0003W1-BZ; Thu, 14 Jul 2016 16:22:21 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNjP2-0003Uf-0V for xen-devel@lists.xen.org; Thu, 14 Jul 2016 16:22:20 +0000 Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id 7D/83-23871-B3CB7875; Thu, 14 Jul 2016 16:22:19 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRWlGSWpSXmKPExsVysyfVTddqT3u 4wdOt5hZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8asLZPZCqbxVDzdOJm9gbGLs4uRi0NIYCOj xJ15H5khnNOMEv8ef2LvYuTkYBPQlLjz+RMTiC0iIC1x7fNlRpAiZoH5jBJzT2xgBkkICyRKv N6/EKiIg4NFQFViWqMTSJhXwEVi7et9bCC2hICcxMljk1lBbE4BV4kVuz+BxYWAauY+vck8gZ F7ASPDKkb14tSistQiXXO9pKLM9IyS3MTMHF1DA2O93NTi4sT01JzEpGK95PzcTYxA/zIAwQ7 Gxu9OhxglOZiURHm1+9vChfiS8lMqMxKLM+KLSnNSiw8xanBwCGxeu/oCoxRLXn5eqpIEb+Du 9nAhwaLU9NSKtMwcYADClEpw8CiJ8EaBpHmLCxJzizPTIVKnGBWlxHnjQBICIImM0jy4NljQX 2KUlRLmZQQ6SoinILUoN7MEVf4VozgHo5Iwbw7IFJ7MvBK46a+AFjMBLbY2B1tckoiQkmpgXM dw4D7rdGGbI28/5j68HFc3V7KL+clvufI/PJG3uq2LC6Y9FF3fcqb7+LsvqWv4Pt+0TPh2R/q hyY817vG6JgIc+cY8Pv0Bwm48i+9NyWbQ17TN9hCf5TdF6Sj7qv1uD504/wVfCP90uYjJ8cyJ CSurPfNOFSrU66rm3JmrbhPH/2CK0tROJZbijERDLeai4kQAVm71xHUCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-14.tower-31.messagelabs.com!1468513338!50639261!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.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 24397 invoked from network); 14 Jul 2016 16:22:18 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-14.tower-31.messagelabs.com with SMTP; 14 Jul 2016 16:22:18 -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 BC84628; Thu, 14 Jul 2016 09:23:23 -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 147B63F387; Thu, 14 Jul 2016 09:22:16 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 14 Jul 2016 17:22:02 +0100 Message-Id: <1468513325-29492-7-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468513325-29492-1-git-send-email-julien.grall@arm.com> References: <1468513325-29492-1-git-send-email-julien.grall@arm.com> Cc: Stefano Stabellini , Julien Grall , sstabellini@kernel.org, shankerd@codeaurora.org, steve.capper@arm.com Subject: [Xen-devel] [PATCH v2 6/9] 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" 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 --- Changes in v2: - Add Stefano's reviewed-by --- 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 35723c9..5070452 100644 --- a/xen/arch/arm/vgic.c +++ b/xen/arch/arm/vgic.c @@ -25,8 +25,6 @@ #include #include #include -#include -#include #include @@ -354,22 +352,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);