]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Remove redundant hyp vectors entry
authorWill Deacon <will@kernel.org>
Fri, 13 Nov 2020 11:38:47 +0000 (11:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 16 Nov 2020 10:43:06 +0000 (10:43 +0000)
commit4f6a36fed71dfe51df0ae9a282dc87c76d629bff
treeaed3048aedda7729595decaf5e615c62b3980d10
parentcd1f56b930e857c170d8a04f0f989bfb8a1b5ac1
KVM: arm64: Remove redundant hyp vectors entry

The hyp vectors entry corresponding to HYP_VECTOR_DIRECT (i.e. when
neither Spectre-v2 nor Spectre-v3a are present) is unused, as we can
simply dispatch straight to __kvm_hyp_vector in this case.

Remove the redundant vector, and massage the logic for resolving a slot
to a vectors entry.

Reported-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201113113847.21619-11-will@kernel.org
arch/arm64/include/asm/spectre.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/hyp-entry.S