]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
libxl: allow PVH guests to use a bootloader
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 22 Sep 2017 15:25:07 +0000 (16:25 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Thu, 28 Sep 2017 14:28:01 +0000 (15:28 +0100)
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 a47bd8c25ccc5174c05a1cc5a291d6c3bd581cbd..18e9ebd7148c4e584e83074ecafe56603f4fefe7 100644 (file)
@@ -324,8 +324,8 @@ void libxl__bootloader_run(libxl__egc *egc, libxl__bootloader_state *bl)
 
     libxl__bootloader_init(bl);
 
-    if (info->type != LIBXL_DOMAIN_TYPE_PV) {
-        LOGD(DEBUG, domid, "not a PV domain, skipping bootloader");
+    if (info->type == LIBXL_DOMAIN_TYPE_HVM) {
+        LOGD(DEBUG, domid, "not a PV/PVH domain, skipping bootloader");
         rc = 0;
         goto out_ok;
     }