> On 2 May 2023, at 12:13, Alejandro Vallejo <alejandro.vall...@cloud.com> > 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> Acked-by: Christian Lindig <christian.lin...@cloud.com> I mostly care about the OCaml bindings - looks good to me. — C
- [PATCH v3 0/3] Rationalize usage of xc_domain_getinfo{,l... Alejandro Vallejo
- [PATCH v3 1/3] tools: Modify single-domid callers o... Alejandro Vallejo
- Re: [PATCH v3 1/3] tools: Modify single-domid c... Alejandro Vallejo
- Re: [PATCH v3 1/3] tools: Modify single-domid c... Christian Lindig
- Re: [PATCH v3 1/3] tools: Modify single-domid c... Anthony PERARD
- [PATCH v3 3/3] domctl: Modify XEN_DOMCTL_getdomaini... Alejandro Vallejo
- Re: [PATCH v3 3/3] domctl: Modify XEN_DOMCTL_ge... Anthony PERARD
- [PATCH v3 2/3] tools: Use new xc function for some ... Alejandro Vallejo
- Re: [PATCH v3 2/3] tools: Use new xc function f... Alejandro Vallejo
- Re: [PATCH v3 2/3] tools: Use new xc functi... Andrew Cooper
- Re: [PATCH v3 2/3] tools: Use new xc function f... Anthony PERARD