From patchwork Wed Mar 26 13:38:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 27122 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4F8D320062 for ; Wed, 26 Mar 2014 13:40:18 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id n16sf7487676oag.1 for ; Wed, 26 Mar 2014 06:40:17 -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:in-reply-to :references: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=C3GGU/AztIB6WthBh7Pw1HtZTqOK48rAbxNKUjNUloI=; b=bxtJR8hfxKm7tEpqzpPAxgbhbjh3i82GxP04oSSxGcYdaT/8Kx0wzmBKkHjV26etv4 2lrJOFncG7GOgyjpWmzgCQCn05Zpp2CB6qJLG2+JYtouylWUlMHLqvLproSHueWitvt2 LZkAuV0PHqHnizgRYnxyrEMnuGOA2WMyJqj7OFtQgQuQQFHzYFXeh/nw4E2GA0Ch81Rs GdLRkgpfjAHBgFNCqHXAMIYcRqz+PtDPPvZiXbxHOD3PQeNAYm8fzU8ZdsE+fK6st20X ASBiCG0+g82LzNpwX9TUJw1f3WH5uCo6yKJHIOz0YkKT+LlbPsv8vi381toIvuRfFmxQ JlPg== X-Gm-Message-State: ALoCoQmNiUZsdIv7EsD0U2+Gk6FMu02YCJOWMWBCofK3tsws2qL3pz2dgJyVLgWBDn93G06p6PB8 X-Received: by 10.42.235.206 with SMTP id kh14mr9945395icb.30.1395841217869; Wed, 26 Mar 2014 06:40:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.202 with SMTP id o68ls667919qga.53.gmail; Wed, 26 Mar 2014 06:40:17 -0700 (PDT) X-Received: by 10.52.253.75 with SMTP id zy11mr3089750vdc.10.1395841217742; Wed, 26 Mar 2014 06:40:17 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id xo2si4523787vec.116.2014.03.26.06.40.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Mar 2014 06:40:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id ij19so2371262vcb.38 for ; Wed, 26 Mar 2014 06:40:17 -0700 (PDT) X-Received: by 10.220.225.5 with SMTP id iq5mr84576vcb.42.1395841217641; Wed, 26 Mar 2014 06:40:17 -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.220.78.9 with SMTP id i9csp47072vck; Wed, 26 Mar 2014 06:40:17 -0700 (PDT) X-Received: by 10.140.51.106 with SMTP id t97mr70531199qga.50.1395841217019; Wed, 26 Mar 2014 06:40:17 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id v9si8803306qap.64.2014.03.26.06.40.16 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 06:40:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) 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 1WSo2q-0004Tt-Bm; Wed, 26 Mar 2014 13:39:04 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSo2k-0004Mb-27 for xen-devel@lists.xen.org; Wed, 26 Mar 2014 13:38:58 +0000 Received: from [193.109.254.147:45408] by server-15.bemta-14.messagelabs.com id C4/CA-15813-178D2335; Wed, 26 Mar 2014 13:38:57 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-5.tower-27.messagelabs.com!1395841134!4297751!3 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.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 2761 invoked from network); 26 Mar 2014 13:38:56 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-5.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 26 Mar 2014 13:38:56 -0000 X-IronPort-AV: E=Sophos;i="4.97,735,1389744000"; d="scan'208";a="113732840" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 26 Mar 2014 13:38:54 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.2.342.4; Wed, 26 Mar 2014 09:38:53 -0400 Received: from drall.uk.xensource.com ([10.80.16.71] helo=drall.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1WSo2f-00074X-Rc; Wed, 26 Mar 2014 13:38:53 +0000 From: Ian Campbell To: Date: Wed, 26 Mar 2014 13:38:45 +0000 Message-ID: <1395841133-2223-10-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395841009.12547.11.camel@kazak.uk.xensource.com> References: <1395841009.12547.11.camel@kazak.uk.xensource.com> 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 10/17] xen: arm64: disable alignment traps 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=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: The mem* primitives which I am about to import from Linux in a subsequent patch rely on the hardware handling misalignment. The benefits of an optimised memcpy etc outweigh the downsides. Signed-off-by: Ian Campbell Acked-by: Julien Grall --- v2: fix typo in commit message and correct comment which refers to alignment trapping status. --- xen/arch/arm/arm64/head.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/arm64/head.S b/xen/arch/arm/arm64/head.S index 9547ef5..d3e773d 100644 --- a/xen/arch/arm/arm64/head.S +++ b/xen/arch/arm/arm64/head.S @@ -239,9 +239,9 @@ skip_bss: * Write-implies-XN disabled (for now), * D-cache disabled (for now), * I-cache enabled, - * Alignment checking enabled, + * Alignment checking disabled, * MMU translation disabled (for now). */ - ldr x0, =(HSCTLR_BASE|SCTLR_A) + ldr x0, =(HSCTLR_BASE) msr SCTLR_EL2, x0 /* Rebuild the boot pagetable's first-level entries. The structure