[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] add count-only option to DOM0_GETDOMAININFOLIST hypercall
Anthony Liguori wrote: There's a race condition here. There's no way of knowing that domains haven't been destroyed (or created) in between these calls.Unfortunately, the only way to avoid this is grab them one at a time. The race condition is harmless and the patch is an improvement over the current situation where you have to guess the number of domains (and hence the size of the buffer you allocate). Most of the time the caller will be looking for a snapshot of domain information, not an up-to-the-instant comprehensive report. And the pre-existing method of allocating a huge buffer and calling once still works. Mike _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |