arm64: KVM: Use SMCCC_ARCH_WORKAROUND_1 for Falkor BP hardening
authorShanker Donthineni <[email protected]>
Tue, 10 Apr 2018 10:36:42 +0000 (11:36 +0100)
committerWill Deacon <[email protected]>
Wed, 11 Apr 2018 17:49:30 +0000 (18:49 +0100)
commit4bc352ffb39e4eec253e70f8c076f2f48a6c1926
treedc7de7d28f606e235d333a9a154a99a86ba072e1
parentd8312a3f61024352f1c7cb967571fd53631b0d6c
arm64: KVM: Use SMCCC_ARCH_WORKAROUND_1 for Falkor BP hardening

The function SMCCC_ARCH_WORKAROUND_1 was introduced as part of SMC
V1.1 Calling Convention to mitigate CVE-2017-5715. This patch uses
the standard call SMCCC_ARCH_WORKAROUND_1 for Falkor chips instead
of Silicon provider service ID 0xC2001700.

Cc: <[email protected]> # 4.14+
Signed-off-by: Shanker Donthineni <[email protected]>
[maz: reworked errata framework integration]
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
arch/arm64/include/asm/cpucaps.h
arch/arm64/include/asm/kvm_asm.h
arch/arm64/kernel/bpi.S
arch/arm64/kernel/cpu_errata.c
arch/arm64/kvm/hyp/entry.S
arch/arm64/kvm/hyp/switch.c