From patchwork Thu Jun 26 08:53:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 32539 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 67F92201EF for ; Thu, 26 Jun 2014 08:55:33 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id oy12sf6444237veb.2 for ; Thu, 26 Jun 2014 01:55:33 -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=9fN34kp5/Ol2OoMg2Oz93lqcNh/NlCy6eBs+KBzNqZo=; b=Xvu5d6OpG67s9iIlgwtFp3qsW06BOjhnnLHj5de0a9nEnr5sxM9y8dpSKJQZWqL/D4 3Xso00bou71Wvv4b7ZOYmKhnXQzMcPR45U0r+QLPt5okoMztOI23J5D7c7D7umxpQk2b vsCP6s2pHd/nhCaQzQYowIjRNTzgulQQr9hVoQEo/pL4dLO0KkaLErb9dgAo0KlUSzue GzuGmLwYHHH2QoZgWUvnn0asZWT5fYcH5wu2VQmypLz5+JvcQgw692aS3YMoXPBcrSaJ aVf/CLldcffRSMGteDohtVnyP7c0nWMLgXLyS6Js0h0aBuSe8c3LW/8O58AMCJFB740q zLyA== X-Gm-Message-State: ALoCoQn9k3exZelwmZb/w3x+8iUKFyKaibdHVOQ5Do7oemAWdSOMdJXITreU8EC8LCe3b0UK6z4B X-Received: by 10.58.41.99 with SMTP id e3mr7247435vel.20.1403772933146; Thu, 26 Jun 2014 01:55:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.173 with SMTP id 42ls123569qgb.62.gmail; Thu, 26 Jun 2014 01:55:33 -0700 (PDT) X-Received: by 10.58.119.75 with SMTP id ks11mr12331329veb.20.1403772933064; Thu, 26 Jun 2014 01:55:33 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id m4si3963352vev.44.2014.06.26.01.55.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Jun 2014 01:55:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hy10so3192775vcb.1 for ; Thu, 26 Jun 2014 01:55:33 -0700 (PDT) X-Received: by 10.58.210.168 with SMTP id mv8mr9115255vec.12.1403772932964; Thu, 26 Jun 2014 01:55:32 -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.37.5 with SMTP id tc5csp15072vcb; Thu, 26 Jun 2014 01:55:32 -0700 (PDT) X-Received: by 10.221.44.73 with SMTP id uf9mr12093690vcb.9.1403772932644; Thu, 26 Jun 2014 01:55:32 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id cy16si3969251veb.16.2014.06.26.01.55.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Jun 2014 01:55:32 -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 1X05RT-0003uC-R3; Thu, 26 Jun 2014 08:54:03 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X05RR-0003u7-Un for xen-devel@lists.xen.org; Thu, 26 Jun 2014 08:54:02 +0000 Received: from [193.109.254.147:21592] by server-4.bemta-14.messagelabs.com id CB/50-02781-9AFDBA35; Thu, 26 Jun 2014 08:54:01 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-7.tower-27.messagelabs.com!1403772839!13759792!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 27732 invoked from network); 26 Jun 2014 08:54:00 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-7.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 26 Jun 2014 08:54:00 -0000 X-IronPort-AV: E=Sophos;i="5.01,551,1400025600"; d="scan'208";a="147265138" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 26 Jun 2014 08:53:43 +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; Thu, 26 Jun 2014 04:53:42 -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 1X05R8-0003G1-E2; Thu, 26 Jun 2014 09:53:42 +0100 From: Ian Campbell To: Date: Thu, 26 Jun 2014 09:53:42 +0100 Message-ID: <1403772822-32192-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 v2] xen: arm: take FIQ exceptions 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.170 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: As with HCR_EL2.{IMO,AMO} we want to route FIQs to Xen not the guest. See ARM ARM DDI 0406C.b B1.8.4. 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 --- v2: Added ARM ARM reference. --- 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 7f77c56..9bc3198 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(); }