Message ID | 20170607171152.21874-6-cdall@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 258E06034B for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 7 Jun 2017 17:14:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9E7028479 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 7 Jun 2017 17:13:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BEBA428451; Wed, 7 Jun 2017 17:13:59 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 67D27283B9 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 7 Jun 2017 17:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ygF/1yassF7Zmw9u2t9Ws1nLonSSPW7nCMEaAjxcbzc=; b=p5WUlFV5e/lNZy7Tu24cEVnOgw rS4fgCg214Wk4wwLQbW3dTpx01WakDCYskinTmL3Fd7bzA7oW9KVLw0ULP6q3cMGoiDeO759Ad4o5 R4kYXZYriPs93Q8Hd9iugRooDJUSVHKJazbmAFUS+YXMDxqe/NOJ3HdwxEgLCiO3l8XLt7JBMKXPS KLAVJaHVR0Y3PNXaqMrWeshGzo+LU/5rTw28R/1BmHJwQ7MXhYpEYisADj78vtIePibLXlBMHZ0HT b/6lsqhB2QdFfLWljNDJoFrKccqgjg3EJ5rLz8t+XL9eHNX7/pYc37iOl8qKgrkVUeR9PPdG7KA11 POdgQbfg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dIeWs-0006Jg-AG; Wed, 07 Jun 2017 17:13:58 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIeVV-0004pS-12 for linux-arm-kernel@lists.infradead.org; Wed, 07 Jun 2017 17:12:34 +0000 Received: by mail-wm0-x231.google.com with SMTP id n195so15645055wmg.1 for <linux-arm-kernel@lists.infradead.org>; Wed, 07 Jun 2017 10:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OzMas14WKct7ApvdLL7743kw3lJsxKT47nOta7IKK5I=; b=Jx3dce7M0vTFrmvePJEX36rCJBCQBuZPMhjASmCZ/83N5G49W/s0EjUbgnUw5toVvs SkqK2vnPS7sHkEvnUS6bp3KjkaMDbERiVYCKFKuUSp8q3GBJfZM2x6h/oVdN+O2GjFvd qv9RjtEMqFxaiRWSebudrCaWnmL9NrmjccXHA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OzMas14WKct7ApvdLL7743kw3lJsxKT47nOta7IKK5I=; b=ZzMtV8jX2xu3mRoyCWYh1+WXUg2lLd0cMg6nxkAt7TTVEeUzQTMQBTBOaj8Le3dCDd Dg7tIGBswrqxUPVJAwa6DHQDf/BZcnsTCdQcDwj4wFMxFZ/rbEBPH7xngL6MS+s+WD1T LIL6RsU9omqyUD2OAw88hLsYPUGmNAlaMr6umwY+FIsAQ9aQLHRqtg+b6Yz087xLFffh g9zV6NFnU/eD19JAvETqpJif4prHSLEUxlvieDYai96+8weE0+iw1psbK2EvUIbcKydw 0YOlWKwY+ofibgwqyefwZh4Iw/jG2UikulCRha1GbfXNg4582nVXlV9DyJdOWwUI88kL nTGg== X-Gm-Message-State: AODbwcASQPRZuB7y3lndFVRF3REz4lsVQjPxKsoeP79wEnOQJeOkTVkz 8g2iTFca1tFX+qOG X-Received: by 10.80.153.143 with SMTP id m15mr25705678edb.35.1496855531269; Wed, 07 Jun 2017 10:12:11 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id c2sm966244edc.34.2017.06.07.10.12.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 10:12:10 -0700 (PDT) From: Christoffer Dall <cdall@linaro.org> To: Paolo Bonzini <pbonzini@redhat.com>, =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= <rkrcmar@redhat.com> Subject: [PULL v2 5/6] arm64: KVM: Allow unaligned accesses at EL2 Date: Wed, 7 Jun 2017 19:11:51 +0200 Message-Id: <20170607171152.21874-6-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170607171152.21874-1-cdall@linaro.org> References: <20170607171152.21874-1-cdall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170607_101233_249876_D700BED8 X-CRM114-Status: GOOD ( 11.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Christoffer Dall <cdall@linaro.org>, kvm@vger.kernel.org, Marc Zyngier <marc.zyngier@arm.com>, stable@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/kvm/hyp-init.S b/arch/arm64/kvm/hyp-init.S index 4072d40..3f96155 100644 --- a/arch/arm64/kvm/hyp-init.S +++ b/arch/arm64/kvm/hyp-init.S @@ -108,9 +108,10 @@ __do_hyp_init: /* * Preserve all the RES1 bits while setting the default flags, - * as well as the EE bit on BE. + * as well as the EE bit on BE. Drop the A flag since the compiler + * is allowed to generate unaligned accesses. */ - ldr x4, =(SCTLR_EL2_RES1 | SCTLR_ELx_FLAGS) + ldr x4, =(SCTLR_EL2_RES1 | (SCTLR_ELx_FLAGS & ~SCTLR_ELx_A)) CPU_BE( orr x4, x4, #SCTLR_ELx_EE) msr sctlr_el2, x4 isb