arm/arm64: KVM: Turn off vcpus on PSCI shutdown/reboot
authorChristoffer Dall <christoffer.dall@linaro.org>
Mon, 4 May 2015 01:25:11 +0000 (09:25 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 May 2015 11:07:32 +0000 (07:07 -0400)
commit964cce8df8759c57ca0002eb20cdf7aba138a6e6
treedb73491ae452772a8c0ed34d8bd34c73e078139f
parente8234528bd6cd836672358d6aeaa3ba2b0eae5cf
arm/arm64: KVM: Turn off vcpus on PSCI shutdown/reboot

commit cf5d318865e25f887d49a0c6083bbc6dcd1905b1 upstream.

When a vcpu calls SYSTEM_OFF or SYSTEM_RESET with PSCI v0.2, the vcpus
should really be turned off for the VM adhering to the suggestions in
the PSCI spec, and it's the sane thing to do.

Also, clarify the behavior and expectations for exits to user space with
the KVM_EXIT_SYSTEM_EVENT case.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Documentation/virtual/kvm/api.txt
arch/arm/kvm/psci.c
arch/arm64/include/asm/kvm_host.h