On 07/22/2012 11:10 PM, Bhushan Bharat-R65777 wrote:
>>> @@ -386,13 +387,23 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
>>> #ifdef CONFIG_KVM_EXIT_TIMING
>>>     mutex_init(&vcpu->arch.exit_timing_lock);
>>>  #endif
>>> -
>>> +#ifdef CONFIG_BOOKE
>>> +   spin_lock_init(&vcpu->arch.wdt_lock);
>>> +   /* setup watchdog timer once */
>>> +   setup_timer(&vcpu->arch.wdt_timer, kvmppc_watchdog_func,
>>> +               (unsigned long)vcpu);
>>> +#endif
>>>     return 0;
>>>  }
>>
>> Can you do this in kvmppc_booke_init()?
> 
> I do not think we can do this in kvmppc_booke_init(). Watchdog have
> association with vcpu, while there is no vcpu at
> kvmppc_booke_init().

Sorry, I meant kvm_arch_vcpu_setup() in booke.c.

-Scott


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to