Skip to contentSkip to conversation

-xen-attach is needed for pvh boot with qemu-xen

PATCH In review Michael Young 2 participants 2 messages Jan 15, 2018 – Jan 16, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 -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.

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é.

---
 tools/libxl/libxl_dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl_dm.c +1 -1
index a2ea95a9be..a3cddce8b7 100644
@@ -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");
     }
 
Signature · 1 line
2.14.3

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by on v2 1/1
#1 lore raw
Quoted 6 lines · Michael Young

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.

Quoted 8 lines

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é.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel