From 14a390fa2a245f51a9bab075ae58ffe41b417051fd87959230349938c60f2ac0 Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Thu, 19 Jan 2017 18:52:37 +0000 Subject: [PATCH] Accepting request 451473 from home:jfehlig:branches:Virtualization - Update to libvirt 3.0.0 - Many incremental improvements and bug fixes, see http://libvirt.org/news.html - Add b018ada3-shunloadtest-build-fix.patch to fix 'make check' failures - Add qemu-disable-namespaces.patch to temporarily disable qemu namespace feature until all issues are resolved OBS-URL: https://build.opensuse.org/request/show/451473 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=578 --- apparmor-fixes.patch | 10 +-- apparmor-no-mount.patch | 6 +- b018ada3-shunloadtest-build-fix.patch | 33 +++++++++ blockcopy-check-dst-identical-device.patch | 8 +-- libvirt-2.5.0.tar.xz | 3 - libvirt-2.5.0.tar.xz.asc | 10 --- libvirt-3.0.0.tar.xz | 3 + libvirt-3.0.0.tar.xz.asc | 10 +++ libvirt-guests-init-script.patch | 18 ++--- libvirt-power8-models.patch | 8 +-- libvirt-suse-netcontrol.patch | 84 +++++++++++----------- libvirt.changes | 11 +++ libvirt.spec | 15 +++- libvirtd-defaults.patch | 18 ++--- libvirtd-init-script.patch | 6 +- libxl-dom-reset.patch | 10 +-- libxl-qemu-emulator-caps.patch | 6 +- libxl-set-cach-mode.patch | 10 +-- libxl-set-migration-constraints.patch | 50 ++++++------- libxl-support-block-script.patch | 14 ++-- lxc-wait-after-eth-del.patch | 24 +++---- ppc64le-canonical-name.patch | 6 +- qemu-apparmor-screenshot.patch | 8 +-- qemu-disable-namespaces.patch | 29 ++++++++ support-managed-pci-xen-driver.patch | 12 ++-- suse-qemu-conf.patch | 6 +- systemd-service-xen.patch | 6 +- virtlockd-init-script.patch | 12 ++-- virtlogd-init-script.patch | 12 ++-- xen-pv-cdrom.patch | 6 +- xen-sxpr-disk-type.patch | 6 +- 31 files changed, 269 insertions(+), 191 deletions(-) create mode 100644 b018ada3-shunloadtest-build-fix.patch delete mode 100644 libvirt-2.5.0.tar.xz delete mode 100644 libvirt-2.5.0.tar.xz.asc create mode 100644 libvirt-3.0.0.tar.xz create mode 100644 libvirt-3.0.0.tar.xz.asc create mode 100644 qemu-disable-namespaces.patch diff --git a/apparmor-fixes.patch b/apparmor-fixes.patch index 76398a7..2bfae93 100644 --- a/apparmor-fixes.patch +++ b/apparmor-fixes.patch @@ -1,10 +1,10 @@ -Index: libvirt-2.5.0/examples/apparmor/libvirt-qemu +Index: libvirt-3.0.0/examples/apparmor/libvirt-qemu =================================================================== ---- libvirt-2.5.0.orig/examples/apparmor/libvirt-qemu -+++ libvirt-2.5.0/examples/apparmor/libvirt-qemu -@@ -143,6 +143,9 @@ +--- libvirt-3.0.0.orig/examples/apparmor/libvirt-qemu ++++ libvirt-3.0.0/examples/apparmor/libvirt-qemu +@@ -146,6 +146,9 @@ # for restore - /bin/bash rmix, + /{usr/,}bin/bash rmix, + /run/nscd/passwd r, + /run/nscd/group r, diff --git a/apparmor-no-mount.patch b/apparmor-no-mount.patch index 5126287..91bd029 100644 --- a/apparmor-no-mount.patch +++ b/apparmor-no-mount.patch @@ -1,7 +1,7 @@ -Index: libvirt-2.5.0/examples/apparmor/libvirt-lxc +Index: libvirt-3.0.0/examples/apparmor/libvirt-lxc =================================================================== ---- libvirt-2.5.0.orig/examples/apparmor/libvirt-lxc -+++ libvirt-2.5.0/examples/apparmor/libvirt-lxc +--- libvirt-3.0.0.orig/examples/apparmor/libvirt-lxc ++++ libvirt-3.0.0/examples/apparmor/libvirt-lxc @@ -2,39 +2,15 @@ #include diff --git a/b018ada3-shunloadtest-build-fix.patch b/b018ada3-shunloadtest-build-fix.patch new file mode 100644 index 0000000..8624379 --- /dev/null +++ b/b018ada3-shunloadtest-build-fix.patch @@ -0,0 +1,33 @@ +commit b018ada3304c08e02b0750f8735b0702f0fd5f8c +Author: Jim Fehlig +Date: Mon Jan 16 10:58:00 2017 -0700 + + tests: fix compilation of shunloadtest + + While local builds succeed fine, a build worker building in a + chroot environment is encountering the following error with + libvirt 3.0.0 release candidates + + [ 162s] shunloadtest.o: In function `main': + [ 162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:110: undefined reference to `dlopen' + [ 162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:114: undefined reference to `dlsym' + [ 162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:133: undefined reference to `dlclose' + [ 162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:111: undefined reference to `dlerror' + [ 162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:115: undefined reference to `dlerror' + [ 162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:116: undefined reference to `dlclose' + + Fix by appending DLOPEN_LIBS to shunloadtest_LDADD. + +Index: libvirt-3.0.0/tests/Makefile.am +=================================================================== +--- libvirt-3.0.0.orig/tests/Makefile.am ++++ libvirt-3.0.0/tests/Makefile.am +@@ -1348,7 +1348,7 @@ libshunload_la_LDFLAGS = $(MOCKLIBS_LDFL + + shunloadtest_SOURCES = \ + shunloadtest.c +-shunloadtest_LDADD = $(LIB_PTHREAD) ++shunloadtest_LDADD = $(LIB_PTHREAD) $(DLOPEN_LIBS) + shunloadtest_DEPENDENCIES = libshunload.la + + sysinfotest_SOURCES = \ diff --git a/blockcopy-check-dst-identical-device.patch b/blockcopy-check-dst-identical-device.patch index 4dca0cf..b22e012 100644 --- a/blockcopy-check-dst-identical-device.patch +++ b/blockcopy-check-dst-identical-device.patch @@ -11,11 +11,11 @@ Signed-off-by: Chunyan Liu src/qemu/qemu_driver.c | 7 +++++++ 1 file changed, 7 insertions(+) -Index: libvirt-2.5.0/src/qemu/qemu_driver.c +Index: libvirt-3.0.0/src/qemu/qemu_driver.c =================================================================== ---- libvirt-2.5.0.orig/src/qemu/qemu_driver.c -+++ libvirt-2.5.0/src/qemu/qemu_driver.c -@@ -16680,6 +16680,15 @@ qemuDomainBlockCopyCommon(virDomainObjPt +--- libvirt-3.0.0.orig/src/qemu/qemu_driver.c ++++ libvirt-3.0.0/src/qemu/qemu_driver.c +@@ -16828,6 +16828,15 @@ qemuDomainBlockCopyCommon(virDomainObjPt _("non-file destination not supported yet")); goto endjob; } diff --git a/libvirt-2.5.0.tar.xz b/libvirt-2.5.0.tar.xz deleted file mode 100644 index 24bf7d7..0000000 --- a/libvirt-2.5.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:819dffefbfd6ae95dfe1b28cfdee15ebcf9f91bbd732157488a57705bf81cb1e -size 13638636 diff --git a/libvirt-2.5.0.tar.xz.asc b/libvirt-2.5.0.tar.xz.asc deleted file mode 100644 index df175c1..0000000 --- a/libvirt-2.5.0.tar.xz.asc +++ /dev/null @@ -1,10 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQEcBAABAgAGBQJYRIafAAoJEBVYiyZZa+pdCEkIAMzxa5BHPXFnolPlD06kNRBl -aqiLDiFb9uYMAdg87pNiHMzwjhby9iH8HORflxGpW7MLSNS/Q3U66WFt6EUefzv1 -PRLfR+9rkdGmwrDBoj8HA/EeDaC3OR5j0XdAYn6KXFTTWlOo5IgC+3idq6iIxXYP -wco3HKo+gm863U5O2a+EPsWqSj0jopjU9wj9c1uCR8t1Ezhz+iI8qk3GWoozMzBI -s6Z5a7KmUKZAHUDy+vD1UAOATy2+8kEJ57hAeaaj5WPEC6x1l3u6MDQRmZ+wM7C9 -PV5VUvDDzm9mCakmhIL8/2iPlLip6Qk2HXVjObimiqGO5xQvWlD0ivuZrfClkpM= -=lyBB ------END PGP SIGNATURE----- diff --git a/libvirt-3.0.0.tar.xz b/libvirt-3.0.0.tar.xz new file mode 100644 index 0000000..07cfa0c --- /dev/null +++ b/libvirt-3.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d9d26b70e13b1b2dfde5789ed52fc4528289a37e0f158418e9746263b37175e +size 13815736 diff --git a/libvirt-3.0.0.tar.xz.asc b/libvirt-3.0.0.tar.xz.asc new file mode 100644 index 0000000..507ef26 --- /dev/null +++ b/libvirt-3.0.0.tar.xz.asc @@ -0,0 +1,10 @@ +-----BEGIN PGP SIGNATURE----- + +iQEcBAABAgAGBQJYfl7BAAoJEBVYiyZZa+pdlPoH/0nWMZ7B4U8PAz/WCW1vasvF +MC/2BN9owUgA5LTKKROTMG2eoY1daJJgpZ+kC61Xnlnt39DDSvisQlPlnmhb6RLU +1JtopaDIkhTQ/lL9JG4pnvAHTcHbBqWmGC3jSKBrLAfjjfpkPHYuJqnnDfnMQ9a7 +lm4PE0MQZtvZILqYUPJiuzYinvyBkzHacd1+FlUZZIdBEOGp28xoh4ILHc7f6iDL +P/87gsmrIE/A/ElWCCntQPpn5s99Oz2WIpdnyK+9jBxd5EfZOTo/69qTNLn4XLRE +F4LlkAX7HducBOtNPIVMYNXWI1sdq+LzhKW5lL5wQDFh7kKTK8WL5sc3EPNmHnw= +=mauQ +-----END PGP SIGNATURE----- diff --git a/libvirt-guests-init-script.patch b/libvirt-guests-init-script.patch index d9a16b9..7a7c8f8 100644 --- a/libvirt-guests-init-script.patch +++ b/libvirt-guests-init-script.patch @@ -1,9 +1,9 @@ Adjust libvirt-guests init files to conform to SUSE standards -Index: libvirt-2.5.0/tools/libvirt-guests.init.in +Index: libvirt-3.0.0/tools/libvirt-guests.init.in =================================================================== ---- libvirt-2.5.0.orig/tools/libvirt-guests.init.in -+++ libvirt-2.5.0/tools/libvirt-guests.init.in +--- libvirt-3.0.0.orig/tools/libvirt-guests.init.in ++++ libvirt-3.0.0/tools/libvirt-guests.init.in @@ -4,27 +4,27 @@ # http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html # @@ -45,10 +45,10 @@ Index: libvirt-2.5.0/tools/libvirt-guests.init.in # exec @libexecdir@/libvirt-guests.sh "$@" -Index: libvirt-2.5.0/tools/libvirt-guests.sh.in +Index: libvirt-3.0.0/tools/libvirt-guests.sh.in =================================================================== ---- libvirt-2.5.0.orig/tools/libvirt-guests.sh.in -+++ libvirt-2.5.0/tools/libvirt-guests.sh.in +--- libvirt-3.0.0.orig/tools/libvirt-guests.sh.in ++++ libvirt-3.0.0/tools/libvirt-guests.sh.in @@ -16,14 +16,13 @@ # License along with this library. If not, see # . @@ -208,10 +208,10 @@ Index: libvirt-2.5.0/tools/libvirt-guests.sh.in esac -exit $RETVAL +rc_exit -Index: libvirt-2.5.0/tools/libvirt-guests.sysconf +Index: libvirt-3.0.0/tools/libvirt-guests.sysconf =================================================================== ---- libvirt-2.5.0.orig/tools/libvirt-guests.sysconf -+++ libvirt-2.5.0/tools/libvirt-guests.sysconf +--- libvirt-3.0.0.orig/tools/libvirt-guests.sysconf ++++ libvirt-3.0.0/tools/libvirt-guests.sysconf @@ -1,19 +1,29 @@ +## Path: System/Virtualization/libvirt-guests + diff --git a/libvirt-power8-models.patch b/libvirt-power8-models.patch index 805461a..b3dee5c 100644 --- a/libvirt-power8-models.patch +++ b/libvirt-power8-models.patch @@ -2,11 +2,11 @@ Add POWER8 v2.0 and v2.1 to cpu map XML From: -Index: libvirt-2.5.0/src/cpu/cpu_map.xml +Index: libvirt-3.0.0/src/cpu/cpu_map.xml =================================================================== ---- libvirt-2.5.0.orig/src/cpu/cpu_map.xml -+++ libvirt-2.5.0/src/cpu/cpu_map.xml -@@ -1540,6 +1540,8 @@ +--- libvirt-3.0.0.orig/src/cpu/cpu_map.xml ++++ libvirt-3.0.0/src/cpu/cpu_map.xml +@@ -1569,6 +1569,8 @@ diff --git a/libvirt-suse-netcontrol.patch b/libvirt-suse-netcontrol.patch index ac748ca..3161e4c 100644 --- a/libvirt-suse-netcontrol.patch +++ b/libvirt-suse-netcontrol.patch @@ -1,44 +1,36 @@ -Index: libvirt-2.5.0/configure.ac +Index: libvirt-3.0.0/configure.ac =================================================================== ---- libvirt-2.5.0.orig/configure.ac -+++ libvirt-2.5.0/configure.ac -@@ -251,6 +251,7 @@ LIBVIRT_CHECK_GLUSTER - LIBVIRT_CHECK_HAL - LIBVIRT_CHECK_LIBSSH +--- libvirt-3.0.0.orig/configure.ac ++++ libvirt-3.0.0/configure.ac +@@ -255,6 +255,7 @@ LIBVIRT_ARG_LIBSSH + LIBVIRT_ARG_LIBXML + LIBVIRT_ARG_MACVTAP + LIBVIRT_ARG_NETCF ++LIBVIRT_ARG_NETCONTROL + LIBVIRT_ARG_NSS + LIBVIRT_ARG_NUMACTL + LIBVIRT_ARG_OPENWSMAN +@@ -294,6 +295,7 @@ LIBVIRT_CHECK_LIBSSH + LIBVIRT_CHECK_LIBXML + LIBVIRT_CHECK_MACVTAP LIBVIRT_CHECK_NETCF +LIBVIRT_CHECK_NETCONTROL LIBVIRT_CHECK_NUMACTL + LIBVIRT_CHECK_NWFILTER LIBVIRT_CHECK_OPENWSMAN - LIBVIRT_CHECK_PCIACCESS -@@ -2287,11 +2288,12 @@ if test "$with_libvirtd" = "no" ; then - with_interface=no - fi - --dnl The interface driver depends on the netcf library or udev library --case $with_interface:$with_netcf:$with_udev in -+dnl The interface driver depends on the netcf library, netcontrol library, or -+dnl udev library -+case $with_interface:$with_netcf:$with_netcontrol:$with_udev in - check:*yes*) with_interface=yes ;; - check:no:no) with_interface=no ;; -- yes:no:no) AC_MSG_ERROR([Requested the Interface driver without netcf or udev support]) ;; -+ yes:no:no) AC_MSG_ERROR([Requested the Interface driver without netcf, netcontrol, or udev support]) ;; - esac - - if test "$with_interface" = "yes" ; then -@@ -2680,6 +2682,7 @@ LIBVIRT_RESULT_GLUSTER - LIBVIRT_RESULT_HAL - LIBVIRT_RESULT_LIBSSH +@@ -977,6 +979,7 @@ LIBVIRT_RESULT_LIBXL + LIBVIRT_RESULT_LIBXML + LIBVIRT_RESULT_MACVTAP LIBVIRT_RESULT_NETCF +LIBVIRT_RESULT_NETCONTROL + LIBVIRT_RESULT_NSS LIBVIRT_RESULT_NUMACTL LIBVIRT_RESULT_OPENWSMAN - LIBVIRT_RESULT_PCIACCESS -Index: libvirt-2.5.0/src/Makefile.am +Index: libvirt-3.0.0/src/Makefile.am =================================================================== ---- libvirt-2.5.0.orig/src/Makefile.am -+++ libvirt-2.5.0/src/Makefile.am -@@ -954,6 +954,10 @@ if WITH_NETCF +--- libvirt-3.0.0.orig/src/Makefile.am ++++ libvirt-3.0.0/src/Makefile.am +@@ -957,6 +957,10 @@ if WITH_NETCF INTERFACE_DRIVER_SOURCES += \ interface/interface_backend_netcf.c endif WITH_NETCF @@ -49,7 +41,7 @@ Index: libvirt-2.5.0/src/Makefile.am if WITH_UDEV INTERFACE_DRIVER_SOURCES += \ interface/interface_backend_udev.c -@@ -1603,6 +1607,10 @@ if WITH_NETCF +@@ -1610,6 +1614,10 @@ if WITH_NETCF libvirt_driver_interface_la_CFLAGS += $(NETCF_CFLAGS) libvirt_driver_interface_la_LIBADD += $(NETCF_LIBS) endif WITH_NETCF @@ -60,10 +52,10 @@ Index: libvirt-2.5.0/src/Makefile.am if WITH_UDEV libvirt_driver_interface_la_CFLAGS += $(UDEV_CFLAGS) libvirt_driver_interface_la_LIBADD += $(UDEV_LIBS) -Index: libvirt-2.5.0/tools/virsh.c +Index: libvirt-3.0.0/tools/virsh.c =================================================================== ---- libvirt-2.5.0.orig/tools/virsh.c -+++ libvirt-2.5.0/tools/virsh.c +--- libvirt-3.0.0.orig/tools/virsh.c ++++ libvirt-3.0.0/tools/virsh.c @@ -602,6 +602,8 @@ virshShowVersion(vshControl *ctl ATTRIBU vshPrint(ctl, " Interface"); # if defined(WITH_NETCF) @@ -73,10 +65,10 @@ Index: libvirt-2.5.0/tools/virsh.c # elif defined(WITH_UDEV) vshPrint(ctl, " udev"); # endif -Index: libvirt-2.5.0/src/interface/interface_backend_netcf.c +Index: libvirt-3.0.0/src/interface/interface_backend_netcf.c =================================================================== ---- libvirt-2.5.0.orig/src/interface/interface_backend_netcf.c -+++ libvirt-2.5.0/src/interface/interface_backend_netcf.c +--- libvirt-3.0.0.orig/src/interface/interface_backend_netcf.c ++++ libvirt-3.0.0/src/interface/interface_backend_netcf.c @@ -23,7 +23,12 @@ #include @@ -160,10 +152,10 @@ Index: libvirt-2.5.0/src/interface/interface_backend_netcf.c if (virSetSharedInterfaceDriver(&interfaceDriver) < 0) return -1; if (virRegisterStateDriver(&interfaceStateDriver) < 0) -Index: libvirt-2.5.0/src/interface/interface_driver.c +Index: libvirt-3.0.0/src/interface/interface_driver.c =================================================================== ---- libvirt-2.5.0.orig/src/interface/interface_driver.c -+++ libvirt-2.5.0/src/interface/interface_driver.c +--- libvirt-3.0.0.orig/src/interface/interface_driver.c ++++ libvirt-3.0.0/src/interface/interface_driver.c @@ -30,8 +30,15 @@ interfaceRegister(void) if (netcfIfaceRegister() == 0) return 0; @@ -181,11 +173,11 @@ Index: libvirt-2.5.0/src/interface/interface_driver.c if (udevIfaceRegister() == 0) return 0; #endif /* WITH_UDEV */ -Index: libvirt-2.5.0/m4/virt-netcontrol.m4 +Index: libvirt-3.0.0/m4/virt-netcontrol.m4 =================================================================== --- /dev/null -+++ libvirt-2.5.0/m4/virt-netcontrol.m4 -@@ -0,0 +1,35 @@ ++++ libvirt-3.0.0/m4/virt-netcontrol.m4 +@@ -0,0 +1,39 @@ +dnl The libnetcontrol library +dnl +dnl Copyright (C) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. @@ -205,6 +197,10 @@ Index: libvirt-2.5.0/m4/virt-netcontrol.m4 +dnl . +dnl + ++AC_DEFUN([LIBVIRT_ARG_NETCONTROL],[ ++ LIBVIRT_ARG_WITH_FEATURE([NETCONTROL], [netcontrol], [check], [0.2.0]) ++]) ++ +AC_DEFUN([LIBVIRT_CHECK_NETCONTROL],[ + LIBVIRT_CHECK_PKG([NETCONTROL], [netcontrol], [0.2.0]) + diff --git a/libvirt.changes b/libvirt.changes index ebfc872..096bdc7 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Jan 18 23:34:31 UTC 2017 - jfehlig@suse.com + +- Update to libvirt 3.0.0 + - Many incremental improvements and bug fixes, see + http://libvirt.org/news.html + - Add b018ada3-shunloadtest-build-fix.patch to fix 'make check' + failures + - Add qemu-disable-namespaces.patch to temporarily disable + qemu namespace feature until all issues are resolved + ------------------------------------------------------------------- Wed Dec 28 10:20:49 UTC 2016 - matwey.kornilov@gmail.com diff --git a/libvirt.spec b/libvirt.spec index b783f19..95bfe55 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -1,7 +1,7 @@ # # spec file for package libvirt # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -175,7 +175,7 @@ Name: libvirt Url: http://libvirt.org/ -Version: 2.5.0 +Version: 3.0.0 Release: 0 Summary: Library providing a simple virtualization API License: LGPL-2.1+ @@ -313,6 +313,7 @@ Source4: libvirtd-relocation-server.fw Source99: baselibs.conf Source100: %{name}-rpmlintrc # Upstream patches +Patch0: b018ada3-shunloadtest-build-fix.patch # Patches pending upstream review Patch100: libxl-dom-reset.patch # Need to go upstream @@ -339,6 +340,10 @@ Patch211: qemu-apparmor-screenshot.patch Patch212: libvirt-suse-netcontrol.patch Patch213: lxc-wait-after-eth-del.patch Patch214: libxl-qemu-emulator-caps.patch +# Similar to upstream, temporarily disable qemu namespaces until all issues +# are resolved. See +# https://www.redhat.com/archives/libvir-list/2017-January/msg00790.html +Patch300: qemu-disable-namespaces.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -715,9 +720,9 @@ capabilities of recent versions of Linux (and other OSes). %package libs Summary: Client side libraries -Group: Development/Libraries/C and C++ # So remote clients can access libvirt over SSH tunnel # (client invokes 'nc' against the UNIX socket on the server) +Group: Development/Libraries/C and C++ Requires: netcat-openbsd # Not technically required, but makes 'out-of-box' config # work correctly & doesn't have onerous dependencies @@ -783,6 +788,7 @@ libvirt plugin for NSS for translating domain names into IP addresses. %prep %setup -q +%patch0 -p1 %patch100 -p1 %patch150 -p1 %patch151 -p1 @@ -806,6 +812,7 @@ libvirt plugin for NSS for translating domain names into IP addresses. %patch212 -p1 %patch213 -p1 %patch214 -p1 +%patch300 -p1 %build %if %{with_xen} @@ -1550,6 +1557,7 @@ fi %{_datadir}/libvirt/schemas/storagepool.rng %{_datadir}/libvirt/schemas/storagevol.rng %{_datadir}/libvirt/cpu_map.xml +%{_datadir}/libvirt/test-screenshot.png %dir %{_sysconfdir}/sasl2/ %config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf @@ -1619,5 +1627,6 @@ fi %files nss %{_libdir}/libnss_libvirt.so.2 +%{_libdir}/libnss_libvirt_guest.so.2 %changelog diff --git a/libvirtd-defaults.patch b/libvirtd-defaults.patch index 690320d..4a14f67 100644 --- a/libvirtd-defaults.patch +++ b/libvirtd-defaults.patch @@ -1,7 +1,7 @@ -Index: libvirt-2.5.0/daemon/libvirtd.conf +Index: libvirt-3.0.0/daemon/libvirtd.conf =================================================================== ---- libvirt-2.5.0.orig/daemon/libvirtd.conf -+++ libvirt-2.5.0/daemon/libvirtd.conf +--- libvirt-3.0.0.orig/daemon/libvirtd.conf ++++ libvirt-3.0.0/daemon/libvirtd.conf @@ -18,8 +18,8 @@ # It is necessary to setup a CA and issue server certificates before # using this capability. @@ -13,10 +13,10 @@ Index: libvirt-2.5.0/daemon/libvirtd.conf # Listen for unencrypted TCP connections on the public TCP/IP port. # NB, must pass the --listen flag to the libvirtd process for this to -Index: libvirt-2.5.0/daemon/libvirtd-config.c +Index: libvirt-3.0.0/daemon/libvirtd-config.c =================================================================== ---- libvirt-2.5.0.orig/daemon/libvirtd-config.c -+++ libvirt-2.5.0/daemon/libvirtd-config.c +--- libvirt-3.0.0.orig/daemon/libvirtd-config.c ++++ libvirt-3.0.0/daemon/libvirtd-config.c @@ -109,7 +109,7 @@ daemonConfigNew(bool privileged ATTRIBUT if (VIR_ALLOC(data) < 0) return NULL; @@ -26,10 +26,10 @@ Index: libvirt-2.5.0/daemon/libvirtd-config.c data->listen_tcp = 0; if (VIR_STRDUP(data->tls_port, LIBVIRTD_TLS_PORT) < 0 || -Index: libvirt-2.5.0/daemon/test_libvirtd.aug.in +Index: libvirt-3.0.0/daemon/test_libvirtd.aug.in =================================================================== ---- libvirt-2.5.0.orig/daemon/test_libvirtd.aug.in -+++ libvirt-2.5.0/daemon/test_libvirtd.aug.in +--- libvirt-3.0.0.orig/daemon/test_libvirtd.aug.in ++++ libvirt-3.0.0/daemon/test_libvirtd.aug.in @@ -2,7 +2,7 @@ module Test_libvirtd = ::CONFIG:: diff --git a/libvirtd-init-script.patch b/libvirtd-init-script.patch index 9d5f09e..fcd5ff0 100644 --- a/libvirtd-init-script.patch +++ b/libvirtd-init-script.patch @@ -1,9 +1,9 @@ Adjust libvirtd sysconfig file to conform to SUSE standards -Index: libvirt-2.5.0/daemon/libvirtd.sysconf +Index: libvirt-3.0.0/daemon/libvirtd.sysconf =================================================================== ---- libvirt-2.5.0.orig/daemon/libvirtd.sysconf -+++ libvirt-2.5.0/daemon/libvirtd.sysconf +--- libvirt-3.0.0.orig/daemon/libvirtd.sysconf ++++ libvirt-3.0.0/daemon/libvirtd.sysconf @@ -1,16 +1,25 @@ +## Path: System/Virtualization/libvirt + diff --git a/libxl-dom-reset.patch b/libxl-dom-reset.patch index 43c3a96..35cb524 100644 --- a/libxl-dom-reset.patch +++ b/libxl-dom-reset.patch @@ -8,11 +8,11 @@ Date: Mon Jun 23 15:51:20 2014 -0600 option, but domainReset can be implemented in the libxl driver by forcibly destroying the domain and starting it again. -Index: libvirt-2.5.0/src/libxl/libxl_driver.c +Index: libvirt-3.0.0/src/libxl/libxl_driver.c =================================================================== ---- libvirt-2.5.0.orig/src/libxl/libxl_driver.c -+++ libvirt-2.5.0/src/libxl/libxl_driver.c -@@ -1384,6 +1384,61 @@ libxlDomainReboot(virDomainPtr dom, unsi +--- libvirt-3.0.0.orig/src/libxl/libxl_driver.c ++++ libvirt-3.0.0/src/libxl/libxl_driver.c +@@ -1386,6 +1386,61 @@ libxlDomainReboot(virDomainPtr dom, unsi } static int @@ -74,7 +74,7 @@ Index: libvirt-2.5.0/src/libxl/libxl_driver.c libxlDomainDestroyFlags(virDomainPtr dom, unsigned int flags) { -@@ -6429,6 +6484,7 @@ static virHypervisorDriver libxlHypervis +@@ -6438,6 +6493,7 @@ static virHypervisorDriver libxlHypervis .domainShutdown = libxlDomainShutdown, /* 0.9.0 */ .domainShutdownFlags = libxlDomainShutdownFlags, /* 0.9.10 */ .domainReboot = libxlDomainReboot, /* 0.9.0 */ diff --git a/libxl-qemu-emulator-caps.patch b/libxl-qemu-emulator-caps.patch index 9647d85..f46608b 100644 --- a/libxl-qemu-emulator-caps.patch +++ b/libxl-qemu-emulator-caps.patch @@ -8,10 +8,10 @@ as the default , instead of the qemu-xen one. See FATE#320638 for details. -Index: libvirt-2.5.0/src/libxl/libxl_capabilities.c +Index: libvirt-3.0.0/src/libxl/libxl_capabilities.c =================================================================== ---- libvirt-2.5.0.orig/src/libxl/libxl_capabilities.c -+++ libvirt-2.5.0/src/libxl/libxl_capabilities.c +--- libvirt-3.0.0.orig/src/libxl/libxl_capabilities.c ++++ libvirt-3.0.0/src/libxl/libxl_capabilities.c @@ -38,6 +38,7 @@ #include "libxl_capabilities.h" #include "cpu/cpu_x86.h" diff --git a/libxl-set-cach-mode.patch b/libxl-set-cach-mode.patch index 52f133f..327eaea 100644 --- a/libxl-set-cach-mode.patch +++ b/libxl-set-cach-mode.patch @@ -3,11 +3,11 @@ https://bugzilla.novell.com/show_bug.cgi?id=879425 src/libxl/libxl_conf.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -Index: libvirt-2.5.0/src/libxl/libxl_conf.c +Index: libvirt-3.0.0/src/libxl/libxl_conf.c =================================================================== ---- libvirt-2.5.0.orig/src/libxl/libxl_conf.c -+++ libvirt-2.5.0/src/libxl/libxl_conf.c -@@ -584,6 +584,30 @@ libxlDiskSetDiscard(libxl_device_disk *x +--- libvirt-3.0.0.orig/src/libxl/libxl_conf.c ++++ libvirt-3.0.0/src/libxl/libxl_conf.c +@@ -583,6 +583,30 @@ libxlDiskSetDiscard(libxl_device_disk *x #endif } @@ -38,7 +38,7 @@ Index: libvirt-2.5.0/src/libxl/libxl_conf.c static char * libxlMakeNetworkDiskSrcStr(virStorageSourcePtr src, const char *username, -@@ -826,6 +850,7 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk +@@ -836,6 +860,7 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk x_disk->is_cdrom = l_disk->device == VIR_DOMAIN_DISK_DEVICE_CDROM ? 1 : 0; if (libxlDiskSetDiscard(x_disk, l_disk->discard) < 0) return -1; diff --git a/libxl-set-migration-constraints.patch b/libxl-set-migration-constraints.patch index 9c67649..9ef46d6 100644 --- a/libxl-set-migration-constraints.patch +++ b/libxl-set-migration-constraints.patch @@ -16,10 +16,10 @@ Signed-off-by: Jim Fehlig tools/virsh.pod | 8 ++++++++ 6 files changed, 125 insertions(+), 6 deletions(-) -Index: libvirt-2.5.0/include/libvirt/libvirt-domain.h +Index: libvirt-3.0.0/include/libvirt/libvirt-domain.h =================================================================== ---- libvirt-2.5.0.orig/include/libvirt/libvirt-domain.h -+++ libvirt-2.5.0/include/libvirt/libvirt-domain.h +--- libvirt-3.0.0.orig/include/libvirt/libvirt-domain.h ++++ libvirt-3.0.0/include/libvirt/libvirt-domain.h @@ -1000,6 +1000,31 @@ typedef enum { */ # define VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT "auto_converge.increment" @@ -52,11 +52,11 @@ Index: libvirt-2.5.0/include/libvirt/libvirt-domain.h /* Domain migration. */ virDomainPtr virDomainMigrate (virDomainPtr domain, virConnectPtr dconn, unsigned long flags, const char *dname, -Index: libvirt-2.5.0/src/libxl/libxl_driver.c +Index: libvirt-3.0.0/src/libxl/libxl_driver.c =================================================================== ---- libvirt-2.5.0.orig/src/libxl/libxl_driver.c -+++ libvirt-2.5.0/src/libxl/libxl_driver.c -@@ -6047,6 +6047,9 @@ libxlDomainMigratePerform3Params(virDoma +--- libvirt-3.0.0.orig/src/libxl/libxl_driver.c ++++ libvirt-3.0.0/src/libxl/libxl_driver.c +@@ -6056,6 +6056,9 @@ libxlDomainMigratePerform3Params(virDoma const char *dname = NULL; const char *uri = NULL; int ret = -1; @@ -66,7 +66,7 @@ Index: libvirt-2.5.0/src/libxl/libxl_driver.c #ifdef LIBXL_HAVE_NO_SUSPEND_RESUME virReportUnsupportedError(); -@@ -6063,6 +6066,18 @@ libxlDomainMigratePerform3Params(virDoma +@@ -6072,6 +6075,18 @@ libxlDomainMigratePerform3Params(virDoma virTypedParamsGetString(params, nparams, VIR_MIGRATE_PARAM_DEST_NAME, &dname) < 0 || @@ -85,7 +85,7 @@ Index: libvirt-2.5.0/src/libxl/libxl_driver.c virTypedParamsGetString(params, nparams, VIR_MIGRATE_PARAM_URI, &uri) < 0) -@@ -6077,11 +6092,11 @@ libxlDomainMigratePerform3Params(virDoma +@@ -6086,11 +6101,11 @@ libxlDomainMigratePerform3Params(virDoma if (flags & VIR_MIGRATE_PEER2PEER) { if (libxlDomainMigrationPerformP2P(driver, vm, dom->conn, dom_xml, @@ -99,10 +99,10 @@ Index: libvirt-2.5.0/src/libxl/libxl_driver.c goto cleanup; } -Index: libvirt-2.5.0/src/libxl/libxl_migration.c +Index: libvirt-3.0.0/src/libxl/libxl_migration.c =================================================================== ---- libvirt-2.5.0.orig/src/libxl/libxl_migration.c -+++ libvirt-2.5.0/src/libxl/libxl_migration.c +--- libvirt-3.0.0.orig/src/libxl/libxl_migration.c ++++ libvirt-3.0.0/src/libxl/libxl_migration.c @@ -358,18 +358,39 @@ libxlMigrateReceive(virNetSocketPtr sock static int libxlDoMigrateSend(libxlDriverPrivatePtr driver, @@ -217,10 +217,10 @@ Index: libvirt-2.5.0/src/libxl/libxl_migration.c virObjectLock(vm); cleanup: -Index: libvirt-2.5.0/src/libxl/libxl_migration.h +Index: libvirt-3.0.0/src/libxl/libxl_migration.h =================================================================== ---- libvirt-2.5.0.orig/src/libxl/libxl_migration.h -+++ libvirt-2.5.0/src/libxl/libxl_migration.h +--- libvirt-3.0.0.orig/src/libxl/libxl_migration.h ++++ libvirt-3.0.0/src/libxl/libxl_migration.h @@ -38,6 +38,10 @@ VIR_MIGRATE_PARAM_URI, VIR_TYPED_PARAM_STRING, \ VIR_MIGRATE_PARAM_DEST_NAME, VIR_TYPED_PARAM_STRING, \ @@ -265,11 +265,11 @@ Index: libvirt-2.5.0/src/libxl/libxl_migration.h virDomainPtr libxlDomainMigrationFinish(virConnectPtr dconn, -Index: libvirt-2.5.0/tools/virsh-domain.c +Index: libvirt-3.0.0/tools/virsh-domain.c =================================================================== ---- libvirt-2.5.0.orig/tools/virsh-domain.c -+++ libvirt-2.5.0/tools/virsh-domain.c -@@ -10109,6 +10109,22 @@ static const vshCmdOptDef opts_migrate[] +--- libvirt-3.0.0.orig/tools/virsh-domain.c ++++ libvirt-3.0.0/tools/virsh-domain.c +@@ -10135,6 +10135,22 @@ static const vshCmdOptDef opts_migrate[] .type = VSH_OT_STRING, .help = N_("filename containing updated persistent XML for the target") }, @@ -292,7 +292,7 @@ Index: libvirt-2.5.0/tools/virsh-domain.c {.name = NULL} }; -@@ -10132,6 +10148,7 @@ doMigrate(void *opaque) +@@ -10158,6 +10174,7 @@ doMigrate(void *opaque) unsigned long long ullOpt = 0; int rv; virConnectPtr dconn = data->dconn; @@ -300,7 +300,7 @@ Index: libvirt-2.5.0/tools/virsh-domain.c sigemptyset(&sigmask); sigaddset(&sigmask, SIGINT); -@@ -10251,6 +10268,27 @@ doMigrate(void *opaque) +@@ -10277,6 +10294,27 @@ doMigrate(void *opaque) goto save_error; } @@ -328,11 +328,11 @@ Index: libvirt-2.5.0/tools/virsh-domain.c if (vshCommandOptStringReq(ctl, cmd, "xml", &opt) < 0) goto out; if (opt) { -Index: libvirt-2.5.0/tools/virsh.pod +Index: libvirt-3.0.0/tools/virsh.pod =================================================================== ---- libvirt-2.5.0.orig/tools/virsh.pod -+++ libvirt-2.5.0/tools/virsh.pod -@@ -1706,6 +1706,14 @@ compression. I<--comp-mt-threads> and I< +--- libvirt-3.0.0.orig/tools/virsh.pod ++++ libvirt-3.0.0/tools/virsh.pod +@@ -1709,6 +1709,14 @@ compression. I<--comp-mt-threads> and I< of compress threads on source and the number of decompress threads on target respectively. I<--comp-xbzrle-cache> sets size of page cache in bytes. diff --git a/libxl-support-block-script.patch b/libxl-support-block-script.patch index e007d18..7d3a77f 100644 --- a/libxl-support-block-script.patch +++ b/libxl-support-block-script.patch @@ -7,11 +7,11 @@ and npiv. For more details, see bsc#954872 and FATE#319810 -Index: libvirt-2.5.0/src/libxl/libxl_conf.c +Index: libvirt-3.0.0/src/libxl/libxl_conf.c =================================================================== ---- libvirt-2.5.0.orig/src/libxl/libxl_conf.c -+++ libvirt-2.5.0/src/libxl/libxl_conf.c -@@ -584,6 +584,25 @@ libxlDiskSetDiscard(libxl_device_disk *x +--- libvirt-3.0.0.orig/src/libxl/libxl_conf.c ++++ libvirt-3.0.0/src/libxl/libxl_conf.c +@@ -583,6 +583,25 @@ libxlDiskSetDiscard(libxl_device_disk *x #endif } @@ -37,7 +37,7 @@ Index: libvirt-2.5.0/src/libxl/libxl_conf.c static void libxlDiskSetCacheMode(libxl_device_disk *x_disk, int cachemode) { -@@ -728,6 +747,7 @@ libxlMakeNetworkDiskSrc(virStorageSource +@@ -727,6 +746,7 @@ libxlMakeNetworkDiskSrc(virStorageSource int libxlMakeDisk(virDomainDiskDefPtr l_disk, libxl_device_disk *x_disk) { @@ -45,7 +45,7 @@ Index: libvirt-2.5.0/src/libxl/libxl_conf.c const char *driver = virDomainDiskGetDriver(l_disk); int format = virDomainDiskGetFormat(l_disk); int actual_type = virStorageSourceGetActualType(l_disk->src); -@@ -743,7 +763,7 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk +@@ -742,7 +762,7 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk if (libxlMakeNetworkDiskSrc(l_disk->src, &x_disk->pdev_path) < 0) return -1; } else { @@ -54,7 +54,7 @@ Index: libvirt-2.5.0/src/libxl/libxl_conf.c return -1; } -@@ -851,6 +871,9 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk +@@ -861,6 +881,9 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk if (libxlDiskSetDiscard(x_disk, l_disk->discard) < 0) return -1; libxlDiskSetCacheMode(x_disk, l_disk->cachemode); diff --git a/lxc-wait-after-eth-del.patch b/lxc-wait-after-eth-del.patch index 8c2f4d6..75e3790 100644 --- a/lxc-wait-after-eth-del.patch +++ b/lxc-wait-after-eth-del.patch @@ -13,11 +13,11 @@ device with the same name that is being created. src/lxc/lxc_process.c | 1 + 3 files changed, 4 insertions(+) -Index: libvirt-2.5.0/src/lxc/lxc_controller.c +Index: libvirt-3.0.0/src/lxc/lxc_controller.c =================================================================== ---- libvirt-2.5.0.orig/src/lxc/lxc_controller.c -+++ libvirt-2.5.0/src/lxc/lxc_controller.c -@@ -2009,6 +2009,7 @@ static int virLXCControllerDeleteInterfa +--- libvirt-3.0.0.orig/src/lxc/lxc_controller.c ++++ libvirt-3.0.0/src/lxc/lxc_controller.c +@@ -1997,6 +1997,7 @@ static int virLXCControllerDeleteInterfa if (virNetDevVethDelete(ctrl->veths[i]) < 0) ret = -1; } @@ -25,11 +25,11 @@ Index: libvirt-2.5.0/src/lxc/lxc_controller.c return ret; } -Index: libvirt-2.5.0/src/lxc/lxc_driver.c +Index: libvirt-3.0.0/src/lxc/lxc_driver.c =================================================================== ---- libvirt-2.5.0.orig/src/lxc/lxc_driver.c -+++ libvirt-2.5.0/src/lxc/lxc_driver.c -@@ -4034,6 +4034,7 @@ lxcDomainAttachDeviceNetLive(virConnectP +--- libvirt-3.0.0.orig/src/lxc/lxc_driver.c ++++ libvirt-3.0.0/src/lxc/lxc_driver.c +@@ -4036,6 +4036,7 @@ lxcDomainAttachDeviceNetLive(virConnectP case VIR_DOMAIN_NET_TYPE_NETWORK: case VIR_DOMAIN_NET_TYPE_ETHERNET: ignore_value(virNetDevVethDelete(veth)); @@ -37,7 +37,7 @@ Index: libvirt-2.5.0/src/lxc/lxc_driver.c break; case VIR_DOMAIN_NET_TYPE_DIRECT: -@@ -4468,6 +4469,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb +@@ -4470,6 +4471,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb virDomainAuditNet(vm, detach, NULL, "detach", false); goto cleanup; } @@ -45,10 +45,10 @@ Index: libvirt-2.5.0/src/lxc/lxc_driver.c break; /* It'd be nice to support this, but with macvlan -Index: libvirt-2.5.0/src/lxc/lxc_process.c +Index: libvirt-3.0.0/src/lxc/lxc_process.c =================================================================== ---- libvirt-2.5.0.orig/src/lxc/lxc_process.c -+++ libvirt-2.5.0/src/lxc/lxc_process.c +--- libvirt-3.0.0.orig/src/lxc/lxc_process.c ++++ libvirt-3.0.0/src/lxc/lxc_process.c @@ -221,6 +221,7 @@ static void virLXCProcessCleanup(virLXCD } networkReleaseActualDevice(vm->def, iface); diff --git a/ppc64le-canonical-name.patch b/ppc64le-canonical-name.patch index c02c4aa..5e50526 100644 --- a/ppc64le-canonical-name.patch +++ b/ppc64le-canonical-name.patch @@ -2,10 +2,10 @@ Canonicalize hostarch name ppc64le to ppc64 See bnc#894956 -Index: libvirt-2.5.0/src/util/virarch.c +Index: libvirt-3.0.0/src/util/virarch.c =================================================================== ---- libvirt-2.5.0.orig/src/util/virarch.c -+++ libvirt-2.5.0/src/util/virarch.c +--- libvirt-3.0.0.orig/src/util/virarch.c ++++ libvirt-3.0.0/src/util/virarch.c @@ -169,6 +169,8 @@ virArch virArchFromHost(void) arch = VIR_ARCH_I686; } else if (STREQ(ut.machine, "amd64")) { diff --git a/qemu-apparmor-screenshot.patch b/qemu-apparmor-screenshot.patch index a1636be..9ea1372 100644 --- a/qemu-apparmor-screenshot.patch +++ b/qemu-apparmor-screenshot.patch @@ -1,8 +1,8 @@ -Index: libvirt-2.5.0/examples/apparmor/libvirt-qemu +Index: libvirt-3.0.0/examples/apparmor/libvirt-qemu =================================================================== ---- libvirt-2.5.0.orig/examples/apparmor/libvirt-qemu -+++ libvirt-2.5.0/examples/apparmor/libvirt-qemu -@@ -151,3 +151,6 @@ +--- libvirt-3.0.0.orig/examples/apparmor/libvirt-qemu ++++ libvirt-3.0.0/examples/apparmor/libvirt-qemu +@@ -154,3 +154,6 @@ /etc/udev/udev.conf r, /sys/bus/ r, /sys/class/ r, diff --git a/qemu-disable-namespaces.patch b/qemu-disable-namespaces.patch new file mode 100644 index 0000000..708e060 --- /dev/null +++ b/qemu-disable-namespaces.patch @@ -0,0 +1,29 @@ +commit eaa2043dee8b8ada7b0b80c9b5b0b0db575a4abf +Author: Daniel P. Berrange +Date: Wed Jan 18 10:49:59 2017 +0000 + + Disable use of namespaces by default + + When namespaces are enabled there is currently breakage when + using disk hotplug and when using AppArmor + + Signed-off-by: Daniel P. Berrange + +Index: libvirt-3.0.0/src/qemu/qemu_conf.c +=================================================================== +--- libvirt-3.0.0.orig/src/qemu/qemu_conf.c ++++ libvirt-3.0.0/src/qemu/qemu_conf.c +@@ -317,13 +317,6 @@ virQEMUDriverConfigPtr virQEMUDriverConf + if (!(cfg->namespaces = virBitmapNew(QEMU_DOMAIN_NS_LAST))) + goto error; + +-#if defined(__linux__) +- if (privileged && +- virProcessNamespaceAvailable(VIR_PROCESS_NAMESPACE_MNT) == 0 && +- virBitmapSetBit(cfg->namespaces, QEMU_DOMAIN_NS_MOUNT) < 0) +- goto error; +-#endif /* defined(__linux__) */ +- + #ifdef DEFAULT_LOADER_NVRAM + if (virFirmwareParseList(DEFAULT_LOADER_NVRAM, + &cfg->firmwares, diff --git a/support-managed-pci-xen-driver.patch b/support-managed-pci-xen-driver.patch index b358005..b55724f 100644 --- a/support-managed-pci-xen-driver.patch +++ b/support-managed-pci-xen-driver.patch @@ -8,10 +8,10 @@ Subject: [PATCH] support managed pci devices in xen driver src/xenxs/xen_xm.c | 28 +++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 15 deletions(-) -Index: libvirt-2.5.0/src/xenconfig/xen_common.c +Index: libvirt-3.0.0/src/xenconfig/xen_common.c =================================================================== ---- libvirt-2.5.0.orig/src/xenconfig/xen_common.c -+++ libvirt-2.5.0/src/xenconfig/xen_common.c +--- libvirt-3.0.0.orig/src/xenconfig/xen_common.c ++++ libvirt-3.0.0/src/xenconfig/xen_common.c @@ -394,6 +394,8 @@ xenParsePCI(virConfPtr conf, virDomainDe { virConfValuePtr list = virConfGetValue(conf, "pci"); @@ -66,10 +66,10 @@ Index: libvirt-2.5.0/src/xenconfig/xen_common.c hostdev->source.subsys.type = VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI; hostdev->source.subsys.u.pci.addr.domain = domainID; hostdev->source.subsys.u.pci.addr.bus = busID; -Index: libvirt-2.5.0/src/xenconfig/xen_sxpr.c +Index: libvirt-3.0.0/src/xenconfig/xen_sxpr.c =================================================================== ---- libvirt-2.5.0.orig/src/xenconfig/xen_sxpr.c -+++ libvirt-2.5.0/src/xenconfig/xen_sxpr.c +--- libvirt-3.0.0.orig/src/xenconfig/xen_sxpr.c ++++ libvirt-3.0.0/src/xenconfig/xen_sxpr.c @@ -1062,6 +1062,7 @@ xenParseSxprPCI(virDomainDefPtr def, int busID; int slotID; diff --git a/suse-qemu-conf.patch b/suse-qemu-conf.patch index c4a8c33..35cab5f 100644 --- a/suse-qemu-conf.patch +++ b/suse-qemu-conf.patch @@ -7,10 +7,10 @@ suse-qemu-conf-secdriver.patch, suse-qemu-conf-lockmgr.patch, etc.), but for now they are all lumped together in this single patch. -Index: libvirt-2.5.0/src/qemu/qemu.conf +Index: libvirt-3.0.0/src/qemu/qemu.conf =================================================================== ---- libvirt-2.5.0.orig/src/qemu/qemu.conf -+++ libvirt-2.5.0/src/qemu/qemu.conf +--- libvirt-3.0.0.orig/src/qemu/qemu.conf ++++ libvirt-3.0.0/src/qemu/qemu.conf @@ -283,11 +283,20 @@ # isolation, but it cannot appear in a list of drivers. # diff --git a/systemd-service-xen.patch b/systemd-service-xen.patch index 5da9970..6fbb916 100644 --- a/systemd-service-xen.patch +++ b/systemd-service-xen.patch @@ -1,7 +1,7 @@ -Index: libvirt-2.5.0/daemon/libvirtd.service.in +Index: libvirt-3.0.0/daemon/libvirtd.service.in =================================================================== ---- libvirt-2.5.0.orig/daemon/libvirtd.service.in -+++ libvirt-2.5.0/daemon/libvirtd.service.in +--- libvirt-3.0.0.orig/daemon/libvirtd.service.in ++++ libvirt-3.0.0/daemon/libvirtd.service.in @@ -13,6 +13,7 @@ After=iscsid.service After=apparmor.service After=local-fs.target diff --git a/virtlockd-init-script.patch b/virtlockd-init-script.patch index a3adf3d..ec800aa 100644 --- a/virtlockd-init-script.patch +++ b/virtlockd-init-script.patch @@ -1,9 +1,9 @@ Adjust virtlockd init files to conform to SUSE standards -Index: libvirt-2.5.0/src/locking/virtlockd.sysconf +Index: libvirt-3.0.0/src/locking/virtlockd.sysconf =================================================================== ---- libvirt-2.5.0.orig/src/locking/virtlockd.sysconf -+++ libvirt-2.5.0/src/locking/virtlockd.sysconf +--- libvirt-3.0.0.orig/src/locking/virtlockd.sysconf ++++ libvirt-3.0.0/src/locking/virtlockd.sysconf @@ -1,3 +1,7 @@ +## Path: System/Virtualization/virtlockd + @@ -12,10 +12,10 @@ Index: libvirt-2.5.0/src/locking/virtlockd.sysconf # # Pass extra arguments to virtlockd #VIRTLOCKD_ARGS= -Index: libvirt-2.5.0/src/locking/virtlockd.init.in +Index: libvirt-3.0.0/src/locking/virtlockd.init.in =================================================================== ---- libvirt-2.5.0.orig/src/locking/virtlockd.init.in -+++ libvirt-2.5.0/src/locking/virtlockd.init.in +--- libvirt-3.0.0.orig/src/locking/virtlockd.init.in ++++ libvirt-3.0.0/src/locking/virtlockd.init.in @@ -4,59 +4,57 @@ # http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html # diff --git a/virtlogd-init-script.patch b/virtlogd-init-script.patch index 2535217..1575a48 100644 --- a/virtlogd-init-script.patch +++ b/virtlogd-init-script.patch @@ -1,9 +1,9 @@ Adjust virtlogd init files to conform to SUSE standards -Index: libvirt-2.5.0/src/logging/virtlogd.init.in +Index: libvirt-3.0.0/src/logging/virtlogd.init.in =================================================================== ---- libvirt-2.5.0.orig/src/logging/virtlogd.init.in -+++ libvirt-2.5.0/src/logging/virtlogd.init.in +--- libvirt-3.0.0.orig/src/logging/virtlogd.init.in ++++ libvirt-3.0.0/src/logging/virtlogd.init.in @@ -4,59 +4,56 @@ # http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html # @@ -126,10 +126,10 @@ Index: libvirt-2.5.0/src/logging/virtlogd.init.in esac -exit $RETVAL +rc_exit -Index: libvirt-2.5.0/src/logging/virtlogd.sysconf +Index: libvirt-3.0.0/src/logging/virtlogd.sysconf =================================================================== ---- libvirt-2.5.0.orig/src/logging/virtlogd.sysconf -+++ libvirt-2.5.0/src/logging/virtlogd.sysconf +--- libvirt-3.0.0.orig/src/logging/virtlogd.sysconf ++++ libvirt-3.0.0/src/logging/virtlogd.sysconf @@ -1,3 +1,7 @@ +## Path: System/Virtualization/virtlogd + diff --git a/xen-pv-cdrom.patch b/xen-pv-cdrom.patch index 91b66bd..7ef0202 100644 --- a/xen-pv-cdrom.patch +++ b/xen-pv-cdrom.patch @@ -1,7 +1,7 @@ -Index: libvirt-2.5.0/src/xenconfig/xen_sxpr.c +Index: libvirt-3.0.0/src/xenconfig/xen_sxpr.c =================================================================== ---- libvirt-2.5.0.orig/src/xenconfig/xen_sxpr.c -+++ libvirt-2.5.0/src/xenconfig/xen_sxpr.c +--- libvirt-3.0.0.orig/src/xenconfig/xen_sxpr.c ++++ libvirt-3.0.0/src/xenconfig/xen_sxpr.c @@ -392,7 +392,7 @@ xenParseSxprVifRate(const char *rate, un static int xenParseSxprDisks(virDomainDefPtr def, diff --git a/xen-sxpr-disk-type.patch b/xen-sxpr-disk-type.patch index b2f0bb2..f404a6c 100644 --- a/xen-sxpr-disk-type.patch +++ b/xen-sxpr-disk-type.patch @@ -6,10 +6,10 @@ and 'file'. This was implicitly done prior to commit 9673418c. https://bugzilla.suse.com/show_bug.cgi?id=938228 -Index: libvirt-2.5.0/src/xenconfig/xen_sxpr.c +Index: libvirt-3.0.0/src/xenconfig/xen_sxpr.c =================================================================== ---- libvirt-2.5.0.orig/src/xenconfig/xen_sxpr.c -+++ libvirt-2.5.0/src/xenconfig/xen_sxpr.c +--- libvirt-3.0.0.orig/src/xenconfig/xen_sxpr.c ++++ libvirt-3.0.0/src/xenconfig/xen_sxpr.c @@ -506,10 +506,11 @@ xenParseSxprDisks(virDomainDefPtr def, omnipotent, we can revisit this, perhaps stat()'ing the src file in question */