Recentely patches have been posted for in-kernel emulation of PSCI v0.2 http://www.spinics.net/lists/arm-kernel/msg305467.html This patchset adds the QEMU side changes for providing PSCI v0.2 to VM.
ChangeLog: V3: - Rebase this patchset against v8 patchset for in-kernel PSCI v0.2 emulation (http://www.spinics.net/lists/kvm-arm/msg08780.html) - Added common kvm_arm_vcpu_init() function for kvm arm and kvm arm64 V2: - Rebase this patchset against v6 patchset for in-kernel PSCI v0.2 emulation (http://www.spinics.net/lists/arm-kernel/msg319037.html) - Handle KVM_EXIT_SYSTEM_EVENT in kvm-all.c:kvm_cpu_exec() - Drop change in kvm_arm_get_host_cpu_features() - Improve comments and description of kvm_arch_reset_vcpu() implementation V1: - Initial RFC patchset Pranavkumar Sawargaonkar (7): linux-headers: Update KVM headers from v3.15 kvm: Handle exit reason KVM_EXIT_SYSTEM_EVENT target-arm: Enable KVM_ARM_VCPU_PSCI_0_2 feature when possible target-arm: Provide PSCI v0.2 constants to generic QEMU code hw/arm/virt: Use PSCI v0.2 function IDs when kernel supports it target-arm: Common kvm_arm_vcpu_init() for KVM ARM and KVM ARM64 target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64 hw/arm/virt.c | 28 ++++++++++++--- kvm-all.c | 16 +++++++++ linux-headers/asm-arm/kvm.h | 19 +++++----- linux-headers/asm-arm64/kvm.h | 21 +++++------ linux-headers/linux/kvm.h | 10 ++++++ linux-headers/linux/psci.h | 77 +++++++++++++++++++++++++++++++++++++++++ target-arm/kvm-consts.h | 63 +++++++++++++++++++++++++++------ target-arm/kvm.c | 23 ++++++++++++ target-arm/kvm32.c | 15 ++------ target-arm/kvm64.c | 23 ++++++------ target-arm/kvm_arm.h | 14 ++++++++ 11 files changed, 251 insertions(+), 58 deletions(-) create mode 100644 linux-headers/linux/psci.h -- 1.7.9.5