forked from pool/libvirt
Accepting request 768456 from home:jfehlig:branches:Virtualization
- xen: Inhibit libvirtd shutdown when domains are running 6c1dddaf-libxl-shutdown-inhibit.patch bsc#1157100 OBS-URL: https://build.opensuse.org/request/show/768456 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=798
This commit is contained in:
parent
94803fa053
commit
ae4fdc4994
39
6c1dddaf-libxl-shutdown-inhibit.patch
Normal file
39
6c1dddaf-libxl-shutdown-inhibit.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
commit 6c1dddaf97b4ef70e27961c9f79b15c79a863ac5
|
||||||
|
Author: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
|
||||||
|
Date: Sat Jan 18 03:37:42 2020 +0100
|
||||||
|
|
||||||
|
libxl: initialize shutdown inhibit callback
|
||||||
|
|
||||||
|
The libxl driver already tries to call shutdown inhibit callback in the
|
||||||
|
right places, but only if it's set. That last part was missing,
|
||||||
|
resulting in premature shutdown when running libvirtd
|
||||||
|
--timeout=...
|
||||||
|
|
||||||
|
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
|
||||||
|
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
|
||||||
|
index ef02a066d9..eb166244ba 100644
|
||||||
|
--- a/src/libxl/libxl_driver.c
|
||||||
|
+++ b/src/libxl/libxl_driver.c
|
||||||
|
@@ -648,8 +648,8 @@ libxlAddDom0(libxlDriverPrivatePtr driver)
|
||||||
|
|
||||||
|
static int
|
||||||
|
libxlStateInitialize(bool privileged,
|
||||||
|
- virStateInhibitCallback callback G_GNUC_UNUSED,
|
||||||
|
- void *opaque G_GNUC_UNUSED)
|
||||||
|
+ virStateInhibitCallback callback,
|
||||||
|
+ void *opaque)
|
||||||
|
{
|
||||||
|
libxlDriverConfigPtr cfg;
|
||||||
|
char *driverConf = NULL;
|
||||||
|
@@ -670,6 +670,9 @@ libxlStateInitialize(bool privileged,
|
||||||
|
return VIR_DRV_STATE_INIT_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ libxl_driver->inhibitCallback = callback;
|
||||||
|
+ libxl_driver->inhibitOpaque = opaque;
|
||||||
|
+
|
||||||
|
/* Allocate bitmap for vnc port reservation */
|
||||||
|
if (!(libxl_driver->reservedGraphicsPorts =
|
||||||
|
virPortAllocatorRangeNew(_("VNC"),
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 29 20:56:13 UTC 2020 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
- xen: Inhibit libvirtd shutdown when domains are running
|
||||||
|
6c1dddaf-libxl-shutdown-inhibit.patch
|
||||||
|
bsc#1157100
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 15 19:27:10 UTC 2020 - James Fehlig <jfehlig@suse.com>
|
Wed Jan 15 19:27:10 UTC 2020 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libvirt
|
# spec file for package libvirt
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -338,6 +338,7 @@ Source6: libvirtd-relocation-server.xml
|
|||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
Source100: %{name}-rpmlintrc
|
Source100: %{name}-rpmlintrc
|
||||||
# Upstream patches
|
# Upstream patches
|
||||||
|
Patch0: 6c1dddaf-libxl-shutdown-inhibit.patch
|
||||||
# Patches pending upstream review
|
# Patches pending upstream review
|
||||||
Patch100: libxl-dom-reset.patch
|
Patch100: libxl-dom-reset.patch
|
||||||
Patch101: network-don-t-use-dhcp-authoritative-on-static-netwo.patch
|
Patch101: network-don-t-use-dhcp-authoritative-on-static-netwo.patch
|
||||||
@ -871,6 +872,7 @@ libvirt plugin for NSS for translating domain names into IP addresses.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
%patch101 -p1
|
%patch101 -p1
|
||||||
%patch150 -p1
|
%patch150 -p1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user