Skip to contentSkip to conversation

xl: field 'type' not set in dm_info

PATCH New Jean-Edouard LEJOSNE 1 participant 1 message Mar 25, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl: field 'type' not set in dm_info

This fixes a bug that makes xl start qemu without the FV/PV specific options.

tools/libxl/xl.c +2 -0
diff -r 377433a77d70 tools/libxl/xl.c
@@ -660,6 +660,8 @@
         if (!xlu_cfg_get_string (config, "usbdevice", &buf))
             dm_info->usbdevice = strdup(buf);
     }
+
+    dm_info->type = (c_info->hvm) ? XENFV : XENPV;
 
     xlu_cfg_destroy(config);
 }

--
Jean-Edouard LEJOSNE
XenClient Team
[email protected]