KVM: arm64: Finalise EL2 state from pKVM PSCI relay
authorQuentin Perret <qperret@google.com>
Wed, 1 Feb 2023 10:37:54 +0000 (10:37 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 2 Feb 2023 21:46:43 +0000 (21:46 +0000)
commit6f10f2ec61c7968b44428c551b1b06a4c5e4e544
tree5b281c178542162e51490fa979f4fa0bfebfb1a7
parent3c4cc31537ec26c3347cc09792bbdba11b96e54a
KVM: arm64: Finalise EL2 state from pKVM PSCI relay

The EL2 state is not initialised correctly when a CPU comes out of
CPU_{SUSPEND,OFF} as the finalise_el2 function is not being called.
Let's directly call finalise_el2_state from this path to solve the
issue.

Fixes: 504ee23611c4 ("arm64: Add the arm64.nosve command line option")
Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20230201103755.1398086-5-qperret@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/nvhe/hyp-init.S