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: 112276 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp5674462edi; Tue, 12 Sep 2017 03:05:45 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDmfa6cmid8dE94TzyHsikz0h2MtW2bc3+hMQTOC/OWnxzr3Zf2vTIvL1vly7o28CbNwtu2 X-Received: by 10.107.165.146 with SMTP id o140mr19165934ioe.11.1505210745571; Tue, 12 Sep 2017 03:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505210745; cv=none; d=google.com; s=arc-20160816; b=U12FyEH7O3fgkFCQSJ13Hbf8+qzSQdiDzLUfwLNeTm00DtKgutWj9sq8RetTLkyI7y FPa74BBmaxq2xeYr+zpQ2yYGR+ItDS1fnFNoEThUUzGedvi58eeWG2qD6ubdyn8jSQGI F7c6Mb2zEcr5i0tXAJcBoQ0Ee4XSDTHbtXK6Am/mC7vUBLxVYLyyndkUn9cC9Vy5xJTz ejFl22AVXKK/h4HBAt2kK9SbZws6CdYa8Dxhr4Ta6D5aztWlCC3gQ1u28j2uyqxwjsFx GHHI2RXwDcVXhjN/EXDJPNBUpA3knq0NWp/7S3Rj0/6nsos8qPcrxRjqi/VLKgJW0tbU m0Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=UP267qAbUkLh+VgAhcxud11xzNJFjuSPG+LYH5c0g/g=; b=LFlzqc4eZPlGi6N2SMIxSNMBlTzzAmbNWNqGLdtexQaSltbtVftb1vDxMcGG4EpPNl HvMNkltFgK/0LIPWzY0z7zkwBSwptdf1n/jQ9mXSV1LE5U9jJv11QYKRV0Q+zgM19WiK TRJHWf6bKBOJZ+dBu6EMcPnZxGfLnDS1CjTHdCxlGfh98KD7q9Jn4EUqRCZFTnTSIbJo NDaIqbYRgemWsNg2ghXAGHmVdTo4SpSia8w/N6lwhxAOlJWr3aaRbXA2ux0JkHFROaax JRYG/ipZUfZDMqUG0X1rx/FLor24zhAz/Nk1g/6N9dkoi3VDMuoIbGlRiqk/bdlkj7Dh 05ZA== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id q77si10824143itb.28.2017.09.12.03.05.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 03:05:45 -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 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" 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 */