From: Michael Young Date: Thu, 18 Jan 2018 10:49:38 +0000 (+0000) Subject: -xen-attach is needed for pvh boot with qemu-xen X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~755 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3e3d89a6d183f7ffba7565b26645fca3f54128dd;p=xen.git -xen-attach is needed for pvh boot with qemu-xen 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 Reviewed-by: Roger Pau Monné e Acked-by: Wei Liu [ wei: ported to staging ] Signed-off-by: Wei Liu --- diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index a2ea95a9be..a3cddce8b7 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -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"); }