[PATCH 0/2] arm64: Workaround for Cortex-A55 erratum 1530923

From: Steven Price
Date: Mon Nov 11 2019 - 09:12:25 EST


This series enables a workaround for Cortex-A55 erratum 1530923. The
erratum potentially allows TLB entries to be allocated as a result of a
speculative AT instruction. This may happen in the middle of a guest
world switch while the relevant VMSA configuration is in an inconsistent
state, leading to erroneous content being allocated into TLBs.

The existing workaround for Cortex-A76 erratum 1165522 is the same, so
the first patch renames this workaround to a generic name
(SPECULATIVE_AT), the second patch then adds the detection for the
Cortex-A55 erratum 1530923.

Steven Price (2):
arm64: Rename WORKAROUND_1165522 to SPECULATIVE_AT
arm64: Workaround for Cortex-A55 erratum 1530923

Documentation/arm64/silicon-errata.rst | 2 ++
arch/arm64/Kconfig | 17 +++++++++++++++++
arch/arm64/include/asm/cpucaps.h | 2 +-
arch/arm64/include/asm/kvm_host.h | 2 +-
arch/arm64/include/asm/kvm_hyp.h | 7 +++----
arch/arm64/kernel/cpu_errata.c | 23 ++++++++++++++++++-----
arch/arm64/kvm/hyp/switch.c | 6 +++---
arch/arm64/kvm/hyp/tlb.c | 8 ++++----
8 files changed, 49 insertions(+), 18 deletions(-)

--
2.20.1