[PATCH v5 3/8] KVM: arm64: nVHE: Simplify invalid_host_el2_vect

Will Deacon will at kernel.org
Thu Jun 20 04:35:50 PDT 2024


On Mon, Jun 10, 2024 at 07:32:32AM +0100, Pierre-Clément Tosi wrote:
> 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 at google.com>
> ---
>  arch/arm64/kvm/hyp/nvhe/host.S | 6 ------
>  1 file changed, 6 deletions(-)

Acked-by: Will Deacon <will at kernel.org>

Will



More information about the linux-arm-kernel mailing list