|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] add count-only option to DOM0_GETDOMAININFOLIST hypercall
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. Regards, Anthony Liguori Mike D. Day wrote: signed-off-by: Mike D. Day <ncmike@xxxxxxxxxx> When retreiving a list of domain info structs it would be helpfulto know the current domain count prior to making the hcall. This would make it simpler to allocate a return buffer of the appropriate size.Adding the six lines to the case for the GETDOMAININFOLIST dom0 opallows the caller to retrieve only the count of the domains. The use model is as follows: _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |