Skip to content

Commit 03f1d4c

Browse files
committed
arm/arm64: KVM: Don't clear the VCPU_POWER_OFF flag
If a VCPU was originally started with power off (typically to be brought up by PSCI in SMP configurations), there is no need to clear the POWER_OFF flag in the kernel, as this flag is only tested during the init ioctl itself. Acked-by: Marc Zyngier <[email protected]> Signed-off-by: Christoffer Dall <[email protected]>
1 parent 016ed39 commit 03f1d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/kvm/arm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ static int kvm_arch_vcpu_ioctl_vcpu_init(struct kvm_vcpu *vcpu,
661661
/*
662662
* Handle the "start in power-off" case by marking the VCPU as paused.
663663
*/
664-
if (__test_and_clear_bit(KVM_ARM_VCPU_POWER_OFF, vcpu->arch.features))
664+
if (test_bit(KVM_ARM_VCPU_POWER_OFF, vcpu->arch.features))
665665
vcpu->arch.pause = true;
666666

667667
return 0;

0 commit comments

Comments
 (0)