]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nVHE: Simplify invalid_host_el2_vect
authorPierre-Clément Tosi <ptosi@google.com>
Mon, 10 Jun 2024 06:32:32 +0000 (07:32 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 17:40:54 +0000 (17:40 +0000)
commit6e3b773ed6bc5e783fa314b75071f022324f94a8
treea804673056cf166f6a79e78e104d46bbbb2a8c55
parentea9d7c83d14e332db9ae25eb2872b90a06ebc9e6
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.

Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20240610063244.2828978-4-ptosi@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/nvhe/host.S