On 10/05/2012 10:36 AM, Raghavendra K T wrote: >>> >>> You can store i in the vcpu itself: >>> >>> set_bit(vcpu->index, &kvm->preempted); >>> >> This will make the fact that vcpus are stored in an array into API >> instead of implementation detail :( There were patches for vcpu >> destruction that changed the array to rculist. Well, it will be still >> possible to make the array rcu protected and copy it every time vcpu is >> deleted/added I guess. >> > > If IUC, summary is, we are going with > - Let vcpu array be rcu protected. That's for the future. For now ->vcpus[] is statically allocated. > - we use index inside vcpu and should be updated when a vcpu is > added/deleted. Yes. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html