]> xenbits.xensource.com Git - xen.git/commit
libxc: Introduce xc_domain_nr_gpfns as a cousin of xc_domain_maximum_gpfn.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 30 Mar 2015 14:46:38 +0000 (10:46 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 30 Mar 2015 15:07:30 +0000 (16:07 +0100)
commit71cba2a07bb541f25390cdd3546c9ee296a7257b
tree63bc40ec96e0e98b6c7bb2bcd1b4637584003152
parent94479d744a5392fb958be9ab369d9318731170bd
libxc: Introduce xc_domain_nr_gpfns as a cousin of xc_domain_maximum_gpfn.

The commit a8f8a590e02d2d2b717257c0bd9a8b396103bdf4
"libxc: Check xc_domain_maximum_gpfn for negative return values"
introduced an regression in tools outside libxc (migrate v2)
which wanted the unfiltered GPFN value. Said commit added
a wrapper which added +1 if there were no errors.

To make it work pre-commit a8f8a59 we add an xc_domain_nr_gpfns
which will add +1 if there are no errors (and change all in-tree
callers to use it). The xc_domain_maximum_gpfn will return the
unfiltered GPFN value.

Suggested-by: Ian Campbell <ian.campbell@citrix.com>
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_core_arm.c
tools/libxc/xc_core_x86.c
tools/libxc/xc_domain.c
tools/libxc/xc_domain_save.c