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: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Christoffer Dall 2015-05-04 09:25:09 +08:00 • committed by Sasha Levin
commit 2421dbc19a
2 changed files with 4 additions and 1 deletions