Files
xen/tools/libxc
Vitaly Kuznetsov 5dcd0dcb85 libxc: check in xc_get_tot_pages() that the proper domain is reported
XEN_DOMCTL_getdomaininfo, which is being used by xc_domain_getinfo(), has
strange interface: it reports first domain which has domid >= requested domid
so all callers are supposed to check that the proper domain(s) was queried
by checking domid. xc_get_tot_pages() doesn't do that. In case the requested
domain was destroyed it will report first domain with domid > requested domid
which is apparently misleading as there is no way xc_get_tot_pages() callers
can figure out that they got tot_pages for some other domain.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Don Slutz <dslutz@verizon.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
2014-12-04 12:08:19 +00:00
..
2010-08-24 18:42:59 +01:00
2013-04-11 11:09:25 +01:00
2010-08-24 18:42:59 +01:00
2010-08-24 18:42:59 +01:00
2014-11-25 17:21:52 +01:00
2010-08-24 18:42:59 +01:00
2010-08-24 18:42:59 +01:00
2014-03-12 13:26:15 +00:00
2014-06-18 17:17:49 +01:00
2013-11-12 11:47:07 +01:00
2014-09-23 14:40:07 +01:00
2010-08-24 18:42:59 +01:00
2014-06-05 13:53:59 +01:00
2014-05-02 13:34:34 +01:00
2010-08-24 18:42:59 +01:00