From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoffer Dall Subject: Re: [PATCH] KVM: arm64: add workaround for Cortex-A57 erratum #852523 Date: Tue, 15 Sep 2015 21:00:59 +0200 Message-ID: <20150915190059.GR15712@cbox> References: <1442243163-2675-1-git-send-email-will.deacon@arm.com> <55F6EBD4.30809@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, linux@arm.linux.org.uk, stable@vger.kernel.org To: Marc Zyngier Return-path: Content-Disposition: inline In-Reply-To: <55F6EBD4.30809@arm.com> Sender: stable-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, Sep 14, 2015 at 04:46:28PM +0100, Marc Zyngier wrote: > On 14/09/15 16:06, Will Deacon wrote: > > When restoring the system register state for an AArch32 guest at EL2, > > writes to DACR32_EL2 may not be correctly synchronised by Cortex-A57, > > which can lead to the guest effectively running with junk in the DACR > > and running into unexpected domain faults. > > > > This patch works around the issue by re-ordering our restoration of the > > AArch32 register aliases so that they happen before the AArch64 system > > registers. Ensuring that the registers are restored in this order > > guarantees that they will be correctly synchronised by the core. > > > > Cc: > > Cc: Marc Zyngier > > Signed-off-by: Will Deacon > > Reviewed-by: Marc Zyngier > Looks good to me too, and I just gave this a spin with my loop test on Juno as well. Thanks, -Christoffer