diff options
author | Michael Young <m.a.young@durham.ac.uk> | 2018-01-15 21:23:20 +0000 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2018-01-16 16:20:44 +0000 |
commit | 6f1979c8e4184f1f2b24b860e30d3b037b2e7f05 (patch) | |
tree | 2b6b9cabacfd48088cdce6fa7545172f559117e0 | |
parent | 0a515eeb966add7c63d764cabffec3b2f560a588 (diff) | |
download | xen-6f1979c8e4184f1f2b24b860e30d3b037b2e7f05.tar.gz |
-xen-attach is needed for pvh boot with qemu-xen4.10.0-shim-comet-2
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 <m.a.young@durham.ac.uk>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
-rw-r--r-- | tools/libxl/libxl_dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |