From patchwork Wed Jul 27 13:58:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 72869 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp328749qga; Wed, 27 Jul 2016 07:01:21 -0700 (PDT) X-Received: by 10.36.227.78 with SMTP id d75mr99096840ith.75.1469628081488; Wed, 27 Jul 2016 07:01:21 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id 20si7511916ios.3.2016.07.27.07.01.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jul 2016 07:01:21 -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 1bSPMH-0006MP-4v; Wed, 27 Jul 2016 13:58:49 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSPMG-0006Kd-7y for xen-devel@lists.xen.org; Wed, 27 Jul 2016 13:58:48 +0000 Received: from [193.109.254.147] by server-11.bemta-14.messagelabs.com id CA/6F-09831-71EB8975; Wed, 27 Jul 2016 13:58:47 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRWlGSWpSXmKPExsVysyfVTVds34x wgzWbLCyWfFzM4sDocXT3b6YAxijWzLyk/IoE1ozbr5awFNzkqTh+5xV7A+M2zi5GLg4hgY2M Eit2XWCGcE4zSmzfcQPI4eRgE9CUuPP5ExOILSIgLXHt82VGEJtZYCGjxNvdISC2sECiRM/12 SwgNouAqsTclTtYQWxeAWeJeUsPgfVKCMhJnDw2GSzOKeAi0XvpEtgcIaCaM383sk5g5F7AyL CKUaM4tagstUjXyFwvqSgzPaMkNzEzR9fQ0EQvN7W4ODE9NScxqVgvOT93EyPQw/UMDIw7GKd f9jvEKMnBpCTKu8hxRrgQX1J+SmVGYnFGfFFpTmrxIUYNDg6BzWtXX2CUYsnLz0tVkuC9uQeo TrAoNT21Ii0zBxiCMKUSHDxKIrwzdwOleYsLEnOLM9MhUqcYFaXEeXtB+gRAEhmleXBtsLC/x CgrJczLyMDAIMRTkFqUm1mCKv+KUZyDUUmY9wfIFJ7MvBK46a+AFjMBLS6OBVtckoiQkmpgtO 8+fEI0y3f1nWcZh86kCm54ppac/1x27v2HYRXvVSZvXuWq0hJpr82RM/fNzY3W4qJHZbJNnIJ 5w89dM7KL+nQ/telCY/7Rd98vvnVeOT3AaW7fXc5ooWZd3u9Lna6d0OheWfHhwEX1Z1YrmxWd pwjZfuJ3DZv3qUI+ePmVotuzf79yXVj3R4mlOCPRUIu5qDgRAOVbGiB2AgAA X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-13.tower-27.messagelabs.com!1469627926!56333067!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 30908 invoked from network); 27 Jul 2016 13:58:46 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-13.tower-27.messagelabs.com with SMTP; 27 Jul 2016 13:58:46 -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 460BD28; Wed, 27 Jul 2016 07:00:02 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.218.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BE2193F25F; Wed, 27 Jul 2016 06:58:44 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Wed, 27 Jul 2016 14:58:27 +0100 Message-Id: <1469627910-3902-7-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469627910-3902-1-git-send-email-julien.grall@arm.com> References: <1469627910-3902-1-git-send-email-julien.grall@arm.com> Cc: sstabellini@kernel.org, steve.capper@arm.com, Julien Grall , shannon.zhao@linaro.org, shankerd@codeaurora.org, wei.chen@linaro.org Subject: [Xen-devel] [PATCH v3 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 v3: - Fix typo in Stefano's e-mail address 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 e47daca..938bc7d 100644 --- a/xen/arch/arm/vgic.c +++ b/xen/arch/arm/vgic.c @@ -25,8 +25,6 @@ #include #include #include -#include -#include #include @@ -350,22 +348,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);