]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
tools/libxl: fix boot of HVM domain with Xenstore-stubdom
authorJuergen Gross <jgross@suse.com>
Tue, 4 Dec 2018 14:28:57 +0000 (15:28 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 7 Dec 2018 12:19:17 +0000 (12:19 +0000)
The Xenstore domid isn't set for HVM domains. This will result in
failure when booting a HVM domain on a system with Xenstore not running
in dom0.

Same applies for console domid, so set both.

This is broken since commit a2d9a6fa1fcd ("tools/libxenctrl: use new
xenforeignmemory API to seed grant table").

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_dom.c

index 598af71562e1182efac02b2dd72cd887b14cf6e8..6160991af316ca0fac6c58ccad94cd8651c51f16 100644 (file)
@@ -1289,6 +1289,8 @@ int libxl__build_hvm(libxl__gc *gc, uint32_t domid,
     dom->vga_hole_size = device_model ? LIBXL_VGA_HOLE_SIZE : 0;
     dom->device_model = device_model;
     dom->max_vcpus = info->max_vcpus;
+    dom->console_domid = state->console_domid;
+    dom->xenstore_domid = state->store_domid;
 
     rc = libxl__domain_device_construct_rdm(gc, d_config,
                                             info->u.hvm.rdm_mem_boundary_memkb*1024,