[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] DOM0_GETDOMAININFO intended behavior



> > Passing a flag in to explicitly request that you want to 
> iterate would 
> > probably be an improvement to the interface. 
> 
> Instead of changing the interface and the applications, how about the
> following: If you request a specific domain id and it doesn't 
> exist, you get back the expected result. If, however, you 
> want a list of domains it works like it has been.

Hmm, I'm not sure I like this. It turns a relatively minor 'gotcha' of
the hypervisor interface into something that's more confusing: if you're
trying to iterate over domains using xc_domain_getinfo then you have to
ask for at least two domains at a time otherwise you'll get ESRCH.

I think the cleanest fix is just to add an 'iterate' flag to the
parameters in GETDOMAININFO, no?

Ian

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.