On Tue, May 02, 2023 at 12:13:36PM +0100, Alejandro Vallejo wrote: > xc_domain_getinfolist() internally relies on a sysctl that performs > a linear search for the domids. Many callers of xc_domain_getinfolist() > who require information about a precise domid are much better off calling > xc_domain_getinfo_single() instead, that will use the getdomaininfo domctl > instead and ensure the returned domid matches the requested one. The domtctl > will find the domid faster too, because that uses hashed lists. > > Signed-off-by: Alejandro Vallejo <alejandro.vall...@cloud.com> > --- > Cc: Andrew Cooper <andrew.coop...@citrix.com> > Cc: Wei Liu <w...@xen.org> > Cc: Anthony PERARD <anthony.per...@citrix.com> > Cc: Juergen Gross <jgr...@suse.com> > Cc: Christian Lindig <christian.lin...@citrix.com> > > v3: > * Replaced single-domid xc_domain_getinfolist() call in ocaml stub with > xc_domain_getinfo_single()
My mistake here. It's supposed to have a "R-by: Andrew Cooper"