]> xenbits.xensource.com Git - xen.git/commitdiff
libxl/pvh: force PVH guests to use the xenstore shutdown
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 19 Dec 2017 14:17:52 +0000 (14:17 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 6 Mar 2018 15:53:26 +0000 (15:53 +0000)
PVH guests are all required to support the xenstore-based shutdown
signalling, since there is no other way for a PVH guest to be
requested to shut down.

For HVM guests we check whether the guest has installed a PV-on-HVM
interrupt callback; that does not make sense for PVH guests.

So for PVH guests, take the PV path: assume that all PVH guests have
suitable xenstore drivers.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
(cherry picked from commit 1b33150fe06ab9217f7f12b01bc5e607f4f55658)

tools/libxl/libxl_domain.c

index 814f8128a1cc4d5c3038c7b36795d44d806d6781..aaa22ef5766229e85a87b0930937adca3a5be8e0 100644 (file)
@@ -599,7 +599,7 @@ int libxl__domain_pvcontrol_available(libxl__gc *gc, uint32_t domid)
     if (domtype == LIBXL_DOMAIN_TYPE_INVALID)
         return ERROR_FAIL;
 
-    if (domtype == LIBXL_DOMAIN_TYPE_PV)
+    if (domtype != LIBXL_DOMAIN_TYPE_HVM)
         return 1;
 
     ret = xc_hvm_param_get(ctx->xch, domid, HVM_PARAM_CALLBACK_IRQ, &pvdriver);