From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOMQl-0001GK-PM for qemu-devel@nongnu.org; Mon, 01 Sep 2014 03:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOMQa-0006mf-BD for qemu-devel@nongnu.org; Mon, 01 Sep 2014 03:53:39 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:37484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOMQa-0006mN-5k for qemu-devel@nongnu.org; Mon, 01 Sep 2014 03:53:28 -0400 Received: by mail-wg0-f41.google.com with SMTP id l18so4914956wgh.0 for ; Mon, 01 Sep 2014 00:53:26 -0700 (PDT) From: Ard Biesheuvel Date: Mon, 1 Sep 2014 09:53:16 +0200 Message-Id: <1409558001-12148-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [Qemu-devel] [PATCH 0/5] ARM: add PSCI 0.2 support in TCG mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, peter.maydell@linaro.org, rob.herring@linaro.org Cc: Ard Biesheuvel This series adds PSCI support to ARM and AArch64 system emulation when running in TCG mode. As PSCI calls can be made using either hypervisor call (HVC) or secure monitor call (SMC) instructions, support is added for handling those in patch #3 before patch #4 adds the actual PSCI dispatch logic. Patch #5 enables PSCI for the mach-virt platform. Currently, booting multiple cores under TCG is unstable, so the restriction to 1 cpu in TCG mode is retained for now. However, PSCI reset and poweroff are supported. Rob Herring (5): target-arm: add powered off cpu state target-arm: support AArch64 for arm_cpu_set_pc 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 hw/arm/virt.c | 70 ++++++++++----------- target-arm/Makefile.objs | 1 + target-arm/cpu-qom.h | 10 +++ target-arm/cpu.c | 22 ++++--- target-arm/cpu.h | 20 ++++++ target-arm/helper-a64.c | 11 ++++ target-arm/helper.c | 33 ++++++++++ target-arm/internals.h | 15 +++++ target-arm/psci.c | 152 +++++++++++++++++++++++++++++++++++++++++++++ target-arm/translate-a64.c | 26 +++++--- target-arm/translate.c | 24 ++++--- 11 files changed, 322 insertions(+), 62 deletions(-) create mode 100644 target-arm/psci.c -- 1.8.3.2