]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
-xen-attach is needed for pvh boot with qemu-xen
authorMichael Young <m.a.young@durham.ac.uk>
Thu, 18 Jan 2018 10:49:38 +0000 (10:49 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 18 Jan 2018 10:49:38 +0000 (10:49 +0000)
Currently the boot of a pvh guest using the qemu-xen device model
fails with the error
xen emulation not implemented (yet)
in the qemu-dm log file. This patch adds the missing -xen-attach
argument.

Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>e
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ wei: ported to staging ]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_dm.c

index a2ea95a9beb905bf198aa6c1c48e5afe8ffedddf..a3cddce8b7b224a66b15a17bf681190b157720fc 100644 (file)
@@ -1021,7 +1021,7 @@ static int libxl__build_device_model_args_new(libxl__gc *gc,
      */
     flexarray_append(dm_args, "-no-user-config");
 
-    if (b_info->type == LIBXL_DOMAIN_TYPE_PV) {
+    if (b_info->type != LIBXL_DOMAIN_TYPE_HVM) {
         flexarray_append(dm_args, "-xen-attach");
     }