hvf: arm: Implement PSCI handling
commit2c9c0bf9d1a3eb2e6d7411887ed1653254cf11a8
authorAlexander Graf <agraf@csgraf.de>
Thu, 16 Sep 2021 15:54:01 +0000 (16 17:54 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 21 Sep 2021 15:28:26 +0000 (21 16:28 +0100)
tree3dd02ab3548ddc289f4d194ebc562a515342400f
parent585df85efea9e4cc915737d7981cb900287c0d2a
hvf: arm: Implement PSCI handling

We need to handle PSCI calls. Most of the TCG code works for us,
but we can simplify it to only handle aa64 mode and we need to
handle SUSPEND differently.

This patch takes the TCG code as template and duplicates it in HVF.

To tell the guest that we support PSCI 0.2 now, update the check in
arm_cpu_initfn() as well.

Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20210916155404.86958-8-agraf@csgraf.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c
target/arm/hvf/hvf.c
target/arm/hvf/trace-events