> On 2 May 2023, at 12:13, Alejandro Vallejo <[email protected]> 
> 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 <[email protected]>

Acked-by: Christian Lindig <[email protected]>

I mostly care about the OCaml bindings - looks good to me.

— C

Reply via email to