>> +    kvm_for_each_vcpu(i, tcpu, kvm)
>> +            if (tcpu->vcpu_id == tid) {
> 
> Wouldn't
> 
>   kvm_get_vcpu(kvm, tid)
> 
> be what you want here?

Would be better in terms of scalability, but we can do that
only if kvm->vcpus[i].vcpu_id = i
Is that always the case?

Christian

--
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