From 89b02a08bc3799278aa9ae5a2e05db2e1bbb385d274d1d9e2d115de70c462cef Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Tue, 1 Mar 2016 17:58:15 +0000 Subject: [PATCH] Accepting request 363743 from home:jfehlig:branches:Virtualization - Update to libvirt 1.3.2 - Many incremental improvements and bug fixes, see http://libvirt.org/news.html OBS-URL: https://build.opensuse.org/request/show/363743 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=512 --- apparmor-fixes.patch | 6 ++-- apparmor-no-mount.patch | 6 ++-- blockcopy-check-dst-identical-device.patch | 8 ++--- libvirt-1.3.1.tar.gz | 3 -- libvirt-1.3.1.tar.gz.asc | 7 ---- libvirt-1.3.2.tar.gz | 3 ++ libvirt-1.3.2.tar.gz.asc | 7 ++++ libvirt-guests-init-script.patch | 18 +++++----- libvirt-power8-models.patch | 6 ++-- libvirt-suse-netcontrol.patch | 42 +++++++++++----------- libvirt.changes | 7 ++++ libvirt.spec | 2 +- libvirtd-defaults.patch | 18 +++++----- libvirtd-init-script.patch | 6 ++-- libvirtd-systemd-socket.patch | 6 ++-- libxl-support-block-script.patch | 26 +++++++------- lxc-wait-after-eth-del.patch | 22 ++++++------ ppc64le-canonical-name.patch | 6 ++-- qemu-apparmor-screenshot.patch | 6 ++-- support-managed-pci-xen-driver.patch | 28 +++++++-------- suse-qemu-conf.patch | 6 ++-- systemd-service-xen.patch | 6 ++-- virtlockd-init-script.patch | 12 +++---- virtlogd-init-script.patch | 12 +++---- xen-pv-cdrom.patch | 10 +++--- xen-sxpr-disk-type.patch | 8 ++--- 26 files changed, 148 insertions(+), 139 deletions(-) delete mode 100644 libvirt-1.3.1.tar.gz delete mode 100644 libvirt-1.3.1.tar.gz.asc create mode 100644 libvirt-1.3.2.tar.gz create mode 100644 libvirt-1.3.2.tar.gz.asc diff --git a/apparmor-fixes.patch b/apparmor-fixes.patch index cf45ca6..17403c1 100644 --- a/apparmor-fixes.patch +++ b/apparmor-fixes.patch @@ -1,7 +1,7 @@ -Index: libvirt-1.3.1/examples/apparmor/libvirt-qemu +Index: libvirt-1.3.2/examples/apparmor/libvirt-qemu =================================================================== ---- libvirt-1.3.1.orig/examples/apparmor/libvirt-qemu -+++ libvirt-1.3.1/examples/apparmor/libvirt-qemu +--- libvirt-1.3.2.orig/examples/apparmor/libvirt-qemu ++++ libvirt-1.3.2/examples/apparmor/libvirt-qemu @@ -143,6 +143,9 @@ # for restore /bin/bash rmix, diff --git a/apparmor-no-mount.patch b/apparmor-no-mount.patch index 3c8c95f..806f79c 100644 --- a/apparmor-no-mount.patch +++ b/apparmor-no-mount.patch @@ -1,7 +1,7 @@ -Index: libvirt-1.3.1/examples/apparmor/libvirt-lxc +Index: libvirt-1.3.2/examples/apparmor/libvirt-lxc =================================================================== ---- libvirt-1.3.1.orig/examples/apparmor/libvirt-lxc -+++ libvirt-1.3.1/examples/apparmor/libvirt-lxc +--- libvirt-1.3.2.orig/examples/apparmor/libvirt-lxc ++++ libvirt-1.3.2/examples/apparmor/libvirt-lxc @@ -2,39 +2,15 @@ #include diff --git a/blockcopy-check-dst-identical-device.patch b/blockcopy-check-dst-identical-device.patch index 40280c9..eda33d4 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-1.3.1/src/qemu/qemu_driver.c +Index: libvirt-1.3.2/src/qemu/qemu_driver.c =================================================================== ---- libvirt-1.3.1.orig/src/qemu/qemu_driver.c -+++ libvirt-1.3.1/src/qemu/qemu_driver.c -@@ -16698,6 +16698,15 @@ qemuDomainBlockCopyCommon(virDomainObjPt +--- libvirt-1.3.2.orig/src/qemu/qemu_driver.c ++++ libvirt-1.3.2/src/qemu/qemu_driver.c +@@ -16595,6 +16595,15 @@ qemuDomainBlockCopyCommon(virDomainObjPt _("non-file destination not supported yet")); goto endjob; } diff --git a/libvirt-1.3.1.tar.gz b/libvirt-1.3.1.tar.gz deleted file mode 100644 index fc8de83..0000000 --- a/libvirt-1.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5d43fbed34d31eeffc641d2ac9b6026a57bf1a4fa74d0fa19a9891d9ec2c21a -size 29900143 diff --git a/libvirt-1.3.1.tar.gz.asc b/libvirt-1.3.1.tar.gz.asc deleted file mode 100644 index 929b298..0000000 --- a/libvirt-1.3.1.tar.gz.asc +++ /dev/null @@ -1,7 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1 - -iEYEABECAAYFAlaa/ekACgkQRga4pd6VvB83RwCfSMXt/m+s8hfjxmOHDLPw91// -be4AoIjs/qtDhPxg+nqJvXjzNnCPyVdZ -=rjLr ------END PGP SIGNATURE----- diff --git a/libvirt-1.3.2.tar.gz b/libvirt-1.3.2.tar.gz new file mode 100644 index 0000000..e7d407b --- /dev/null +++ b/libvirt-1.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3c6fc2683178660b371efb3ac7a1103a3f4b78efac7ffe560bc5917974ccf05 +size 30056101 diff --git a/libvirt-1.3.2.tar.gz.asc b/libvirt-1.3.2.tar.gz.asc new file mode 100644 index 0000000..ddcd7c3 --- /dev/null +++ b/libvirt-1.3.2.tar.gz.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iEYEABECAAYFAlbVDFIACgkQRga4pd6VvB/xyQCfZr3odTFUTdXUEGowUU0WnQHk +gsYAn3rarEqsgFXXnweG/sXZj+BMSi3G +=jzIM +-----END PGP SIGNATURE----- diff --git a/libvirt-guests-init-script.patch b/libvirt-guests-init-script.patch index b3cf231..a7f95df 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-1.3.1/tools/libvirt-guests.init.in +Index: libvirt-1.3.2/tools/libvirt-guests.init.in =================================================================== ---- libvirt-1.3.1.orig/tools/libvirt-guests.init.in -+++ libvirt-1.3.1/tools/libvirt-guests.init.in +--- libvirt-1.3.2.orig/tools/libvirt-guests.init.in ++++ libvirt-1.3.2/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-1.3.1/tools/libvirt-guests.init.in # exec @libexecdir@/libvirt-guests.sh "$@" -Index: libvirt-1.3.1/tools/libvirt-guests.sh.in +Index: libvirt-1.3.2/tools/libvirt-guests.sh.in =================================================================== ---- libvirt-1.3.1.orig/tools/libvirt-guests.sh.in -+++ libvirt-1.3.1/tools/libvirt-guests.sh.in +--- libvirt-1.3.2.orig/tools/libvirt-guests.sh.in ++++ libvirt-1.3.2/tools/libvirt-guests.sh.in @@ -16,14 +16,13 @@ # License along with this library. If not, see # . @@ -208,10 +208,10 @@ Index: libvirt-1.3.1/tools/libvirt-guests.sh.in esac -exit $RETVAL +rc_exit -Index: libvirt-1.3.1/tools/libvirt-guests.sysconf +Index: libvirt-1.3.2/tools/libvirt-guests.sysconf =================================================================== ---- libvirt-1.3.1.orig/tools/libvirt-guests.sysconf -+++ libvirt-1.3.1/tools/libvirt-guests.sysconf +--- libvirt-1.3.2.orig/tools/libvirt-guests.sysconf ++++ libvirt-1.3.2/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 ef4332c..b216854 100644 --- a/libvirt-power8-models.patch +++ b/libvirt-power8-models.patch @@ -1,7 +1,7 @@ -Index: libvirt-1.3.1/src/cpu/cpu_map.xml +Index: libvirt-1.3.2/src/cpu/cpu_map.xml =================================================================== ---- libvirt-1.3.1.orig/src/cpu/cpu_map.xml -+++ libvirt-1.3.1/src/cpu/cpu_map.xml +--- libvirt-1.3.2.orig/src/cpu/cpu_map.xml ++++ libvirt-1.3.2/src/cpu/cpu_map.xml @@ -1424,6 +1424,16 @@ diff --git a/libvirt-suse-netcontrol.patch b/libvirt-suse-netcontrol.patch index e5302f5..fd4e3a1 100644 --- a/libvirt-suse-netcontrol.patch +++ b/libvirt-suse-netcontrol.patch @@ -1,7 +1,7 @@ -Index: libvirt-1.3.1/configure.ac +Index: libvirt-1.3.2/configure.ac =================================================================== ---- libvirt-1.3.1.orig/configure.ac -+++ libvirt-1.3.1/configure.ac +--- libvirt-1.3.2.orig/configure.ac ++++ libvirt-1.3.2/configure.ac @@ -246,6 +246,7 @@ LIBVIRT_CHECK_FUSE LIBVIRT_CHECK_GLUSTER LIBVIRT_CHECK_HAL @@ -10,7 +10,7 @@ Index: libvirt-1.3.1/configure.ac LIBVIRT_CHECK_NUMACTL LIBVIRT_CHECK_OPENWSMAN LIBVIRT_CHECK_PCIACCESS -@@ -2507,11 +2508,12 @@ if test "$with_libvirtd" = "no" ; then +@@ -2449,11 +2450,12 @@ if test "$with_libvirtd" = "no" ; then with_interface=no fi @@ -26,7 +26,7 @@ Index: libvirt-1.3.1/configure.ac esac if test "$with_interface" = "yes" ; then -@@ -2890,6 +2892,7 @@ LIBVIRT_RESULT_FUSE +@@ -2832,6 +2834,7 @@ LIBVIRT_RESULT_FUSE LIBVIRT_RESULT_GLUSTER LIBVIRT_RESULT_HAL LIBVIRT_RESULT_NETCF @@ -34,11 +34,11 @@ Index: libvirt-1.3.1/configure.ac LIBVIRT_RESULT_NUMACTL LIBVIRT_RESULT_OPENWSMAN LIBVIRT_RESULT_PCIACCESS -Index: libvirt-1.3.1/src/Makefile.am +Index: libvirt-1.3.2/src/Makefile.am =================================================================== ---- libvirt-1.3.1.orig/src/Makefile.am -+++ libvirt-1.3.1/src/Makefile.am -@@ -923,6 +923,10 @@ if WITH_NETCF +--- libvirt-1.3.2.orig/src/Makefile.am ++++ libvirt-1.3.2/src/Makefile.am +@@ -928,6 +928,10 @@ if WITH_NETCF INTERFACE_DRIVER_SOURCES += \ interface/interface_backend_netcf.c endif WITH_NETCF @@ -49,7 +49,7 @@ Index: libvirt-1.3.1/src/Makefile.am if WITH_UDEV INTERFACE_DRIVER_SOURCES += \ interface/interface_backend_udev.c -@@ -1548,6 +1552,10 @@ if WITH_NETCF +@@ -1553,6 +1557,10 @@ if WITH_NETCF libvirt_driver_interface_la_CFLAGS += $(NETCF_CFLAGS) libvirt_driver_interface_la_LIBADD += $(NETCF_LIBS) endif WITH_NETCF @@ -60,10 +60,10 @@ Index: libvirt-1.3.1/src/Makefile.am if WITH_UDEV libvirt_driver_interface_la_CFLAGS += $(UDEV_CFLAGS) libvirt_driver_interface_la_LIBADD += $(UDEV_LIBS) -Index: libvirt-1.3.1/tools/virsh.c +Index: libvirt-1.3.2/tools/virsh.c =================================================================== ---- libvirt-1.3.1.orig/tools/virsh.c -+++ libvirt-1.3.1/tools/virsh.c +--- libvirt-1.3.2.orig/tools/virsh.c ++++ libvirt-1.3.2/tools/virsh.c @@ -589,6 +589,8 @@ virshShowVersion(vshControl *ctl ATTRIBU vshPrint(ctl, " Interface"); # if defined(WITH_NETCF) @@ -73,10 +73,10 @@ Index: libvirt-1.3.1/tools/virsh.c # elif defined(WITH_UDEV) vshPrint(ctl, " udev"); # endif -Index: libvirt-1.3.1/src/interface/interface_backend_netcf.c +Index: libvirt-1.3.2/src/interface/interface_backend_netcf.c =================================================================== ---- libvirt-1.3.1.orig/src/interface/interface_backend_netcf.c -+++ libvirt-1.3.1/src/interface/interface_backend_netcf.c +--- libvirt-1.3.2.orig/src/interface/interface_backend_netcf.c ++++ libvirt-1.3.2/src/interface/interface_backend_netcf.c @@ -23,7 +23,12 @@ #include @@ -160,10 +160,10 @@ Index: libvirt-1.3.1/src/interface/interface_backend_netcf.c if (virSetSharedInterfaceDriver(&interfaceDriver) < 0) return -1; if (virRegisterStateDriver(&interfaceStateDriver) < 0) -Index: libvirt-1.3.1/src/interface/interface_driver.c +Index: libvirt-1.3.2/src/interface/interface_driver.c =================================================================== ---- libvirt-1.3.1.orig/src/interface/interface_driver.c -+++ libvirt-1.3.1/src/interface/interface_driver.c +--- libvirt-1.3.2.orig/src/interface/interface_driver.c ++++ libvirt-1.3.2/src/interface/interface_driver.c @@ -30,8 +30,15 @@ interfaceRegister(void) if (netcfIfaceRegister() == 0) return 0; @@ -181,10 +181,10 @@ Index: libvirt-1.3.1/src/interface/interface_driver.c if (udevIfaceRegister() == 0) return 0; #endif /* WITH_UDEV */ -Index: libvirt-1.3.1/m4/virt-netcontrol.m4 +Index: libvirt-1.3.2/m4/virt-netcontrol.m4 =================================================================== --- /dev/null -+++ libvirt-1.3.1/m4/virt-netcontrol.m4 ++++ libvirt-1.3.2/m4/virt-netcontrol.m4 @@ -0,0 +1,35 @@ +dnl The libnetcontrol library +dnl diff --git a/libvirt.changes b/libvirt.changes index 6d398b6..a787c53 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Mar 1 16:07:08 UTC 2016 - jfehlig@suse.com + +- Update to libvirt 1.3.2 + - Many incremental improvements and bug fixes, see + http://libvirt.org/news.html + ------------------------------------------------------------------- Thu Feb 18 16:49:00 UTC 2016 - jfehlig@suse.com diff --git a/libvirt.spec b/libvirt.spec index 4047b1a..d5ad0c7 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -245,7 +245,7 @@ Name: libvirt Url: http://libvirt.org/ -Version: 1.3.1 +Version: 1.3.2 Release: 0 Summary: Library providing a simple virtualization API License: LGPL-2.1+ diff --git a/libvirtd-defaults.patch b/libvirtd-defaults.patch index bb5b915..c1a584a 100644 --- a/libvirtd-defaults.patch +++ b/libvirtd-defaults.patch @@ -1,7 +1,7 @@ -Index: libvirt-1.3.1/daemon/libvirtd.conf +Index: libvirt-1.3.2/daemon/libvirtd.conf =================================================================== ---- libvirt-1.3.1.orig/daemon/libvirtd.conf -+++ libvirt-1.3.1/daemon/libvirtd.conf +--- libvirt-1.3.2.orig/daemon/libvirtd.conf ++++ libvirt-1.3.2/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-1.3.1/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-1.3.1/daemon/libvirtd-config.c +Index: libvirt-1.3.2/daemon/libvirtd-config.c =================================================================== ---- libvirt-1.3.1.orig/daemon/libvirtd-config.c -+++ libvirt-1.3.1/daemon/libvirtd-config.c +--- libvirt-1.3.2.orig/daemon/libvirtd-config.c ++++ libvirt-1.3.2/daemon/libvirtd-config.c @@ -242,7 +242,7 @@ daemonConfigNew(bool privileged ATTRIBUT if (VIR_ALLOC(data) < 0) return NULL; @@ -26,10 +26,10 @@ Index: libvirt-1.3.1/daemon/libvirtd-config.c data->listen_tcp = 0; if (VIR_STRDUP(data->tls_port, LIBVIRTD_TLS_PORT) < 0 || -Index: libvirt-1.3.1/daemon/test_libvirtd.aug.in +Index: libvirt-1.3.2/daemon/test_libvirtd.aug.in =================================================================== ---- libvirt-1.3.1.orig/daemon/test_libvirtd.aug.in -+++ libvirt-1.3.1/daemon/test_libvirtd.aug.in +--- libvirt-1.3.2.orig/daemon/test_libvirtd.aug.in ++++ libvirt-1.3.2/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 6fef147..a92db39 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-1.3.1/daemon/libvirtd.sysconf +Index: libvirt-1.3.2/daemon/libvirtd.sysconf =================================================================== ---- libvirt-1.3.1.orig/daemon/libvirtd.sysconf -+++ libvirt-1.3.1/daemon/libvirtd.sysconf +--- libvirt-1.3.2.orig/daemon/libvirtd.sysconf ++++ libvirt-1.3.2/daemon/libvirtd.sysconf @@ -1,16 +1,25 @@ +## Path: System/Virtualization/libvirt + diff --git a/libvirtd-systemd-socket.patch b/libvirtd-systemd-socket.patch index 4c007df..8ad2370 100644 --- a/libvirtd-systemd-socket.patch +++ b/libvirtd-systemd-socket.patch @@ -9,10 +9,10 @@ as See bsc#933043 -Index: libvirt-1.3.1/daemon/libvirtd.socket.in +Index: libvirt-1.3.2/daemon/libvirtd.socket.in =================================================================== ---- libvirt-1.3.1.orig/daemon/libvirtd.socket.in -+++ libvirt-1.3.1/daemon/libvirtd.socket.in +--- libvirt-1.3.2.orig/daemon/libvirtd.socket.in ++++ libvirt-1.3.2/daemon/libvirtd.socket.in @@ -2,10 +2,8 @@ ListenStream=@runstatedir@/libvirt/libvirt-sock ListenStream=@runstatedir@/libvirt/libvirt-sock-ro diff --git a/libxl-support-block-script.patch b/libxl-support-block-script.patch index b571030..e32ccec 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-1.3.1/src/libxl/libxl_conf.c +Index: libvirt-1.3.2/src/libxl/libxl_conf.c =================================================================== ---- libvirt-1.3.1.orig/src/libxl/libxl_conf.c -+++ libvirt-1.3.1/src/libxl/libxl_conf.c -@@ -887,6 +887,22 @@ libxlDiskSetDiscard(libxl_device_disk *x +--- libvirt-1.3.2.orig/src/libxl/libxl_conf.c ++++ libvirt-1.3.2/src/libxl/libxl_conf.c +@@ -891,6 +891,22 @@ libxlDiskSetDiscard(libxl_device_disk *x } @@ -34,22 +34,24 @@ Index: libvirt-1.3.1/src/libxl/libxl_conf.c #define LIBXL_QEMU_DM_STR "Options specific to the Xen version:" int -@@ -921,12 +937,13 @@ libxlDomainGetEmulatorType(const virDoma +@@ -1108,6 +1124,7 @@ libxlMakeNetworkDiskSrc(virStorageSource int libxlMakeDisk(virDomainDiskDefPtr l_disk, libxl_device_disk *x_disk) { + const char *src = virDomainDiskGetSource(l_disk); const char *driver; int format; - - libxl_device_disk_init(x_disk); - -- if (VIR_STRDUP(x_disk->pdev_path, virDomainDiskGetSource(l_disk)) < 0) -+ if (VIR_STRDUP(x_disk->pdev_path, src) < 0) + int actual_type = virStorageSourceGetActualType(l_disk->src); +@@ -1118,7 +1135,7 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk + if (libxlMakeNetworkDiskSrc(l_disk->src, &x_disk->pdev_path) < 0) + return -1; + } else { +- if (VIR_STRDUP(x_disk->pdev_path, virDomainDiskGetSource(l_disk)) < 0) ++ if (VIR_STRDUP(x_disk->pdev_path, src) < 0) return -1; + } - if (VIR_STRDUP(x_disk->vdev, l_disk->dst) < 0) -@@ -1034,6 +1051,9 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk +@@ -1227,6 +1244,9 @@ 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/lxc-wait-after-eth-del.patch b/lxc-wait-after-eth-del.patch index a4fdd58..6b32121 100644 --- a/lxc-wait-after-eth-del.patch +++ b/lxc-wait-after-eth-del.patch @@ -13,10 +13,10 @@ device with the same name that is being created. src/lxc/lxc_process.c | 1 + 3 files changed, 4 insertions(+) -Index: libvirt-1.3.1/src/lxc/lxc_controller.c +Index: libvirt-1.3.2/src/lxc/lxc_controller.c =================================================================== ---- libvirt-1.3.1.orig/src/lxc/lxc_controller.c -+++ libvirt-1.3.1/src/lxc/lxc_controller.c +--- libvirt-1.3.2.orig/src/lxc/lxc_controller.c ++++ libvirt-1.3.2/src/lxc/lxc_controller.c @@ -2002,6 +2002,7 @@ static int virLXCControllerDeleteInterfa if (virNetDevVethDelete(ctrl->veths[i]) < 0) ret = -1; @@ -25,11 +25,11 @@ Index: libvirt-1.3.1/src/lxc/lxc_controller.c return ret; } -Index: libvirt-1.3.1/src/lxc/lxc_driver.c +Index: libvirt-1.3.2/src/lxc/lxc_driver.c =================================================================== ---- libvirt-1.3.1.orig/src/lxc/lxc_driver.c -+++ libvirt-1.3.1/src/lxc/lxc_driver.c -@@ -4257,6 +4257,7 @@ lxcDomainAttachDeviceNetLive(virConnectP +--- libvirt-1.3.2.orig/src/lxc/lxc_driver.c ++++ libvirt-1.3.2/src/lxc/lxc_driver.c +@@ -4261,6 +4261,7 @@ lxcDomainAttachDeviceNetLive(virConnectP case VIR_DOMAIN_NET_TYPE_BRIDGE: case VIR_DOMAIN_NET_TYPE_NETWORK: ignore_value(virNetDevVethDelete(veth)); @@ -37,7 +37,7 @@ Index: libvirt-1.3.1/src/lxc/lxc_driver.c break; case VIR_DOMAIN_NET_TYPE_DIRECT: -@@ -4684,6 +4685,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb +@@ -4689,6 +4690,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb virDomainAuditNet(vm, detach, NULL, "detach", false); goto cleanup; } @@ -45,10 +45,10 @@ Index: libvirt-1.3.1/src/lxc/lxc_driver.c break; /* It'd be nice to support this, but with macvlan -Index: libvirt-1.3.1/src/lxc/lxc_process.c +Index: libvirt-1.3.2/src/lxc/lxc_process.c =================================================================== ---- libvirt-1.3.1.orig/src/lxc/lxc_process.c -+++ libvirt-1.3.1/src/lxc/lxc_process.c +--- libvirt-1.3.2.orig/src/lxc/lxc_process.c ++++ libvirt-1.3.2/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 0cd2d46..dccb87d 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-1.3.1/src/util/virarch.c +Index: libvirt-1.3.2/src/util/virarch.c =================================================================== ---- libvirt-1.3.1.orig/src/util/virarch.c -+++ libvirt-1.3.1/src/util/virarch.c +--- libvirt-1.3.2.orig/src/util/virarch.c ++++ libvirt-1.3.2/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 881139c..fac4abb 100644 --- a/qemu-apparmor-screenshot.patch +++ b/qemu-apparmor-screenshot.patch @@ -1,7 +1,7 @@ -Index: libvirt-1.3.1/examples/apparmor/libvirt-qemu +Index: libvirt-1.3.2/examples/apparmor/libvirt-qemu =================================================================== ---- libvirt-1.3.1.orig/examples/apparmor/libvirt-qemu -+++ libvirt-1.3.1/examples/apparmor/libvirt-qemu +--- libvirt-1.3.2.orig/examples/apparmor/libvirt-qemu ++++ libvirt-1.3.2/examples/apparmor/libvirt-qemu @@ -152,6 +152,9 @@ /sys/bus/ r, /sys/class/ r, diff --git a/support-managed-pci-xen-driver.patch b/support-managed-pci-xen-driver.patch index f10ff3e..3f4c03e 100644 --- a/support-managed-pci-xen-driver.patch +++ b/support-managed-pci-xen-driver.patch @@ -8,11 +8,11 @@ Subject: [PATCH] support managed pci devices in xen driver src/xenxs/xen_xm.c | 28 +++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 15 deletions(-) -Index: libvirt-1.3.1/src/xenconfig/xen_common.c +Index: libvirt-1.3.2/src/xenconfig/xen_common.c =================================================================== ---- libvirt-1.3.1.orig/src/xenconfig/xen_common.c -+++ libvirt-1.3.1/src/xenconfig/xen_common.c -@@ -393,6 +393,8 @@ xenParsePCI(virConfPtr conf, virDomainDe +--- libvirt-1.3.2.orig/src/xenconfig/xen_common.c ++++ libvirt-1.3.2/src/xenconfig/xen_common.c +@@ -394,6 +394,8 @@ xenParsePCI(virConfPtr conf, virDomainDe { virConfValuePtr list = virConfGetValue(conf, "pci"); virDomainHostdevDefPtr hostdev = NULL; @@ -21,7 +21,7 @@ Index: libvirt-1.3.1/src/xenconfig/xen_common.c if (list && list->type == VIR_CONF_LIST) { list = list->list; -@@ -414,6 +416,11 @@ xenParsePCI(virConfPtr conf, virDomainDe +@@ -415,6 +417,11 @@ xenParsePCI(virConfPtr conf, virDomainDe /* pci=['0000:00:1b.0','0000:00:13.0'] */ if (!(key = list->str)) goto skippci; @@ -33,7 +33,7 @@ Index: libvirt-1.3.1/src/xenconfig/xen_common.c if (!(nextkey = strchr(key, ':'))) goto skippci; if (virStrncpy(domain, key, (nextkey - key), sizeof(domain)) == NULL) { -@@ -457,10 +464,31 @@ xenParsePCI(virConfPtr conf, virDomainDe +@@ -458,10 +465,31 @@ xenParsePCI(virConfPtr conf, virDomainDe goto skippci; if (virStrToLong_i(func, NULL, 16, &funcID) < 0) goto skippci; @@ -66,11 +66,11 @@ Index: libvirt-1.3.1/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-1.3.1/src/xenconfig/xen_sxpr.c +Index: libvirt-1.3.2/src/xenconfig/xen_sxpr.c =================================================================== ---- libvirt-1.3.1.orig/src/xenconfig/xen_sxpr.c -+++ libvirt-1.3.1/src/xenconfig/xen_sxpr.c -@@ -1060,6 +1060,7 @@ xenParseSxprPCI(virDomainDefPtr def, +--- libvirt-1.3.2.orig/src/xenconfig/xen_sxpr.c ++++ libvirt-1.3.2/src/xenconfig/xen_sxpr.c +@@ -1062,6 +1062,7 @@ xenParseSxprPCI(virDomainDefPtr def, int busID; int slotID; int funcID; @@ -78,7 +78,7 @@ Index: libvirt-1.3.1/src/xenconfig/xen_sxpr.c node = cur->u.s.car; if (!sexpr_lookup(node, "dev")) -@@ -1107,11 +1108,13 @@ xenParseSxprPCI(virDomainDefPtr def, +@@ -1109,11 +1110,13 @@ xenParseSxprPCI(virDomainDefPtr def, goto error; } @@ -93,7 +93,7 @@ Index: libvirt-1.3.1/src/xenconfig/xen_sxpr.c dev->source.subsys.type = VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI; dev->source.subsys.u.pci.addr.domain = domainID; dev->source.subsys.u.pci.addr.bus = busID; -@@ -1976,11 +1979,15 @@ static void +@@ -1978,11 +1981,15 @@ static void xenFormatSxprPCI(virDomainHostdevDefPtr def, virBufferPtr buf) { @@ -110,7 +110,7 @@ Index: libvirt-1.3.1/src/xenconfig/xen_sxpr.c } -@@ -1999,12 +2006,6 @@ xenFormatSxprOnePCI(virDomainHostdevDefP +@@ -2001,12 +2008,6 @@ xenFormatSxprOnePCI(virDomainHostdevDefP virBufferPtr buf, int detach) { @@ -123,7 +123,7 @@ Index: libvirt-1.3.1/src/xenconfig/xen_sxpr.c virBufferAddLit(buf, "(pci "); xenFormatSxprPCI(def, buf); if (detach) -@@ -2059,12 +2060,6 @@ xenFormatSxprAllPCI(virDomainDefPtr def, +@@ -2061,12 +2062,6 @@ xenFormatSxprAllPCI(virDomainDefPtr def, for (i = 0; i < def->nhostdevs; i++) { if (def->hostdevs[i]->mode == VIR_DOMAIN_HOSTDEV_MODE_SUBSYS && def->hostdevs[i]->source.subsys.type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI) { diff --git a/suse-qemu-conf.patch b/suse-qemu-conf.patch index 90b106a..86d0a32 100644 --- a/suse-qemu-conf.patch +++ b/suse-qemu-conf.patch @@ -1,7 +1,7 @@ -Index: libvirt-1.3.1/src/qemu/qemu.conf +Index: libvirt-1.3.2/src/qemu/qemu.conf =================================================================== ---- libvirt-1.3.1.orig/src/qemu/qemu.conf -+++ libvirt-1.3.1/src/qemu/qemu.conf +--- libvirt-1.3.2.orig/src/qemu/qemu.conf ++++ libvirt-1.3.2/src/qemu/qemu.conf @@ -201,11 +201,20 @@ # isolation, but it cannot appear in a list of drivers. # diff --git a/systemd-service-xen.patch b/systemd-service-xen.patch index d4a50ba..221f5f9 100644 --- a/systemd-service-xen.patch +++ b/systemd-service-xen.patch @@ -1,7 +1,7 @@ -Index: libvirt-1.3.1/daemon/libvirtd.service.in +Index: libvirt-1.3.2/daemon/libvirtd.service.in =================================================================== ---- libvirt-1.3.1.orig/daemon/libvirtd.service.in -+++ libvirt-1.3.1/daemon/libvirtd.service.in +--- libvirt-1.3.2.orig/daemon/libvirtd.service.in ++++ libvirt-1.3.2/daemon/libvirtd.service.in @@ -7,6 +7,7 @@ After=iscsid.service After=apparmor.service After=local-fs.target diff --git a/virtlockd-init-script.patch b/virtlockd-init-script.patch index 5439e06..e15d05a 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-1.3.1/src/locking/virtlockd.sysconf +Index: libvirt-1.3.2/src/locking/virtlockd.sysconf =================================================================== ---- libvirt-1.3.1.orig/src/locking/virtlockd.sysconf -+++ libvirt-1.3.1/src/locking/virtlockd.sysconf +--- libvirt-1.3.2.orig/src/locking/virtlockd.sysconf ++++ libvirt-1.3.2/src/locking/virtlockd.sysconf @@ -1,3 +1,7 @@ +## Path: System/Virtualization/virtlockd + @@ -12,10 +12,10 @@ Index: libvirt-1.3.1/src/locking/virtlockd.sysconf # # Pass extra arguments to virtlockd #VIRTLOCKD_ARGS= -Index: libvirt-1.3.1/src/locking/virtlockd.init.in +Index: libvirt-1.3.2/src/locking/virtlockd.init.in =================================================================== ---- libvirt-1.3.1.orig/src/locking/virtlockd.init.in -+++ libvirt-1.3.1/src/locking/virtlockd.init.in +--- libvirt-1.3.2.orig/src/locking/virtlockd.init.in ++++ libvirt-1.3.2/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 b8a26ca..c7a7754 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-1.3.1/src/logging/virtlogd.init.in +Index: libvirt-1.3.2/src/logging/virtlogd.init.in =================================================================== ---- libvirt-1.3.1.orig/src/logging/virtlogd.init.in -+++ libvirt-1.3.1/src/logging/virtlogd.init.in +--- libvirt-1.3.2.orig/src/logging/virtlogd.init.in ++++ libvirt-1.3.2/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-1.3.1/src/logging/virtlogd.init.in esac -exit $RETVAL +rc_exit -Index: libvirt-1.3.1/src/logging/virtlogd.sysconf +Index: libvirt-1.3.2/src/logging/virtlogd.sysconf =================================================================== ---- libvirt-1.3.1.orig/src/logging/virtlogd.sysconf -+++ libvirt-1.3.1/src/logging/virtlogd.sysconf +--- libvirt-1.3.2.orig/src/logging/virtlogd.sysconf ++++ libvirt-1.3.2/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 ce5112b..338b6c4 100644 --- a/xen-pv-cdrom.patch +++ b/xen-pv-cdrom.patch @@ -1,8 +1,8 @@ -Index: libvirt-1.3.1/src/xenconfig/xen_sxpr.c +Index: libvirt-1.3.2/src/xenconfig/xen_sxpr.c =================================================================== ---- libvirt-1.3.1.orig/src/xenconfig/xen_sxpr.c -+++ libvirt-1.3.1/src/xenconfig/xen_sxpr.c -@@ -390,7 +390,7 @@ xenParseSxprVifRate(const char *rate, un +--- libvirt-1.3.2.orig/src/xenconfig/xen_sxpr.c ++++ libvirt-1.3.2/src/xenconfig/xen_sxpr.c +@@ -392,7 +392,7 @@ xenParseSxprVifRate(const char *rate, un static int xenParseSxprDisks(virDomainDefPtr def, const struct sexpr *root, @@ -11,7 +11,7 @@ Index: libvirt-1.3.1/src/xenconfig/xen_sxpr.c { const struct sexpr *cur, *node; virDomainDiskDefPtr disk = NULL; -@@ -440,7 +440,6 @@ xenParseSxprDisks(virDomainDefPtr def, +@@ -442,7 +442,6 @@ xenParseSxprDisks(virDomainDefPtr def, /* There is a case without the uname to the CD-ROM device */ offset = strchr(dst, ':'); if (!offset || diff --git a/xen-sxpr-disk-type.patch b/xen-sxpr-disk-type.patch index 0d353c2..49ad9ac 100644 --- a/xen-sxpr-disk-type.patch +++ b/xen-sxpr-disk-type.patch @@ -6,11 +6,11 @@ and 'file'. This was implicitly done prior to commit 9673418c. https://bugzilla.suse.com/show_bug.cgi?id=938228 -Index: libvirt-1.3.1/src/xenconfig/xen_sxpr.c +Index: libvirt-1.3.2/src/xenconfig/xen_sxpr.c =================================================================== ---- libvirt-1.3.1.orig/src/xenconfig/xen_sxpr.c -+++ libvirt-1.3.1/src/xenconfig/xen_sxpr.c -@@ -504,10 +504,11 @@ xenParseSxprDisks(virDomainDefPtr def, +--- libvirt-1.3.2.orig/src/xenconfig/xen_sxpr.c ++++ libvirt-1.3.2/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 */ virDomainDiskSetType(disk, VIR_STORAGE_TYPE_FILE);