]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
libxl: allow PVH guests to use a bootloader
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 9 Jan 2018 12:16:37 +0000 (12:16 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 12 Jan 2018 16:18:58 +0000 (16:18 +0000)
Allow PVH guests to boot using a bootloader.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_bootloader.c

index e91eeeca8f884d14faf4c2cb84f53e8ebe75ad0f..df154dee9aa792f7553db8dbaa6c8c65f73dbfa1 100644 (file)
@@ -320,8 +320,8 @@ void libxl__bootloader_run(libxl__egc *egc, libxl__bootloader_state *bl)
 
     libxl__bootloader_init(bl);
 
-    if (info->type != LIBXL_DOMAIN_TYPE_PV) {
-        LOG(DEBUG, "not a PV domain, skipping bootloader");
+    if (info->type == LIBXL_DOMAIN_TYPE_HVM) {
+        LOG(DEBUG, "not a PV/PVH domain, skipping bootloader");
         rc = 0;
         goto out_ok;
     }