]> xenbits.xensource.com Git - xen.git/commit
libxl: fix libxl_domain_need_memory after 899433f149d
authorWei Liu <wei.liu2@citrix.com>
Fri, 17 May 2019 17:05:55 +0000 (18:05 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 20 May 2019 14:14:14 +0000 (15:14 +0100)
commit278c64519c661c851d37e2a929f006fb8a1dcd01
tree250a7903af073fbf0bb22c2e15715695cf6c9d2a
parent6ac66c9cbb58abf34fc67e8e4ebb9d17bb207964
libxl: fix libxl_domain_need_memory after 899433f149d

After 899433f149d libxl needs to know the content of d_config to
determine which QEMU is used. The code is changed such that
libxl__domain_set_device_model needs to be called before
libxl__domain_build_info_setdefault.

This is fine for libxl code, but it is problematic for
libxl_domain_need_memory, which is the only public API that takes a
build_info. To avoid breaking its users, provide a compatibility
setting inside that function.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_mem.c