On 03/12/14 21:18, Christoffer Dall wrote: > 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. > > Signed-off-by: Christoffer Dall <christoffer.d...@linaro.org> > --- > arch/arm/kvm/arm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c > index 9e193c8..b160bea 100644 > --- a/arch/arm/kvm/arm.c > +++ b/arch/arm/kvm/arm.c > @@ -661,7 +661,7 @@ static int kvm_arch_vcpu_ioctl_vcpu_init(struct kvm_vcpu > *vcpu, > /* > * Handle the "start in power-off" case by marking the VCPU as paused. > */ > - if (__test_and_clear_bit(KVM_ARM_VCPU_POWER_OFF, vcpu->arch.features)) > + if (test_bit(KVM_ARM_VCPU_POWER_OFF, vcpu->arch.features)) > vcpu->arch.pause = true; > > return 0; >
Acked-by: Marc Zyngier <marc.zyng...@arm.com> M. -- Jazz is not dead. It just smells funny... -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html