forked from pool/libvirt
Accepting request 132204 from Virtualization
- Fix xen driver following changes to make it stateful f781e276-xen-driver-fix.patch bnc#778006 OBS-URL: https://build.opensuse.org/request/show/132204 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvirt?expand=0&rev=103
This commit is contained in:
commit
1b195e9b2b
91
f781e276-xen-driver-fix.patch
Normal file
91
f781e276-xen-driver-fix.patch
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
commit f781e27653c7e50747c414a916c788cfc81760c4
|
||||||
|
Author: Jim Fehlig <jfehlig@suse.com>
|
||||||
|
Date: Thu Aug 30 12:53:02 2012 -0600
|
||||||
|
|
||||||
|
Fix xen driver following changes to make it stateful
|
||||||
|
|
||||||
|
Recent work to improve support for loadable driver modules introduced
|
||||||
|
a regression in the xen driver. The legacy xen driver is now a
|
||||||
|
stateful, libvirtd driver but was not being registered when building
|
||||||
|
without driver modules.
|
||||||
|
|
||||||
|
A slight behavior change was also noted in the xen drivers when
|
||||||
|
built as driver modules. Previously, explicitly specifying a
|
||||||
|
connection URI was not necessary, but now
|
||||||
|
|
||||||
|
Compiled against library: libvirt 0.10.0
|
||||||
|
Using library: libvirt 0.10.0
|
||||||
|
Using API: QEMU 0.10.0
|
||||||
|
error: failed to get the hypervisor version
|
||||||
|
error: internal error Cannot find suitable emulator for x86_64
|
||||||
|
|
||||||
|
The xen drivers need to be registered before the qemu driver since
|
||||||
|
the qemu driver will return success with a null connection URI.
|
||||||
|
This ordering is safe since the xen drivers will decline when not
|
||||||
|
running the xen kernel.
|
||||||
|
|
||||||
|
Index: libvirt-0.9.13/daemon/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- libvirt-0.9.13.orig/daemon/Makefile.am
|
||||||
|
+++ libvirt-0.9.13/daemon/Makefile.am
|
||||||
|
@@ -132,6 +132,10 @@ if WITH_LXC
|
||||||
|
libvirtd_LDADD += ../src/libvirt_driver_lxc.la
|
||||||
|
endif
|
||||||
|
|
||||||
|
+if WITH_XEN
|
||||||
|
+ libvirtd_LDADD += ../src/libvirt_driver_xen.la
|
||||||
|
+endif
|
||||||
|
+
|
||||||
|
if WITH_LIBXL
|
||||||
|
libvirtd_LDADD += ../src/libvirt_driver_libxl.la
|
||||||
|
endif
|
||||||
|
Index: libvirt-0.9.13/daemon/libvirtd.c
|
||||||
|
===================================================================
|
||||||
|
--- libvirt-0.9.13.orig/daemon/libvirtd.c
|
||||||
|
+++ libvirt-0.9.13/daemon/libvirtd.c
|
||||||
|
@@ -65,6 +65,9 @@
|
||||||
|
# ifdef WITH_LXC
|
||||||
|
# include "lxc/lxc_driver.h"
|
||||||
|
# endif
|
||||||
|
+# ifdef WITH_XEN
|
||||||
|
+# include "xen/xen_driver.h"
|
||||||
|
+# endif
|
||||||
|
# ifdef WITH_LIBXL
|
||||||
|
# include "libxl/libxl_driver.h"
|
||||||
|
# endif
|
||||||
|
@@ -381,6 +384,12 @@ static void daemonInitialize(void)
|
||||||
|
# ifdef WITH_INTERFACE
|
||||||
|
virDriverLoadModule("interface");
|
||||||
|
# endif
|
||||||
|
+# ifdef WITH_XEN
|
||||||
|
+ virDriverLoadModule("xen");
|
||||||
|
+# endif
|
||||||
|
+# ifdef WITH_LIBXL
|
||||||
|
+ virDriverLoadModule("libxl");
|
||||||
|
+# endif
|
||||||
|
# ifdef WITH_QEMU
|
||||||
|
virDriverLoadModule("qemu");
|
||||||
|
# endif
|
||||||
|
@@ -390,12 +399,6 @@ static void daemonInitialize(void)
|
||||||
|
# ifdef WITH_UML
|
||||||
|
virDriverLoadModule("uml");
|
||||||
|
# endif
|
||||||
|
-# ifdef WITH_XEN
|
||||||
|
- virDriverLoadModule("xen");
|
||||||
|
-# endif
|
||||||
|
-# ifdef WITH_LIBXL
|
||||||
|
- virDriverLoadModule("libxl");
|
||||||
|
-# endif
|
||||||
|
#else
|
||||||
|
# ifdef WITH_NETWORK
|
||||||
|
networkRegister();
|
||||||
|
@@ -415,6 +418,9 @@ static void daemonInitialize(void)
|
||||||
|
# ifdef WITH_NWFILTER
|
||||||
|
nwfilterRegister();
|
||||||
|
# endif
|
||||||
|
+# ifdef WITH_XEN
|
||||||
|
+ xenRegister();
|
||||||
|
+# endif
|
||||||
|
# ifdef WITH_LIBXL
|
||||||
|
libxlRegister();
|
||||||
|
# endif
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 30 21:20:11 MDT 2012 - jfehlig@suse.com
|
||||||
|
|
||||||
|
- Fix xen driver following changes to make it stateful
|
||||||
|
f781e276-xen-driver-fix.patch
|
||||||
|
bnc#778006
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 8 11:42:28 MDT 2012 - jfehlig@suse.com
|
Wed Aug 8 11:42:28 MDT 2012 - jfehlig@suse.com
|
||||||
|
|
||||||
|
@ -415,6 +415,7 @@ Source99: baselibs.conf
|
|||||||
# Upstream patches
|
# Upstream patches
|
||||||
Patch0: 4036aa91-systemd.patch
|
Patch0: 4036aa91-systemd.patch
|
||||||
Patch1: 6039a2cb-CVE-2012-3445.patch
|
Patch1: 6039a2cb-CVE-2012-3445.patch
|
||||||
|
Patch2: f781e276-xen-driver-fix.patch
|
||||||
# Need to go upstream
|
# Need to go upstream
|
||||||
Patch100: xen-name-for-devid.patch
|
Patch100: xen-name-for-devid.patch
|
||||||
Patch101: clone.patch
|
Patch101: clone.patch
|
||||||
@ -552,6 +553,7 @@ Authors:
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
%patch101
|
%patch101
|
||||||
%patch102 -p1
|
%patch102 -p1
|
||||||
|
@ -256,7 +256,7 @@ Index: libvirt-0.9.13/daemon/Makefile.am
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-0.9.13.orig/daemon/Makefile.am
|
--- libvirt-0.9.13.orig/daemon/Makefile.am
|
||||||
+++ libvirt-0.9.13/daemon/Makefile.am
|
+++ libvirt-0.9.13/daemon/Makefile.am
|
||||||
@@ -256,39 +256,23 @@ uninstall-logrotate:
|
@@ -260,39 +260,23 @@ uninstall-logrotate:
|
||||||
rmdir $(DESTDIR)$(sysconfdir)/logrotate.d || :
|
rmdir $(DESTDIR)$(sysconfdir)/logrotate.d || :
|
||||||
|
|
||||||
install-sysconfig:
|
install-sysconfig:
|
||||||
|
Loading…
Reference in New Issue
Block a user