From patchwork Mon Aug 14 14:24:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 9899015 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 A59B3602CA for ; Mon, 14 Aug 2017 14:27:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 986D728672 for ; Mon, 14 Aug 2017 14:27:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D74328686; Mon, 14 Aug 2017 14:27:21 +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 1F50928682 for ; Mon, 14 Aug 2017 14:27:19 +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 1dhGIV-0000T1-6U; Mon, 14 Aug 2017 14:24:51 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhGIU-0000R3-4i for xen-devel@lists.xen.org; Mon, 14 Aug 2017 14:24:50 +0000 Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id 28/11-01732-1B2B1995; Mon, 14 Aug 2017 14:24:49 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRWlGSWpSXmKPExsVysyfVTXfDpom RBlvbTCyWfFzM4sDocXT3b6YAxijWzLyk/IoE1owDtzezFFzjrLg29RNbA+M69i5GLg4hgc2M EiemP2eGcE4zSqydsIC1i5GTg01AU+LO509MILaIgLTEtc+XGUFsZoFIicMffrCD2MICsRIXu jexdDFycLAIqEoc6rYFCfMKWElM+LgBrFVCQF5iV9tFsJGcQPHOuztZQGwhAUuJE6tns01g5F 7AyLCKUb04tagstUjXQi+pKDM9oyQ3MTNH19DAWC83tbg4MT01JzGpWC85P3cTI9C7DECwg/F Cu/MhRkkOJiVR3gSf3kghvqT8lMqMxOKM+KLSnNTiQ4zqHBwCjRPfhkux5OXnpSpJ8KZunBgp JFiUmp5akZaZAww+mEoJDh4lEd5ZIGne4oLE3OLMdIjUKUZdjlcT/n9jEgKbISXOWw5SJABSl FGaBzcCFgmXGGWlhHkZge4T4ilILcrNLEGVf8UozsGoJMxbCTKFJzOvBG7TK6AjmICO6AN5hb e4JBEhJdXAuCDP6PHr3o8vw43kDZfJrJhfPWNC1fpXHW9q+bbf15W49P7X3D5zVS3ri4L2jYa uE8z8z7m7LU2x2LD8q9aViOSwSamfDR2+Xyvg3rngMov/o4+TE1au/Sby6tXiJY+ueZuXKAto vTtw/ZDolOMHuKVO/ji17aFw+eO2Px16AfsKFz5deLWILVOJpTgj0VCLuag4EQDUgXInfwIAA A== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-13.tower-31.messagelabs.com!1502720688!105373068!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5662 invoked from network); 14 Aug 2017 14:24:48 -0000 Received: from usa-sjc-mx-foss1.foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-13.tower-31.messagelabs.com with SMTP; 14 Aug 2017 14:24:48 -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 15534199B; Mon, 14 Aug 2017 07:24:48 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 29AFD3F483; Mon, 14 Aug 2017 07:24:47 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Mon, 14 Aug 2017 15:24:03 +0100 Message-Id: <20170814142418.13267-13-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170814142418.13267-1-julien.grall@arm.com> References: <20170814142418.13267-1-julien.grall@arm.com> Cc: andre.przywara@arm.com, Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH 12/27] xen/arm: Introduce hsr_xabt to gather common bits between hsr_dabt and 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 will allow to consolidate some part of the data abort and prefetch abort handling in a single function later on. Signed-off-by: Julien Grall Reviewed-by: Andre Przywara --- xen/include/asm-arm/processor.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h index 3ef606c554..9964348189 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -537,6 +537,19 @@ union hsr { unsigned long ec:6; /* Exception Class */ } dabt; /* HSR_EC_DATA_ABORT_* */ + /* Contain the common bits between DABT and IABT */ + struct hsr_xabt { + unsigned long fsc:6; /* Fault status code */ + unsigned long pad1:1; + unsigned long s1ptw:1; /* Stage 2 fault during stage 1 translation */ + unsigned long pad2:1; + unsigned long eat:1; /* External abort type */ + unsigned long fnv:1; /* FAR not Valid */ + unsigned long pad3:14; + unsigned long len:1; /* Instruction length */ + unsigned long ec:6; /* Exception Class */ + } xabt; + #ifdef CONFIG_ARM_64 struct hsr_brk { unsigned long comment:16; /* Comment */