diff options
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 3 | ||||
-rw-r--r-- | arch/arm/kvm/arm.c | 2 |
2 files changed, 4 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. |
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index b160beadc956..edc196412abe 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c | |||
@@ -663,6 +663,8 @@ static int kvm_arch_vcpu_ioctl_vcpu_init(struct kvm_vcpu *vcpu, | |||
663 | */ | 663 | */ |
664 | if (test_bit(KVM_ARM_VCPU_POWER_OFF, vcpu->arch.features)) | 664 | if (test_bit(KVM_ARM_VCPU_POWER_OFF, vcpu->arch.features)) |
665 | vcpu->arch.pause = true; | 665 | vcpu->arch.pause = true; |
666 | else | ||
667 | vcpu->arch.pause = false; | ||
666 | 668 | ||
667 | return 0; | 669 | return 0; |
668 | } | 670 | } |