]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1f554b56afd64caa33f8bf8af1763fb5745d085
treed13b794b9d3f33272bcf5744f611a83328e24613
parenta3c98f842c1888b4df27e091ed5a315b6f7c1aa9
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