KVM: arm64: Intercept host's SYSTEM_SUSPEND PSCI SMCs
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:41:19 +0000 (18:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 10:08:35 +0000 (10:08 +0000)
commitd945f8d9ec4ab5b062ce9696761ca3a21de1e64d
treecc83fad9329fb7e136b6b04d6592c9fed48f6147
parentabf16336dd22d018cd2577f0789b01ed705484d7
KVM: arm64: Intercept host's SYSTEM_SUSPEND PSCI SMCs

Add a handler of SYSTEM_SUSPEND host PSCI SMCs. The semantics are
equivalent to CPU_SUSPEND, typically called on the last online CPU.
Reuse the same entry point and boot args struct as CPU_SUSPEND.

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