From patchwork Tue Sep 12 10:03:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 9948915 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 DAB0660360 for ; Tue, 12 Sep 2017 10:07:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB43B28DCF for ; Tue, 12 Sep 2017 10:07:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C02F328DD2; Tue, 12 Sep 2017 10:07:16 +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 15A3128E87 for ; Tue, 12 Sep 2017 10:07:13 +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 1dri2x-000361-Qd; Tue, 12 Sep 2017 10:03:59 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dri2w-00032t-4R for xen-devel@lists.xen.org; Tue, 12 Sep 2017 10:03:58 +0000 Received: from [85.158.143.35] by server-3.bemta-6.messagelabs.com id BF/FE-03093-D01B7B95; Tue, 12 Sep 2017 10:03:57 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLLMWRWlGSWpSXmKPExsVysyfVTZd94/Z IgzeH5SyWfFzM4sDocXT3b6YAxijWzLyk/IoE1ow9R94zFxzlqnj7opW1gbGFo4uRi0NIYDOj xM+Xj9ggnNOMEqtnH2TsYuTkYBPQlLjz+RMTiC0iIC1x7fNlsDizQKTE4Q8/2LsYOTiEBRIkl uywBAmzCKhKrJ/TyQ5i8wpYSrxeeogVxJYQkJfY1XYRzOYEiq/4+IsNxBYSsJD4/vIH4wRG7g WMDKsYNYpTi8pSi3SNzPSSijLTM0pyEzNzdA0NzPRyU4uLE9NTcxKTivWS83M3MQL9ywAEOxj PLAg8xCjJwaQkyntk/fZIIb6k/JTKjMTijPii0pzU4kOM6hwcAo0T34ZLseTl56UqSfBOAykT LEpNT61Iy8wBhh9MpQQHj5II72yQNG9xQWJucWY6ROoUoy5Hx827f5iEwGZIifNmgBQJgBRll ObBjYDFwiVGWSlhXkag+4R4ClKLcjNLUOVfMYpzMCoJ884HmcKTmVcCt+kV0BFMQEfwXNoCck RJIkJKqoFR6sL9ZzJX+21vKRfcNWZsniPPNrGZK21ebosJv9zlp89M5n1NneqcGLJ2u9L+LUp fA7f8rLgQKfLgfSKTaeDKg4mbAmqO/LFWv+A8J7hzs6svkyrvQ/G4Fdk8GxSmmip/X8m257eZ ppUR18osBoWbPLnroiZ/2X4jY2b9i++PrZhsHkzyc8lSYinOSDTUYi4qTgQACKAa3oACAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-16.tower-21.messagelabs.com!1505210631!70445453!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 28792 invoked from network); 12 Sep 2017 10:03:51 -0000 Received: from usa-sjc-mx-foss1.foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-16.tower-21.messagelabs.com with SMTP; 12 Sep 2017 10:03:51 -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 BFD501529; Tue, 12 Sep 2017 03:03:50 -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 D1BAF3F578; Tue, 12 Sep 2017 03:03:49 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 12 Sep 2017 11:03:15 +0100 Message-Id: <20170912100330.2168-10-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170912100330.2168-1-julien.grall@arm.com> References: <20170912100330.2168-1-julien.grall@arm.com> Cc: andre.przywara@arm.com, Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH v2 09/24] 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 --- Changes in v2: - Add Andre's reviewed-by --- 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 b6432b6bf4..51e1c92665 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -615,6 +615,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 */