Skip to content

ARM: add PSCI emulation support

Rob Herring qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 10 repliesIn review
  2. v17 patches 15 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6target-arm: don't set cpu do_interrupt handler for user mode emulationtarget-arm/cpu.c target-arm/cpu64.c target-arm/helper-a64.c +1 more+6 -61 reply
2/6target-arm: add powered off cpu statetarget-arm/cpu-qom.h target-arm/cpu.c target-arm/machine.c+11 -31 reply
3/6target-arm: add hvc and smc exception emulation handling infrastructuretarget-arm/cpu-qom.h target-arm/cpu.h target-arm/helper-a64.c +4 more+110 -143 replies
4/6target-arm: add emulation of PSCI calls for system emulationtarget-arm/Makefile.objs target-arm/cpu-qom.h target-arm/cpu.c +3 more+183 -13 replies
5/6arm/virt: enable PSCI emulation support for system emulationhw/arm/virt.c+15 -261 reply
6/6arm/highbank: enable PSCI emulation supporthw/arm/highbank.c+9 -01 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchPeter Maydell
1/6R-b
2/6R-b
3/6R-b
4/6
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/6] ARM: add PSCI emulation support

From: Rob Herring <[email protected]>

This series adds support for emulating ARM PSCI calls. PSCI or Power State Coordination Interface is an ARM standard for controlling cpu power states. This series supports both AArch32 and AArch64 using HVC or SMC calls.

This is based on version 6 of Pranavkumar Sawargaonkar's series for PSCI 0.2 support in KVM[1].

Rob

[1] http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg04514.html

Rob Herring (6):
target-arm: don't set cpu do_interrupt handler for user mode emulation
target-arm: add powered off cpu state
target-arm: add hvc and smc exception emulation handling
infrastructure
target-arm: add emulation of PSCI calls for system emulation arm/virt: enable PSCI emulation support for system emulation arm/highbank: enable PSCI emulation support

 hw/arm/highbank.c          |   9 +++
 hw/arm/virt.c              |  41 +++++-------
 target-arm/Makefile.objs   |   2 +-
 target-arm/cpu-qom.h       |  11 ++++
 target-arm/cpu.c           |  10 ++-
 target-arm/cpu.h           |   2 +
 target-arm/cpu64.c         |   2 +
 target-arm/helper-a64.c    |  35 ++++++++--
 target-arm/helper.c        |  53 +++++++++++++--
 target-arm/internals.h     |  20 ++++++
 target-arm/kvm-consts.h    |   6 ++
 target-arm/machine.c       |   5 +-
 target-arm/psci.c          | 157 +++++++++++++++++++++++++++++++++++++++++++++
 target-arm/translate-a64.c |  13 +++-
 target-arm/translate.c     |  24 +++++--
 15 files changed, 340 insertions(+), 50 deletions(-)
 create mode 100644 target-arm/psci.c
Signature · 1 line
1.9.1