arm/arm64: KVM: Correct KVM_ARM_VCPU_INIT power off option

commit 3ad8b3de52 upstream.

The implementation of KVM_ARM_VCPU_INIT is currently not doing what
userspace expects, namely making sure that a vcpu which may have been
turned off using PSCI is returned to its initial state, which would be
powered on if userspace does not set the KVM_ARM_VCPU_POWER_OFF flag.

Implement the expected functionality and clarify the ABI.

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: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Christoffer Dall 2014-10-16 16:14:43 +02:00 • committed by Luis Henriques
commit a897742fcf
2 changed files with 4 additions and 1 deletions