arm64: Unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE}
authorAndrew Scull <ascull@google.com>
Mon, 4 May 2020 09:48:58 +0000 (10:48 +0100)
committerWill Deacon <will@kernel.org>
Mon, 4 May 2020 15:05:47 +0000 (16:05 +0100)
commit02ab1f5018c3ad0b8677e797b5d3333d2e3b7f20
treed13b794b9d3f33272bcf5744f611a83328e24613
parent6a8b55ed4056ea5559ebe4f6a4b247f627870d4c
arm64: Unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE}

Errata 11655221319367 and 1530923 each allow TLB entries to be
allocated as a result of a speculative AT instruction. In order to
avoid mandating VHE on certain affected CPUs, apply the workaround to
both the nVHE and the VHE case for all affected CPUs.

Signed-off-by: Andrew Scull <ascull@google.com>
Acked-by: Will Deacon <will@kernel.org>
CC: Marc Zyngier <maz@kernel.org>
CC: James Morse <james.morse@arm.com>
CC: Suzuki K Poulose <suzuki.poulose@arm.com>
CC: Will Deacon <will@kernel.org>
CC: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20200504094858.108917-1-ascull@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/Kconfig
arch/arm64/include/asm/cpucaps.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_hyp.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/kvm/hyp/switch.c
arch/arm64/kvm/hyp/sysreg-sr.c
arch/arm64/kvm/hyp/tlb.c