Skip to contentSkip to conversation

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

PATCH Superseded Michael Young 2 participants 2 messages Jan 14, 2018 – Jan 15, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

---
 tools/libxl/libxl_dm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/libxl/libxl_dm.c +2 -1
index a2ea95a9be..3a839d5c1e 100644
@@ -1021,7 +1021,8 @@ 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_PV) ||
+        (b_info->type == LIBXL_DOMAIN_TYPE_PVH)) {
         flexarray_append(dm_args, "-xen-attach");
     }
 
Signature · 6 lines
2.14.3

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 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.

---
 tools/libxl/libxl_dm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/libxl/libxl_dm.c +0 -0
index a2ea95a9be..3a839d5c1e 100644

tools/libxl/libxl_dm.c static int libxl__build_device_model_args_new(libxl__gc *gc, · line 1025

Quoted 6 lines
tools/libxl/libxl_dm.c +2 -1
@@ -1021,7 +1021,8 @@ 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_PV) ||
+        (b_info->type == LIBXL_DOMAIN_TYPE_PVH)) {

Better write this as b_info->type != LIBXL_DOMAIN_TYPE_HVM.

With that fixed:

And sorry for that, I could bet I've tried that.

Thanks, Roger.

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