[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.10] libxl/pvh: force PVH guests to use the xenstore shutdown
commit a1189f93ef677a6aec8c99c8611a4cb61acf314d Author: Roger Pau Monne <roger.pau@xxxxxxxxxx> AuthorDate: Tue Dec 19 14:17:52 2017 +0000 Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> CommitDate: Tue Mar 6 15:53:26 2018 +0000 libxl/pvh: force PVH guests to use the xenstore shutdown 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@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> (cherry picked from commit 1b33150fe06ab9217f7f12b01bc5e607f4f55658) --- tools/libxl/libxl_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_domain.c b/tools/libxl/libxl_domain.c index 814f8128a1..aaa22ef576 100644 --- a/tools/libxl/libxl_domain.c +++ b/tools/libxl/libxl_domain.c @@ -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); -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.10 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |