File libxl.libxl__domain_pvcontrol.patch of Package xen
References: bsc#1161480
Fix xl shutdown for HVM without PV drivers
A return value of zero means no PV drivers. Restore the hunk which was removed.
Fixes commit b183e180bce93037d3ef385a8c2338bbfb7f23d9
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
tools/libxl/libxl_domain.c | 3 +++
1 file changed, 3 insertions(+)
Index: xen-4.14.0-testing/tools/libxl/libxl_domain.c
===================================================================
--- xen-4.14.0-testing.orig/tools/libxl/libxl_domain.c
+++ xen-4.14.0-testing/tools/libxl/libxl_domain.c
@@ -800,6 +800,9 @@ int libxl__domain_pvcontrol(libxl__egc *
if (!rc)
return ERROR_NOPARAVIRT;
+ if (!rc)
+ return ERROR_NOPARAVIRT;
+
shutdown_path = libxl__domain_pvcontrol_xspath(gc, domid);
if (!shutdown_path)
return ERROR_FAIL;