]> xenbits.xensource.com Git - xen.git/commit
tools/dombuilder: Prevent failures of xc_dom_gnttab_init()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 12 Oct 2017 19:19:09 +0000 (20:19 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 2 Nov 2017 17:07:23 +0000 (17:07 +0000)
commit9ff6dbfa7576cc1c5d6f9a3c59c69a8503e36f11
tree8c0436dbab931295e8e39d75f651f930efbab514
parent87b0ae7e8277d2fa13486ce2e11a941e55f8df40
tools/dombuilder: Prevent failures of xc_dom_gnttab_init()

Recent changes in grant table configuration have caused calls to
xc_dom_gnttab_init() to fail if not proceeded with a call to
xc_domain_set_gnttab_limits().  This is backwards from the point of view of
3rd party dombuilder users.

Add max_{grant,maptrack}_frames parameters to struct xc_dom_image, and require
them to be set by callers using xc_dom_gnttab_init().  Libxl, which uses
xc_dom_gnttab_init() itself is updated appropriately.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Tested-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Release-acked-by: Julien Grall <julien.grall@linaro.org>
tools/libxc/include/xc_dom.h
tools/libxc/xc_dom_boot.c
tools/libxc/xc_dom_core.c
tools/libxl/libxl_dom.c