From 225a48f1571f40a6521d4fdba14c5011917941b0 Mon Sep 17 00:00:00 2001 From: Michael Young Date: Mon, 15 Jan 2018 21:23:20 +0000 Subject: [PATCH] -xen-attach is needed for pvh boot with qemu-xen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. V2: Use b_info->type != LIBXL_DOMAIN_TYPE_HVM instead of (b_info->type == LIBXL_DOMAIN_TYPE_PV) || (b_info->type == LIBXL_DOMAIN_TYPE_PVH) as recommended by Roger Pau Monné. Signed-off-by: Michael Young Reviewed-by: Roger Pau Monné Acked-by: Wei Liu (cherry picked from commit 6f1979c8e4184f1f2b24b860e30d3b037b2e7f05) --- tools/libxl/libxl_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index 5306623649..c8b033286e 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -991,7 +991,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"); } -- 2.39.5