diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2014-10-16 10:14:43 -0400 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2014-12-13 08:15:25 -0500 |
commit | 3ad8b3de526a76fbe9466b366059e4958957b88f (patch) | |
tree | 8fc888631918c186df6ed6cca144560f3ee3afe8 /Documentation/virtual | |
parent | 03f1d4c17edb31b41b14ca3a749ae38d2dd6639d (diff) |
arm/arm64: KVM: Correct KVM_ARM_VCPU_INIT power off option
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>
Diffstat (limited to 'Documentation/virtual')
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 7610eaa4d491..bb82a906e51e 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -2455,7 +2455,8 @@ should be created before this ioctl is invoked. | |||
2455 | 2455 | ||
2456 | Possible features: | 2456 | Possible features: |
2457 | - KVM_ARM_VCPU_POWER_OFF: Starts the CPU in a power-off state. | 2457 | - KVM_ARM_VCPU_POWER_OFF: Starts the CPU in a power-off state. |
2458 | Depends on KVM_CAP_ARM_PSCI. | 2458 | Depends on KVM_CAP_ARM_PSCI. If not set, the CPU will be powered on |
2459 | and execute guest code when KVM_RUN is called. | ||
2459 | - KVM_ARM_VCPU_EL1_32BIT: Starts the CPU in a 32bit mode. | 2460 | - KVM_ARM_VCPU_EL1_32BIT: Starts the CPU in a 32bit mode. |
2460 | Depends on KVM_CAP_ARM_EL1_32BIT (arm64 only). | 2461 | Depends on KVM_CAP_ARM_EL1_32BIT (arm64 only). |
2461 | - KVM_ARM_VCPU_PSCI_0_2: Emulate PSCI v0.2 for the CPU. | 2462 | - KVM_ARM_VCPU_PSCI_0_2: Emulate PSCI v0.2 for the CPU. |