Commit 406d5af4 authored by Pierre-Clément Tosi's avatar Pierre-Clément Tosi Committed by Will Deacon
Browse files

FROMGIT: KVM: arm64: nVHE: Simplify invalid_host_el2_vect

The invalid_host_el2_vect macro is used by EL2{t,h} handlers in nVHE
*host* context, which should never run with a guest context loaded.
Therefore, remove the superfluous vCPU context check and branch
unconditionally to hyp_panic.

Bug: 278010198
Bug: 278749606
(cherry picked from commit 6e3b773e
 https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git

 )
Change-Id: Ibe5664ed3155720edbf23438b76a8316fb734209
Signed-off-by: default avatarPierre-Clément Tosi <ptosi@google.com>
Acked-by: default avatarWill Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20240610063244.2828978-4-ptosi@google.com


Signed-off-by: default avatarOliver Upton <oliver.upton@linux.dev>
parent 9dd9c0ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment