arm/arm64: KVM: Turn off vcpus on PSCI shutdown/reboot

commit cf5d318865 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>
This commit is contained in:
Christoffer Dall 2015-05-04 09:25:11 +08:00 • committed by Sasha Levin
commit 964cce8df8
3 changed files with 28 additions and 0 deletions