Message ID | 1442501171-24484-2-git-send-email-marc.zyngier@arm.com |
---|---|
State | Accepted |
Commit | 43297dda0a51e4ffed0888ce727c218cfb7474b6 |
Headers | show
Return-Path: <patchwork-forward+bncBCPZR5X4TYBBBPFF5OXQKGQEBDNPPWY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id 55E8522A0D for <linaro@patches.linaro.org>; Thu, 17 Sep 2015 14:48:29 +0000 (UTC) Received: by lbbmp1 with SMTP id mp1sf7151724lbb.2 for <linaro@patches.linaro.org>; Thu, 17 Sep 2015 07:48:28 -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:subject:date:message-id :in-reply-to:references:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:cc:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=/yMNNFyEllbujjbO6X2iHPGpJEM1Yc7HTXnN6I+Lio4=; b=c20NRMPRz9GecMk5mHW4tNn2XblmWrIwVSRiLKZescwCFtLsNxH2MuDiCORERZZKvk D7JoKrGn6erc9KxDwitxk8p/k7klhsXRYIriKguwzGpgf4qnhV5rETjof8p5lcxB9ze3 N8xhnycemLzXqyv4ym2uZz9kiabSNRq+pLvw2pgg5ksNUSdcwLvULY+/rOJqmOdhdHzh AUkjVQzcLCsmcxb+8a4N/rWH3IfhM+d7vd+WhwNlq9qPJLRppnfv4LmW4qpvUcNWEv25 WTRQ8875xz5JnUXB7qaGuZEhNphgIj+CxfBI++2yjZY/2p7KxkvlHzdKoKkgwSRI0Afn J56Q== X-Gm-Message-State: ALoCoQlENo8wYQQtuxBbkUr4okMt85igzVKG+3MZ1ofNVFdTc+oUu1wZb5Inpnbwfq4ACXQ/sfpS X-Received: by 10.180.87.199 with SMTP id ba7mr854676wib.5.1442501308240; Thu, 17 Sep 2015 07:48:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.138 with SMTP id y10ls100444laj.35.gmail; Thu, 17 Sep 2015 07:48:28 -0700 (PDT) X-Received: by 10.152.161.232 with SMTP id xv8mr37757988lab.32.1442501308065; Thu, 17 Sep 2015 07:48:28 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id sk1si2401590lbb.44.2015.09.17.07.48.28 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 07:48:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbpo4 with SMTP id o4so10598571lbp.2 for <patchwork-forward@linaro.org>; Thu, 17 Sep 2015 07:48:27 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr36859402lbb.36.1442501307834; Thu, 17 Sep 2015 07:48:27 -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.112.59.35 with SMTP id w3csp3114171lbq; Thu, 17 Sep 2015 07:48:26 -0700 (PDT) X-Received: by 10.107.16.80 with SMTP id y77mr6474569ioi.183.1442501306409; Thu, 17 Sep 2015 07:48:26 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id cc1si5859967pad.49.2015.09.17.07.48.26 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 07:48:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcaSW-0008HJ-Qq; Thu, 17 Sep 2015 14:46:48 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcaST-0008B4-As for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2015 14:46:45 +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 229645D4; Thu, 17 Sep 2015 07:46:25 -0700 (PDT) Received: from zomby-woof.cambridge.arm.com (zomby-woof.cambridge.arm.com [10.1.20.223]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1DD9F3F23A; Thu, 17 Sep 2015 07:46:21 -0700 (PDT) From: Marc Zyngier <marc.zyngier@arm.com> To: Paolo Bonzini <pbonzini@redhat.com>, Gleb Natapov <gleb@kernel.org> Subject: [PATCH 1/8] KVM: arm64: add workaround for Cortex-A57 erratum #852523 Date: Thu, 17 Sep 2015 15:46:04 +0100 Message-Id: <1442501171-24484-2-git-send-email-marc.zyngier@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442501171-24484-1-git-send-email-marc.zyngier@arm.com> References: <1442501171-24484-1-git-send-email-marc.zyngier@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150917_074645_404984_4336B344 X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [217.140.101.70 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Peter Maydell <peter.maydell@linaro.org>, kvm@vger.kernel.org, Marek Majtyka <marek.majtyka@tieto.com>, Will Deacon <will.deacon@arm.com>, Ming Lei <ming.lei@canonical.com>, Pavel Fedin <p.fedin@samsung.com>, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= <alex.bennee@linaro.org>, kvmarm@lists.cs.columbia.edu, Christoffer Dall <christoffer.dall@linaro.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+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: marc.zyngier@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mailfrom=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 |
diff --git a/arch/arm64/kvm/hyp.S b/arch/arm64/kvm/hyp.S index 8188f6a..39aa322 100644 --- a/arch/arm64/kvm/hyp.S +++ b/arch/arm64/kvm/hyp.S @@ -745,6 +745,9 @@ ENTRY(__kvm_vcpu_run) // Guest context add x2, x0, #VCPU_CONTEXT + // We must restore the 32-bit state before the sysregs, thanks + // to Cortex-A57 erratum #852523. + restore_guest_32bit_state bl __restore_sysregs skip_debug_state x3, 1f @@ -752,7 +755,6 @@ ENTRY(__kvm_vcpu_run) kern_hyp_va x3 bl __restore_debug 1: - restore_guest_32bit_state restore_guest_regs // That's it, no more messing around.