Bastian Blank
2011-Jun-25 21:14 UTC
[Xen-devel] Difference XEN_DOMCTL_getdomaininfo and XEN_SYSCTL_getdomaininfolist
Hi folks While doing some research, I found two functions in libxc that seem to do the same thing: xc_domain_getinfo and xc_domain_getinfolist. This functions uses two different hypervisor functions, both returning the same structure. Is there a reason for this, except that xc_domain_getinfo returns a different structure? Bastian -- Time is fluid ... like a river with currents, eddies, backwash. -- Spock, "The City on the Edge of Forever", stardate 3134.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2011-Jun-27 08:32 UTC
Re: [Xen-devel] Difference XEN_DOMCTL_getdomaininfo and XEN_SYSCTL_getdomaininfolist
On Sat, 2011-06-25 at 22:14 +0100, Bastian Blank wrote:> Hi folks > > While doing some research, I found two functions in libxc that seem to > do the same thing: xc_domain_getinfo and xc_domain_getinfolist. This > functions uses two different hypervisor functions, both returning the > same structure. > > Is there a reason for this, except that xc_domain_getinfo returns a > different structure?I wouldn''t like to say for sure but it is probably no particular reason other than Hysterical Raisins... I suppose the structure from xc_domain_getinfo being partially digested is helpful to some callers. On the other hand xc_domain_getinfolist gets the list in a single hypercall which takes the domlistlock so I guess it is in some sense a more consistent snapshot. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel