KVM: arm64: Move BP hardening helpers into spectre.h
authorWill Deacon <will@kernel.org>
Fri, 13 Nov 2020 11:38:42 +0000 (11:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 16 Nov 2020 10:40:18 +0000 (10:40 +0000)
commit6279017e807708a07db5edace462713a93625da3
treec3dee2273779ca869f72f53107aeff4e5f8a6dbf
parent07cf8aa922db7747cd6e100d2e3f7ca839c7a419
KVM: arm64: Move BP hardening helpers into spectre.h

The BP hardening helpers are an integral part of the Spectre-v2
mitigation, so move them into asm/spectre.h and inline the
arm64_get_bp_hardening_data() function at the same time.

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-6-will@kernel.org
arch/arm64/include/asm/mmu.h
arch/arm64/include/asm/spectre.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/hyp-entry.S