]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm/arm64: KVM: Correct KVM_ARM_VCPU_INIT power off option
authorChristoffer Dall <christoffer.dall@linaro.org>
Mon, 4 May 2015 01:25:09 +0000 (09:25 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 May 2015 11:07:31 +0000 (07:07 -0400)
commit2421dbc19ac5dd98cb7c1e8b853339b14440d6cf
treeee1ef2be7ab08ea80b0d421f6c12f21cb3c091a5
parent04329bd399211582b22bccfb1cefc2c716e93a7c
arm/arm64: KVM: Correct KVM_ARM_VCPU_INIT power off option

commit 3ad8b3de526a76fbe9466b366059e4958957b88f 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>
Documentation/virtual/kvm/api.txt
arch/arm/kvm/arm.c