From patchwork Mon Jun 16 10:48:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 31933 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DB67920E7A for ; Mon, 16 Jun 2014 10:50:54 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id j17sf31808344oag.8 for ; Mon, 16 Jun 2014 03:50:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=N0OmyBt4FvsasbZ8AKDYnT5BaG7KBt1PJZhxZUf22mE=; b=ezyG+J8upNCdCx3wEW7w29vC/cCh3dblVt9ZTNN7X6hbXxOt6IY5n8qKJe0R8D9rVY XKSPNuioyiswCdMzymNV25ZArt0TehilsOdVanmdoozHSenzuAYpMZmbAXh9gff+nOko H4jWZbGNqTSgYO1H3xT5mIqAbr/K8+mebn6PJ5r5Pb5EhDq1xu4cdL3RvtI3qoYmJBiJ k+sc1ww6/x6yCBiRSrJNPydAOtn4KEUoN/TS1jln+wpgJRdW1TlaJJNGJBUmwUEnCHso 3g+vvTBPE1Blp8uviqN/FFDiEmehWcfzHWfLc7oKdQdP1tG7KmJTdPAjqdigh54ozwrX 8u9A== X-Gm-Message-State: ALoCoQkVlAyxj248/dZngY53DxLMqGdStCgQmf+uw5DJ1nHMX96b0WdKiM2mvknu68v7y0kS7oeu X-Received: by 10.182.246.7 with SMTP id xs7mr778163obc.15.1402915853636; Mon, 16 Jun 2014 03:50:53 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.53 with SMTP id y50ls480890qgd.8.gmail; Mon, 16 Jun 2014 03:50:53 -0700 (PDT) X-Received: by 10.221.47.9 with SMTP id uq9mr26784vcb.48.1402915853549; Mon, 16 Jun 2014 03:50:53 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id x5si3953781vcm.87.2014.06.16.03.50.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Jun 2014 03:50:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id lf12so4775737vcb.32 for ; Mon, 16 Jun 2014 03:50:53 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr7377374vdc.8.1402915853452; Mon, 16 Jun 2014 03:50:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp125444vcb; Mon, 16 Jun 2014 03:50:53 -0700 (PDT) X-Received: by 10.220.69.4 with SMTP id x4mr8543vci.74.1402915853110; Mon, 16 Jun 2014 03:50:53 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id ks14si3959106veb.45.2014.06.16.03.50.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 16 Jun 2014 03:50:53 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WwUSe-0000iV-VV; Mon, 16 Jun 2014 10:48:24 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WwUSe-0000iQ-8A for xen-devel@lists.xen.org; Mon, 16 Jun 2014 10:48:24 +0000 Received: from [193.109.254.147:47054] by server-12.bemta-14.messagelabs.com id 12/C4-32179-77BCE935; Mon, 16 Jun 2014 10:48:23 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-12.tower-27.messagelabs.com!1402915701!11521861!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30451 invoked from network); 16 Jun 2014 10:48:22 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-12.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 16 Jun 2014 10:48:22 -0000 X-IronPort-AV: E=Sophos;i="5.01,486,1400025600"; d="scan'208";a="143685234" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 16 Jun 2014 10:48:20 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.3.181.6; Mon, 16 Jun 2014 06:48:20 -0400 Received: from marilith-n13-p0.uk.xensource.com ([10.80.229.115] helo=marilith-n13.uk.xensource.com.) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1WwUSa-0000Ge-7o; Mon, 16 Jun 2014 11:48:20 +0100 From: Ian Campbell To: Date: Mon, 16 Jun 2014 11:48:19 +0100 Message-ID: <1402915700-15988-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-DLP: MIA2 Cc: julien.grall@linaro.org, tim@xen.org, Ian Campbell , stefano.stabellini@eu.citrix.com Subject: [Xen-devel] [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: So far none of the platforms which we support use FIQ for anything, but when we end up supporting one it would be far better to surprise Xen with them than whatever guest happens to be running... Signed-off-by: Ian Campbell Acked-by: Stefano Stabellini Acked-by: Julien Grall --- xen/arch/arm/traps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 333d5c0..88292a5 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -89,8 +89,8 @@ void __cpuinit init_traps(void) CPTR_EL2); /* Setup hypervisor traps */ - WRITE_SYSREG(HCR_PTW|HCR_BSU_INNER|HCR_AMO|HCR_IMO|HCR_VM|HCR_TWI|HCR_TSC| - HCR_TAC|HCR_SWIO|HCR_TIDCP, HCR_EL2); + WRITE_SYSREG(HCR_PTW|HCR_BSU_INNER|HCR_AMO|HCR_IMO|HCR_FMO|HCR_VM| + HCR_TWI|HCR_TSC|HCR_TAC|HCR_SWIO|HCR_TIDCP, HCR_EL2); isb(); }