diff options
author | Will Deacon <will@kernel.org> | 2020-11-13 12:38:45 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-11-16 11:43:06 +0100 |
commit | c4792b6dbc5070fe67f4cdcfdad39416333acbe0 (patch) | |
tree | 5a7721a792a59da36ae0568f88c4125b644e7617 /arch/arm64/kvm/va_layout.c | |
parent | KVM: arm64: Allocate hyp vectors statically (diff) | |
download | linux-c4792b6dbc5070fe67f4cdcfdad39416333acbe0.tar.xz linux-c4792b6dbc5070fe67f4cdcfdad39416333acbe0.zip |
arm64: spectre: Rename ARM64_HARDEN_EL2_VECTORS to ARM64_SPECTRE_V3A
Since ARM64_HARDEN_EL2_VECTORS is really a mitigation for Spectre-v3a,
rename it accordingly for consistency with the v2 and v4 mitigation.
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20201113113847.21619-9-will@kernel.org
Diffstat (limited to 'arch/arm64/kvm/va_layout.c')
-rw-r--r-- | arch/arm64/kvm/va_layout.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm64/kvm/va_layout.c b/arch/arm64/kvm/va_layout.c index cc8e8756600f..02362fa27be4 100644 --- a/arch/arm64/kvm/va_layout.c +++ b/arch/arm64/kvm/va_layout.c @@ -139,10 +139,8 @@ void kvm_patch_vector_branch(struct alt_instr *alt, BUG_ON(nr_inst != 4); - if (!cpus_have_const_cap(ARM64_HARDEN_EL2_VECTORS) || - WARN_ON_ONCE(has_vhe())) { + if (!cpus_have_const_cap(ARM64_SPECTRE_V3A) || WARN_ON_ONCE(has_vhe())) return; - } /* * Compute HYP VA by using the same computation as kern_hyp_va() |