KVM: arm64: Allow PSCI SYSTEM_OFF/RESET to return
authorDavid Brazdil <dbrazdil@google.com>
Tue, 29 Dec 2020 16:00:59 +0000 (16:00 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 14 Jan 2021 11:04:23 +0000 (11:04 +0000)
commit2c91ef39216149df6703c3fa6a47dd9a1e6091c1
treed222e59a96a13f346e73dea96549446dc8f669f6
parent7ded92e25cac9758a755b8f524b11b509c49afe1
KVM: arm64: Allow PSCI SYSTEM_OFF/RESET to return

The KVM/arm64 PSCI relay assumes that SYSTEM_OFF and SYSTEM_RESET should
not return, as dictated by the PSCI spec. However, there is firmware out
there which breaks this assumption, leading to a hyp panic. Make KVM
more robust to broken firmware by allowing these to return.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201229160059.64135-1-dbrazdil@google.com
arch/arm64/kvm/hyp/nvhe/psci-relay.c