]> git.itanic.dy.fi Git - linux-stable/commit
arm64: KVM: Add workaround for Cortex-A57 erratum 834220
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 16 Nov 2015 10:28:18 +0000 (10:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jan 2016 19:25:55 +0000 (11:25 -0800)
commit1986f0d3a177698612254e09ff2af7bf9e69c801
treefd2178a5ad19331afb8690a900e56a697282a306
parentdfd463610632de5cba2216fd56972b560062f46c
arm64: KVM: Add workaround for Cortex-A57 erratum 834220

commit 498cd5c32be6e32bc0f8efcad48ab094bb2bfdf3 upstream.

Cortex-A57 parts up to r1p2 can misreport Stage 2 translation faults
when a Stage 1 permission fault or device alignment fault should
have been reported.

This patch implements the workaround (which is to validate that the
Stage-1 translation actually succeeds) by using code patching.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/Kconfig
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/kvm/hyp.S