]> xenbits.xensource.com Git - xen.git/commit
libxl: don't set gnttab limits in soft reset case
authorJuergen Gross <jgross@suse.com>
Thu, 17 Jan 2019 16:40:59 +0000 (16:40 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 5 Feb 2019 11:43:09 +0000 (11:43 +0000)
commit0a9cc379968b7fd50b955c9ddd3d7da1de908b84
tree3fb29494280c6641dc6dfa06ee998dfac92c47e1
parent80c2955777ad0756dae5f0d31af9e531eb27c4d2
libxl: don't set gnttab limits in soft reset case

In case of soft reset the gnttab limit setting will fail, so omit it.
Setting of max vcpu count is pointless in this case, too, so we can
drop that as well.

Without this patch soft reset will fail with:

libxl: error: libxl_dom.c:363:libxl__build_pre: Couldn't set grant table limits

Reported-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Tested-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
(cherry picked from commit dd492b8f64d9ad9d413289565bd074f025f8edde)
tools/libxl/libxl_create.c
tools/libxl/libxl_dom.c
tools/libxl/libxl_internal.h