]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc12eb81a8b3d34c8a8a6f90be6408b82ee66228
treec3dee2273779ca869f72f53107aeff4e5f8a6dbf
parent016c158860f1999307a0b63ca01c28a7fc570362
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