libxenguest: complete loops in xc_map_domain_meminfo()
authorJan Beulich <jbeulich@suse.com>
Fri, 13 Aug 2021 14:49:10 +0000 (16:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Aug 2021 14:49:10 +0000 (16:49 +0200)
commit1a838bf72584788310496ba5f3d865457c80727f
treeef942c93ed862a2a538c0c8e8e198c21101a437e
parent5a88d524857e5bf78b077d30ea515fcaac061bfc
libxenguest: complete loops in xc_map_domain_meminfo()

minfo->p2m_size may have more than 31 significant bits. Change the
induction variable to unsigned long, and (largely for signed-ness
consistency) a helper variable to unsigned int. While there also avoid
open-coding min().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libs/guest/xg_domain.c