On Tue, May 02, 2023 at 12:13:38PM +0100, Alejandro Vallejo wrote: > It previously mimicked the getdomaininfo sysctl semantics by returning > the first domid higher than the requested domid that does exist. This > unintuitive behaviour causes quite a few mistakes and makes the call > needlessly slow in its error path. > > This patch removes the fallback search, returning -ESRCH if the requested > domain doesn't exist. Domain discovery can still be done through the sysctl > interface as that performs a linear search on the list of domains. > > With this modification the xc_domain_getinfo() function is deprecated and > removed to make sure it's not mistakenly used expecting the old behaviour. > The new xc wrapper is xc_domain_getinfo_single(). > > All previous callers of xc_domain_getinfo() have been updated to use > xc_domain_getinfo_single() or xc_domain_getinfolist() instead. This also > means xc_dominfo_t is no longer used by anything and can be purged. > > Resolves: xen-project/xen#105 > Signed-off-by: Alejandro Vallejo <alejandro.vall...@cloud.com> > Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com>
Acked-by: Anthony PERARD <anthony.per...@citrix.com> Thanks, -- Anthony PERARD