From c22f60e6e55f1bf300dd76d2222a93911f3b2bb2 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 12 Oct 2023 04:00:49 +0000 Subject: automatic import of xen --- libxl.libxl__domain_pvcontrol.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 libxl.libxl__domain_pvcontrol.patch (limited to 'libxl.libxl__domain_pvcontrol.patch') diff --git a/libxl.libxl__domain_pvcontrol.patch b/libxl.libxl__domain_pvcontrol.patch new file mode 100644 index 0000000..178e004 --- /dev/null +++ b/libxl.libxl__domain_pvcontrol.patch @@ -0,0 +1,27 @@ +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 +--- + tools/libxl/libxl_domain.c | 3 +++ + 1 file changed, 3 insertions(+) + +Index: xen-4.13.1-testing/tools/libxl/libxl_domain.c +=================================================================== +--- xen-4.13.1-testing.orig/tools/libxl/libxl_domain.c ++++ xen-4.13.1-testing/tools/libxl/libxl_domain.c +@@ -795,6 +795,9 @@ int libxl__domain_pvcontrol(libxl__egc * + if (rc < 0) + return rc; + ++ if (!rc) ++ return ERROR_NOPARAVIRT; ++ + shutdown_path = libxl__domain_pvcontrol_xspath(gc, domid); + if (!shutdown_path) + return ERROR_FAIL; -- cgit v1.2.3