arm64: KVM: Use per-CPU vector when BP hardening is enabled
authorMark Rutland <mark.rutland@arm.com>
Thu, 12 Apr 2018 11:11:16 +0000 (12:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Apr 2018 06:20:44 +0000 (08:20 +0200)
commit9327f0696367b7373c4af5fe4d1fed8b194f68b0
tree33cae5444edd20c89ae6ed3a358eff1ce77d606e
parent09ea80a05c6a08d0419fa3875a2612f4c462d9d5
arm64: KVM: Use per-CPU vector when BP hardening is enabled

From: Marc Zyngier <marc.zyngier@arm.com>

commit 6840bdd73d07216ab4bc46f5a8768c37ea519038 upstream.

Now that we have per-CPU vectors, let's plug then in the KVM/arm64 code.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
[v4.9: account for files moved to virt/ upstream, use cpus_have_cap()]
Signed-off-by: Mark Rutland <mark.rutland@arm.com> [v4.9 backport]
Tested-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/include/asm/kvm_mmu.h
arch/arm/kvm/arm.c
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kvm/hyp/switch.c