Hello community, here is the log from the commit of package libvirt for openSUSE:Factory checked in at 2016-08-29 15:34:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libvirt (Old) and /work/SRC/openSUSE:Factory/.libvirt.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libvirt" Changes: -------- --- /work/SRC/openSUSE:Factory/libvirt/libvirt.changes 2016-08-09 22:14:56.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libvirt.new/libvirt.changes 2016-08-29 15:34:46.000000000 +0200 @@ -1,0 +2,25 @@ +Sat Aug 20 23:25:09 UTC 2016 - [email protected] + +- libxl: allow vendor/product addressing for USB hostdevs + virHostdevFindUSBDevice-privsyms.patch, libxl-usb-vendor.patch + bsc#989646 +- qemu: fix auth for rbd network disks + d53d4650-qemu-rbd-auth.patch + bsc#988998 +- Replace cpumodel-vendor-crash-fix.patch with upstream variant + 541e9ae6-cpu-vendor-crash-fix.patch + bsc#992425 + +------------------------------------------------------------------- +Fri Aug 12 15:29:37 UTC 2016 - [email protected] + +- Update to libvirt 2.1.0 + - New subpackages libvirt-libs and libvirt-admin + - Many incremental improvements and bug fixes, see + http://libvirt.org/news.html + - Dropped patches: + c8f08e48-systemd-notify-fix.patch +- qemu: fix qemu.conf security_driver regression in 2.1.0 release + 856965b3-qemu-secdriver.patch + +------------------------------------------------------------------- Old: ---- c8f08e48-systemd-notify-fix.patch cpumodel-vendor-crash-fix.patch libvirt-2.0.0.tar.xz libvirt-2.0.0.tar.xz.asc New: ---- 541e9ae6-cpu-vendor-crash-fix.patch 856965b3-qemu-secdriver.patch d53d4650-qemu-rbd-auth.patch libvirt-2.1.0.tar.xz libvirt-2.1.0.tar.xz.asc libxl-usb-vendor.patch virHostdevFindUSBDevice-privsyms.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libvirt.spec ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -127,7 +127,7 @@ # For arm %ifarch aarch64 -# enable on anything newer than 1320, or SLE12 family newer than 120100 +# enable on anything newer than 1320, or SLE12 newer than 120100 # use librbd-devel as build dependency %if 0%{?suse_version} > 1320 || ( 0%{?is_opensuse} == 0 && 0%{?sle_version} > 120100 ) %define with_storage_rbd 0%{!?_without_storage_rbd:1} @@ -174,7 +174,7 @@ Name: libvirt Url: http://libvirt.org/ -Version: 2.0.0 +Version: 2.1.0 Release: 0 Summary: Library providing a simple virtualization API License: LGPL-2.1+ @@ -208,6 +208,7 @@ Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release} Requires: libvirt-daemon-driver-secret = %{version}-%{release} Requires: libvirt-daemon-driver-storage = %{version}-%{release} +Requires: libvirt-libs = %{version}-%{release} # All build-time requirements. Run-time requirements are # listed against each sub-RPM @@ -297,7 +298,7 @@ BuildRequires: numad %endif %if %{with_wireshark} -BuildRequires: wireshark-devel +BuildRequires: wireshark-devel >= 1.12.1 %endif %if %{with_qemu} # BuildRequire qemu-tools so configure can detect qemu-bridge-helper @@ -313,11 +314,14 @@ Source99: baselibs.conf Source100: %{name}-rpmlintrc # Upstream patches -Patch0: c8f08e48-systemd-notify-fix.patch +Patch0: 856965b3-qemu-secdriver.patch +Patch1: 541e9ae6-cpu-vendor-crash-fix.patch +Patch2: d53d4650-qemu-rbd-auth.patch # Patches pending upstream review Patch100: libxl-dom-reset.patch Patch101: pci-use-driver-override-sysfs.patch -Patch102: cpumodel-vendor-crash-fix.patch +Patch102: virHostdevFindUSBDevice-privsyms.patch +Patch103: libxl-usb-vendor.patch # Need to go upstream Patch150: xen-pv-cdrom.patch Patch151: blockcopy-check-dst-identical-device.patch @@ -376,8 +380,8 @@ # All runtime requirements for the libvirt package (runtime requirements # for subpackages are listed later in those subpackages) -# The client side, i.e. shared libs and virsh are in a subpackage -Requires: %{name}-client = %{version}-%{release} +# The client side, i.e. shared libs are in a subpackage +Requires: %{name}-libs = %{version}-%{release} # for modprobe of pci devices Requires: modutils @@ -700,25 +704,42 @@ %endif %package client -Summary: Client side library and utilities of the libvirt library +Summary: Client side utilities of the libvirt library Group: Development/Libraries/C and C++ +Requires: %{name}-libs = %{version}-%{release} Requires: ncurses Requires: readline -# So remote clients can access libvirt over SSH tunnel -# (client invokes 'nc' against the UNIX socket on the server) -Requires: netcat-openbsd # Needed by libvirt-guests init script. Requires: gettext-runtime # Needed by virt-pki-validate script. Requires: cyrus-sasl Requires: gnutls + +%description client +The client binaries needed to access the virtualization +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) +Requires: netcat-openbsd # Not technically required, but makes 'out-of-box' config # work correctly & doesn't have onerous dependencies Requires: cyrus-sasl-digestmd5 -%description client -Shared libraries and client binaries needed to access to the -virtualization capabilities of recent versions of Linux (and other OSes). +%description libs +Shared libraries for accessing the libvirt daemon. + +%package admin +Summary: Set of tools to control libvirt daemon +Group: Development/Libraries/C and C++ +Requires: %{name}-libs = %{version}-%{release} +Requires: readline + +%description admin +The client side utilities to control the libvirt daemon. %package devel Summary: Libraries, includes, etc. to compile with the libvirt library @@ -738,8 +759,8 @@ Group: Development/Libraries/C and C++ Requires: sanlock >= 2.4 # for virt-sanlock-cleanup require augeas -Requires: %{name}-client = %{version}-%{release} Requires: %{name}-daemon = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} Requires: augeas %description lock-sanlock @@ -751,7 +772,7 @@ %package -n wireshark-plugin-libvirt Summary: Wireshark plugin for libvirt RPC protocol Group: Productivity/Networking/Diagnostic -Requires: %{name}-client = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} Requires: wireshark %description -n wireshark-plugin-libvirt @@ -769,9 +790,12 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 +%patch2 -p1 %patch100 -p1 %patch101 -p1 %patch102 -p1 +%patch103 -p1 %patch150 -p1 %patch151 -p1 %patch152 -p1 @@ -984,9 +1008,7 @@ cp examples/lxcconvert/virt-lxc-convert $RPM_BUILD_ROOT%{_bindir} rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %if %{with_wireshark} -rm -f $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/libvirt.la -mv $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/libvirt.so \ - $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/libvirt.so +rm -f $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/libvirt.la %endif rm -f $RPM_BUILD_ROOT%{_libdir}/*.a rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lock-driver/*.la @@ -1240,7 +1262,6 @@ %endif %post client -/sbin/ldconfig %if %{with_systemd} %service_add_post libvirt-guests.service %endif @@ -1257,12 +1278,17 @@ fi %postun client -/sbin/ldconfig %if %{with_systemd} %service_del_postun libvirt-guests.service %endif %insserv_cleanup +%post libs +/sbin/ldconfig + +%postun libs +/sbin/ldconfig + %post nss /sbin/ldconfig @@ -1481,25 +1507,16 @@ %doc %{_docdir}/%{name}/libvirt-daemon-vbox.README %endif -%files client -f %{name}.lang -%doc AUTHORS ChangeLog.gz NEWS README COPYING COPYING.LESSER TODO +%files client %doc %{_mandir}/man1/virsh.1* -%doc %{_mandir}/man1/virt-admin.1* %doc %{_mandir}/man1/virt-xml-validate.1* %doc %{_mandir}/man1/virt-pki-validate.1* %doc %{_mandir}/man1/virt-host-validate.1* -%config(noreplace) %{_sysconfdir}/%{name}/libvirt.conf -%config(noreplace) %{_sysconfdir}/%{name}/libvirt-admin.conf %{_bindir}/virsh -%{_bindir}/virt-admin %{_bindir}/virt-xml-validate %{_bindir}/virt-pki-validate %{_bindir}/virt-host-validate %dir %{_libdir}/%{name} -%{_libdir}/libvirt.so.* -%{_libdir}/libvirt-qemu.so.* -%{_libdir}/libvirt-lxc.so.* -%{_libdir}/libvirt-admin.so.* %attr(0755, root, root) %{_libdir}/%{name}/libvirt-guests.sh %{_localstatedir}/adm/fillup-templates/sysconfig.libvirt-guests %if %{with_systemd} @@ -1509,8 +1526,17 @@ %endif %{_sbindir}/rclibvirt-guests +%files libs -f %{name}.lang +%doc AUTHORS ChangeLog.gz NEWS README COPYING COPYING.LESSER TODO +%config(noreplace) %{_sysconfdir}/%{name}/libvirt.conf +%config(noreplace) %{_sysconfdir}/%{name}/libvirt-admin.conf +%{_libdir}/libvirt.so.* +%{_libdir}/libvirt-qemu.so.* +%{_libdir}/libvirt-lxc.so.* +%{_libdir}/libvirt-admin.so.* %dir %{_datadir}/libvirt/ %dir %{_datadir}/libvirt/schemas/ +%dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/ %{_datadir}/libvirt/schemas/basictypes.rng %{_datadir}/libvirt/schemas/capability.rng @@ -1529,9 +1555,14 @@ %{_datadir}/libvirt/schemas/storagevol.rng %{_datadir}/libvirt/cpu_map.xml %{_datadir}/libvirt/libvirtLogo.png + %dir %{_sysconfdir}/sasl2/ %config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf +%files admin +%doc %{_mandir}/man1/virt-admin.1* +%{_bindir}/virt-admin + %files devel %{_libdir}/libvirt.so %{_libdir}/libvirt-admin.so ++++++ 541e9ae6-cpu-vendor-crash-fix.patch ++++++ commit 541e9ae6d4290b9004ed73648ea663563b329b3d Author: Jim Fehlig <[email protected]> Date: Fri Aug 5 15:23:47 2016 -0600 cpu_x86: fix libvirtd crash when host cpu vendor is not available When starting a guest and copying host vendor cpuid to the guest cpu, libvirtd would crash if the host cpu contained a NULL vendor field. Avoid the crash by checking for a valid vendor in the host cpu before copying the cpuid to the guest cpu. For completeness, here is a backtrace from the crash (gdb) bt f0 0x00007ffff739bf33 in x86DataCpuid (cpuid=0x8, cpuid=0x8, data=data@entry=0x7fffb800ee78) at cpu/cpu_x86.c:287 f1 virCPUx86DataAddCPUID (data=data@entry=0x7fffb800ee78, cpuid=0x8) at cpu/cpu_x86.c:355 f2 0x00007ffff739ef47 in x86Compute (host=<optimized out>, cpu=0x7fffb8000cc0, guest=0x7fffecca7348, message=<optimized out>) at cpu/cpu_x86.c:1580 f3 0x00007fffd2b38e53 in qemuBuildCpuModelArgStr (migrating=false, hasHwVirt=<synthetic pointer>, qemuCaps=0x7fffb8001040, buf=0x7fffecca7360, def=0x7fffc400ce20, driver=0x1c) at qemu/qemu_command.c:6283 f4 qemuBuildCpuCommandLine (cmd=cmd@entry=0x7fffb8002f60, driver=driver@entry=0x7fffc80882c0, def=def@entry=0x7fffc400ce20, qemuCaps=qemuCaps@entry=0x7fffb8001040, migrating=<optimized out>) at qemu/qemu_command.c:6445 (gdb) f2 (gdb) p *host_model $23 = {name = 0x7fffb800ec50 "qemu64", vendor = 0x0, signature = 0, data = { len = 2, data = 0x7fffb800e720}} Index: libvirt-2.1.0/src/cpu/cpu_x86.c =================================================================== --- libvirt-2.1.0.orig/src/cpu/cpu_x86.c +++ libvirt-2.1.0/src/cpu/cpu_x86.c @@ -1576,7 +1576,7 @@ x86Compute(virCPUDefPtr host, if (!(guest_model = x86ModelCopy(host_model))) goto error; - if (cpu->vendor && + if (cpu->vendor && host_model->vendor && virCPUx86DataAddCPUID(&guest_model->data, &host_model->vendor->cpuid) < 0) goto error; ++++++ 856965b3-qemu-secdriver.patch ++++++ commit 856965b36246b26002af409262846317477ea631 Author: Cole Robinson <[email protected]> Date: Wed Aug 10 10:32:03 2016 -0400 qemu: fix qemu.conf security_driver Since a9331394 (first release v2.1.0), specifying a manual security_driver setting in qemu.conf causes the daemon to fail to start, erroring with 'Duplicate security driver X'. The duplicate checking was incorrectly comparing every entry against itself, guaranteeing a false positive. https://bugzilla.redhat.com/show_bug.cgi?id=1365607 Index: libvirt-2.1.0/src/qemu/qemu_conf.c =================================================================== --- libvirt-2.1.0.orig/src/qemu/qemu_conf.c +++ libvirt-2.1.0/src/qemu/qemu_conf.c @@ -431,7 +431,7 @@ int virQEMUDriverConfigLoadFile(virQEMUD goto cleanup; for (i = 0; cfg->securityDriverNames && cfg->securityDriverNames[i] != NULL; i++) { - for (j = i; cfg->securityDriverNames[j] != NULL; j++) { + for (j = i + 1; cfg->securityDriverNames[j] != NULL; j++) { if (STREQ(cfg->securityDriverNames[i], cfg->securityDriverNames[j])) { virReportError(VIR_ERR_CONF_SYNTAX, ++++++ apparmor-fixes.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,7 +1,7 @@ -Index: libvirt-2.0.0/examples/apparmor/libvirt-qemu +Index: libvirt-2.1.0/examples/apparmor/libvirt-qemu =================================================================== ---- libvirt-2.0.0.orig/examples/apparmor/libvirt-qemu -+++ libvirt-2.0.0/examples/apparmor/libvirt-qemu +--- libvirt-2.1.0.orig/examples/apparmor/libvirt-qemu ++++ libvirt-2.1.0/examples/apparmor/libvirt-qemu @@ -143,6 +143,9 @@ # for restore /bin/bash rmix, ++++++ apparmor-no-mount.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,7 +1,7 @@ -Index: libvirt-2.0.0/examples/apparmor/libvirt-lxc +Index: libvirt-2.1.0/examples/apparmor/libvirt-lxc =================================================================== ---- libvirt-2.0.0.orig/examples/apparmor/libvirt-lxc -+++ libvirt-2.0.0/examples/apparmor/libvirt-lxc +--- libvirt-2.1.0.orig/examples/apparmor/libvirt-lxc ++++ libvirt-2.1.0/examples/apparmor/libvirt-lxc @@ -2,39 +2,15 @@ #include <abstractions/base> ++++++ apparmor-qemu-bridge-helper.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -10,11 +10,11 @@ examples/apparmor/usr.sbin.libvirtd | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 19 deletions(-) -diff --git a/examples/apparmor/libvirt-qemu b/examples/apparmor/libvirt-qemu -index efb4873..11381d4 100644 ---- a/examples/apparmor/libvirt-qemu -+++ b/examples/apparmor/libvirt-qemu -@@ -148,22 +148,3 @@ +Index: libvirt-2.1.0/examples/apparmor/libvirt-qemu +=================================================================== +--- libvirt-2.1.0.orig/examples/apparmor/libvirt-qemu ++++ libvirt-2.1.0/examples/apparmor/libvirt-qemu +@@ -151,22 +151,3 @@ /etc/udev/udev.conf r, /sys/bus/ r, /sys/class/ r, @@ -37,10 +37,10 @@ - - /usr/{lib,libexec}/qemu-bridge-helper rmix, - } -diff --git a/examples/apparmor/usr.sbin.libvirtd b/examples/apparmor/usr.sbin.libvirtd -index 23f70f5..48651b2 100644 ---- a/examples/apparmor/usr.sbin.libvirtd -+++ b/examples/apparmor/usr.sbin.libvirtd +Index: libvirt-2.1.0/examples/apparmor/usr.sbin.libvirtd +=================================================================== +--- libvirt-2.1.0.orig/examples/apparmor/usr.sbin.libvirtd ++++ libvirt-2.1.0/examples/apparmor/usr.sbin.libvirtd @@ -67,4 +67,22 @@ # allow changing to our UUID-based named profiles change_profile -> @{LIBVIRT}-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*, @@ -64,6 +64,3 @@ + /usr/{lib,libexec}/qemu-bridge-helper rmix, + } } --- -2.6.6 - ++++++ blockcopy-check-dst-identical-device.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -11,11 +11,11 @@ src/qemu/qemu_driver.c | 7 +++++++ 1 file changed, 7 insertions(+) -Index: libvirt-2.0.0/src/qemu/qemu_driver.c +Index: libvirt-2.1.0/src/qemu/qemu_driver.c =================================================================== ---- libvirt-2.0.0.orig/src/qemu/qemu_driver.c -+++ libvirt-2.0.0/src/qemu/qemu_driver.c -@@ -16292,6 +16292,15 @@ qemuDomainBlockCopyCommon(virDomainObjPt +--- libvirt-2.1.0.orig/src/qemu/qemu_driver.c ++++ libvirt-2.1.0/src/qemu/qemu_driver.c +@@ -16327,6 +16327,15 @@ qemuDomainBlockCopyCommon(virDomainObjPt _("non-file destination not supported yet")); goto endjob; } ++++++ d53d4650-qemu-rbd-auth.patch ++++++ commit d53d465083edeb64cc7b78249c030734c0d91c6b Author: John Ferlan <[email protected]> Date: Tue Aug 16 16:50:15 2016 -0400 qemu: Fix the command line generation for rbd auth using aes secrets https://bugzilla.redhat.com/show_bug.cgi?id=1182074 Since libvirt still uses a legacy qemu arg format to add a disk, the manner in which the 'password-secret' argument is passed to qemu needs to change to prepend a 'file.' If in the future, usage of the more modern disk format, then the prepended 'file.' can be removed. Fix based on Jim Fehlig <[email protected]> posting and subsequent upstream list followups, see: http://www.redhat.com/archives/libvir-list/2016-August/msg00777.html for details. Introduced by commit id 'a1344f70'. Index: libvirt-2.1.0/src/qemu/qemu_command.c =================================================================== --- libvirt-2.1.0.orig/src/qemu/qemu_command.c +++ libvirt-2.1.0/src/qemu/qemu_command.c @@ -1296,7 +1296,12 @@ qemuBuildDriveSourceStr(virDomainDiskDef virBufferAddLit(buf, ","); if (secinfo && secinfo->type == VIR_DOMAIN_SECRET_INFO_TYPE_AES) { - virBufferAsprintf(buf, "password-secret=%s,", + /* NB: If libvirt starts using the more modern option based + * syntax to build the command line (e.g., "-drive driver=rbd, + * filename=%s,...") instead of the legacy model (e.g."-drive + * file=%s,..."), then the "file." prefix can be removed + */ + virBufferAsprintf(buf, "file.password-secret=%s,", secinfo->s.aes.alias); } Index: libvirt-2.1.0/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd-auth-AES.args =================================================================== --- libvirt-2.1.0.orig/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd-auth-AES.args +++ libvirt-2.1.0/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd-auth-AES.args @@ -26,7 +26,7 @@ data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \ -drive 'file=rbd:pool/image:id=myname:auth_supported=cephx\;none:\ mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:\ -6322,password-secret=virtio-disk0-secret0,format=raw,if=none,\ +6322,file.password-secret=virtio-disk0-secret0,format=raw,if=none,\ id=drive-virtio-disk0' \ -device virtio-blk-pci,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,\ id=virtio-disk0 ++++++ libvirt-2.0.0.tar.xz -> libvirt-2.1.0.tar.xz ++++++ /work/SRC/openSUSE:Factory/libvirt/libvirt-2.0.0.tar.xz /work/SRC/openSUSE:Factory/.libvirt.new/libvirt-2.1.0.tar.xz differ: char 15, line 1 ++++++ libvirt-guests-init-script.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,9 +1,9 @@ Adjust libvirt-guests init files to conform to SUSE standards -Index: libvirt-2.0.0/tools/libvirt-guests.init.in +Index: libvirt-2.1.0/tools/libvirt-guests.init.in =================================================================== ---- libvirt-2.0.0.orig/tools/libvirt-guests.init.in -+++ libvirt-2.0.0/tools/libvirt-guests.init.in +--- libvirt-2.1.0.orig/tools/libvirt-guests.init.in ++++ libvirt-2.1.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 @@ # exec @libexecdir@/libvirt-guests.sh "$@" -Index: libvirt-2.0.0/tools/libvirt-guests.sh.in +Index: libvirt-2.1.0/tools/libvirt-guests.sh.in =================================================================== ---- libvirt-2.0.0.orig/tools/libvirt-guests.sh.in -+++ libvirt-2.0.0/tools/libvirt-guests.sh.in +--- libvirt-2.1.0.orig/tools/libvirt-guests.sh.in ++++ libvirt-2.1.0/tools/libvirt-guests.sh.in @@ -16,14 +16,13 @@ # License along with this library. If not, see # <http://www.gnu.org/licenses/>. @@ -208,10 +208,10 @@ esac -exit $RETVAL +rc_exit -Index: libvirt-2.0.0/tools/libvirt-guests.sysconf +Index: libvirt-2.1.0/tools/libvirt-guests.sysconf =================================================================== ---- libvirt-2.0.0.orig/tools/libvirt-guests.sysconf -+++ libvirt-2.0.0/tools/libvirt-guests.sysconf +--- libvirt-2.1.0.orig/tools/libvirt-guests.sysconf ++++ libvirt-2.1.0/tools/libvirt-guests.sysconf @@ -1,19 +1,29 @@ +## Path: System/Virtualization/libvirt-guests + ++++++ libvirt-power8-models.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,7 +1,7 @@ -Index: libvirt-2.0.0/src/cpu/cpu_map.xml +Index: libvirt-2.1.0/src/cpu/cpu_map.xml =================================================================== ---- libvirt-2.0.0.orig/src/cpu/cpu_map.xml -+++ libvirt-2.0.0/src/cpu/cpu_map.xml +--- libvirt-2.1.0.orig/src/cpu/cpu_map.xml ++++ libvirt-2.1.0/src/cpu/cpu_map.xml @@ -1542,6 +1542,16 @@ <pvr value='0x004d0000' mask='0xffff0000'/> </model> ++++++ libvirt-suse-netcontrol.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,7 +1,7 @@ -Index: libvirt-2.0.0/configure.ac +Index: libvirt-2.1.0/configure.ac =================================================================== ---- libvirt-2.0.0.orig/configure.ac -+++ libvirt-2.0.0/configure.ac +--- libvirt-2.1.0.orig/configure.ac ++++ libvirt-2.1.0/configure.ac @@ -248,6 +248,7 @@ LIBVIRT_CHECK_FUSE LIBVIRT_CHECK_GLUSTER LIBVIRT_CHECK_HAL @@ -34,11 +34,11 @@ LIBVIRT_RESULT_NUMACTL LIBVIRT_RESULT_OPENWSMAN LIBVIRT_RESULT_PCIACCESS -Index: libvirt-2.0.0/src/Makefile.am +Index: libvirt-2.1.0/src/Makefile.am =================================================================== ---- libvirt-2.0.0.orig/src/Makefile.am -+++ libvirt-2.0.0/src/Makefile.am -@@ -943,6 +943,10 @@ if WITH_NETCF +--- libvirt-2.1.0.orig/src/Makefile.am ++++ libvirt-2.1.0/src/Makefile.am +@@ -945,6 +945,10 @@ if WITH_NETCF INTERFACE_DRIVER_SOURCES += \ interface/interface_backend_netcf.c endif WITH_NETCF @@ -49,7 +49,7 @@ if WITH_UDEV INTERFACE_DRIVER_SOURCES += \ interface/interface_backend_udev.c -@@ -1589,6 +1593,10 @@ if WITH_NETCF +@@ -1590,6 +1594,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 @@ if WITH_UDEV libvirt_driver_interface_la_CFLAGS += $(UDEV_CFLAGS) libvirt_driver_interface_la_LIBADD += $(UDEV_LIBS) -Index: libvirt-2.0.0/tools/virsh.c +Index: libvirt-2.1.0/tools/virsh.c =================================================================== ---- libvirt-2.0.0.orig/tools/virsh.c -+++ libvirt-2.0.0/tools/virsh.c +--- libvirt-2.1.0.orig/tools/virsh.c ++++ libvirt-2.1.0/tools/virsh.c @@ -636,6 +636,8 @@ virshShowVersion(vshControl *ctl ATTRIBU vshPrint(ctl, " Interface"); # if defined(WITH_NETCF) @@ -73,10 +73,10 @@ # elif defined(WITH_UDEV) vshPrint(ctl, " udev"); # endif -Index: libvirt-2.0.0/src/interface/interface_backend_netcf.c +Index: libvirt-2.1.0/src/interface/interface_backend_netcf.c =================================================================== ---- libvirt-2.0.0.orig/src/interface/interface_backend_netcf.c -+++ libvirt-2.0.0/src/interface/interface_backend_netcf.c +--- libvirt-2.1.0.orig/src/interface/interface_backend_netcf.c ++++ libvirt-2.1.0/src/interface/interface_backend_netcf.c @@ -23,7 +23,12 @@ #include <config.h> @@ -160,10 +160,10 @@ if (virSetSharedInterfaceDriver(&interfaceDriver) < 0) return -1; if (virRegisterStateDriver(&interfaceStateDriver) < 0) -Index: libvirt-2.0.0/src/interface/interface_driver.c +Index: libvirt-2.1.0/src/interface/interface_driver.c =================================================================== ---- libvirt-2.0.0.orig/src/interface/interface_driver.c -+++ libvirt-2.0.0/src/interface/interface_driver.c +--- libvirt-2.1.0.orig/src/interface/interface_driver.c ++++ libvirt-2.1.0/src/interface/interface_driver.c @@ -30,8 +30,15 @@ interfaceRegister(void) if (netcfIfaceRegister() == 0) return 0; @@ -181,10 +181,10 @@ if (udevIfaceRegister() == 0) return 0; #endif /* WITH_UDEV */ -Index: libvirt-2.0.0/m4/virt-netcontrol.m4 +Index: libvirt-2.1.0/m4/virt-netcontrol.m4 =================================================================== --- /dev/null -+++ libvirt-2.0.0/m4/virt-netcontrol.m4 ++++ libvirt-2.1.0/m4/virt-netcontrol.m4 @@ -0,0 +1,35 @@ +dnl The libnetcontrol library +dnl ++++++ libvirtd-defaults.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,7 +1,7 @@ -Index: libvirt-2.0.0/daemon/libvirtd.conf +Index: libvirt-2.1.0/daemon/libvirtd.conf =================================================================== ---- libvirt-2.0.0.orig/daemon/libvirtd.conf -+++ libvirt-2.0.0/daemon/libvirtd.conf +--- libvirt-2.1.0.orig/daemon/libvirtd.conf ++++ libvirt-2.1.0/daemon/libvirtd.conf @@ -18,8 +18,8 @@ # It is necessary to setup a CA and issue server certificates before # using this capability. @@ -13,11 +13,11 @@ # 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.0.0/daemon/libvirtd-config.c +Index: libvirt-2.1.0/daemon/libvirtd-config.c =================================================================== ---- libvirt-2.0.0.orig/daemon/libvirtd-config.c -+++ libvirt-2.0.0/daemon/libvirtd-config.c -@@ -242,7 +242,7 @@ daemonConfigNew(bool privileged ATTRIBUT +--- libvirt-2.1.0.orig/daemon/libvirtd-config.c ++++ libvirt-2.1.0/daemon/libvirtd-config.c +@@ -109,7 +109,7 @@ daemonConfigNew(bool privileged ATTRIBUT if (VIR_ALLOC(data) < 0) return NULL; @@ -26,10 +26,10 @@ data->listen_tcp = 0; if (VIR_STRDUP(data->tls_port, LIBVIRTD_TLS_PORT) < 0 || -Index: libvirt-2.0.0/daemon/test_libvirtd.aug.in +Index: libvirt-2.1.0/daemon/test_libvirtd.aug.in =================================================================== ---- libvirt-2.0.0.orig/daemon/test_libvirtd.aug.in -+++ libvirt-2.0.0/daemon/test_libvirtd.aug.in +--- libvirt-2.1.0.orig/daemon/test_libvirtd.aug.in ++++ libvirt-2.1.0/daemon/test_libvirtd.aug.in @@ -2,7 +2,7 @@ module Test_libvirtd = ::CONFIG:: ++++++ libvirtd-init-script.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,9 +1,9 @@ Adjust libvirtd sysconfig file to conform to SUSE standards -Index: libvirt-2.0.0/daemon/libvirtd.sysconf +Index: libvirt-2.1.0/daemon/libvirtd.sysconf =================================================================== ---- libvirt-2.0.0.orig/daemon/libvirtd.sysconf -+++ libvirt-2.0.0/daemon/libvirtd.sysconf +--- libvirt-2.1.0.orig/daemon/libvirtd.sysconf ++++ libvirt-2.1.0/daemon/libvirtd.sysconf @@ -1,16 +1,25 @@ +## Path: System/Virtualization/libvirt + ++++++ libxl-dom-reset.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -8,11 +8,11 @@ option, but domainReset can be implemented in the libxl driver by forcibly destroying the domain and starting it again. -Index: libvirt-2.0.0/src/libxl/libxl_driver.c +Index: libvirt-2.1.0/src/libxl/libxl_driver.c =================================================================== ---- libvirt-2.0.0.orig/src/libxl/libxl_driver.c -+++ libvirt-2.0.0/src/libxl/libxl_driver.c -@@ -1327,6 +1327,61 @@ libxlDomainReboot(virDomainPtr dom, unsi +--- libvirt-2.1.0.orig/src/libxl/libxl_driver.c ++++ libvirt-2.1.0/src/libxl/libxl_driver.c +@@ -1348,6 +1348,61 @@ libxlDomainReboot(virDomainPtr dom, unsi } static int @@ -74,7 +74,7 @@ libxlDomainDestroyFlags(virDomainPtr dom, unsigned int flags) { -@@ -5763,6 +5818,7 @@ static virHypervisorDriver libxlHypervis +@@ -6161,6 +6216,7 @@ static virHypervisorDriver libxlHypervis .domainShutdown = libxlDomainShutdown, /* 0.9.0 */ .domainShutdownFlags = libxlDomainShutdownFlags, /* 0.9.10 */ .domainReboot = libxlDomainReboot, /* 0.9.0 */ ++++++ libxl-qemu-emulator-caps.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -8,10 +8,10 @@ See FATE#320638 for details. -Index: libvirt-2.0.0/src/libxl/libxl_capabilities.c +Index: libvirt-2.1.0/src/libxl/libxl_capabilities.c =================================================================== ---- libvirt-2.0.0.orig/src/libxl/libxl_capabilities.c -+++ libvirt-2.0.0/src/libxl/libxl_capabilities.c +--- libvirt-2.1.0.orig/src/libxl/libxl_capabilities.c ++++ libvirt-2.1.0/src/libxl/libxl_capabilities.c @@ -36,6 +36,7 @@ #include "domain_capabilities.h" #include "vircommand.h" ++++++ libxl-set-cach-mode.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -3,10 +3,10 @@ src/libxl/libxl_conf.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -Index: libvirt-2.0.0/src/libxl/libxl_conf.c +Index: libvirt-2.1.0/src/libxl/libxl_conf.c =================================================================== ---- libvirt-2.0.0.orig/src/libxl/libxl_conf.c -+++ libvirt-2.0.0/src/libxl/libxl_conf.c +--- libvirt-2.1.0.orig/src/libxl/libxl_conf.c ++++ libvirt-2.1.0/src/libxl/libxl_conf.c @@ -562,6 +562,30 @@ libxlDiskSetDiscard(libxl_device_disk *x #endif } @@ -38,7 +38,7 @@ static char * libxlMakeNetworkDiskSrcStr(virStorageSourcePtr src, const char *username, -@@ -803,6 +827,7 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk +@@ -804,6 +828,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; ++++++ libxl-set-migration-constraints.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -16,11 +16,11 @@ tools/virsh.pod | 8 ++++++++ 6 files changed, 125 insertions(+), 6 deletions(-) -Index: libvirt-2.0.0/include/libvirt/libvirt-domain.h +Index: libvirt-2.1.0/include/libvirt/libvirt-domain.h =================================================================== ---- libvirt-2.0.0.orig/include/libvirt/libvirt-domain.h -+++ libvirt-2.0.0/include/libvirt/libvirt-domain.h -@@ -864,6 +864,31 @@ typedef enum { +--- libvirt-2.1.0.orig/include/libvirt/libvirt-domain.h ++++ libvirt-2.1.0/include/libvirt/libvirt-domain.h +@@ -873,6 +873,31 @@ typedef enum { */ # define VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT "auto_converge.increment" @@ -52,11 +52,11 @@ /* Domain migration. */ virDomainPtr virDomainMigrate (virDomainPtr domain, virConnectPtr dconn, unsigned long flags, const char *dname, -Index: libvirt-2.0.0/src/libxl/libxl_driver.c +Index: libvirt-2.1.0/src/libxl/libxl_driver.c =================================================================== ---- libvirt-2.0.0.orig/src/libxl/libxl_driver.c -+++ libvirt-2.0.0/src/libxl/libxl_driver.c -@@ -5428,6 +5428,9 @@ libxlDomainMigratePerform3Params(virDoma +--- libvirt-2.1.0.orig/src/libxl/libxl_driver.c ++++ libvirt-2.1.0/src/libxl/libxl_driver.c +@@ -5826,6 +5826,9 @@ libxlDomainMigratePerform3Params(virDoma const char *dname = NULL; const char *uri = NULL; int ret = -1; @@ -66,7 +66,7 @@ #ifdef LIBXL_HAVE_NO_SUSPEND_RESUME virReportUnsupportedError(); -@@ -5444,6 +5447,18 @@ libxlDomainMigratePerform3Params(virDoma +@@ -5842,6 +5845,18 @@ libxlDomainMigratePerform3Params(virDoma virTypedParamsGetString(params, nparams, VIR_MIGRATE_PARAM_DEST_NAME, &dname) < 0 || @@ -85,7 +85,7 @@ virTypedParamsGetString(params, nparams, VIR_MIGRATE_PARAM_URI, &uri) < 0) -@@ -5458,11 +5473,11 @@ libxlDomainMigratePerform3Params(virDoma +@@ -5856,11 +5871,11 @@ libxlDomainMigratePerform3Params(virDoma if (flags & VIR_MIGRATE_PEER2PEER) { if (libxlDomainMigrationPerformP2P(driver, vm, dom->conn, dom_xml, @@ -99,10 +99,10 @@ goto cleanup; } -Index: libvirt-2.0.0/src/libxl/libxl_migration.c +Index: libvirt-2.1.0/src/libxl/libxl_migration.c =================================================================== ---- libvirt-2.0.0.orig/src/libxl/libxl_migration.c -+++ libvirt-2.0.0/src/libxl/libxl_migration.c +--- libvirt-2.1.0.orig/src/libxl/libxl_migration.c ++++ libvirt-2.1.0/src/libxl/libxl_migration.c @@ -357,18 +357,39 @@ libxlMigrateReceive(virNetSocketPtr sock static int libxlDoMigrateSend(libxlDriverPrivatePtr driver, @@ -217,10 +217,10 @@ virObjectLock(vm); cleanup: -Index: libvirt-2.0.0/src/libxl/libxl_migration.h +Index: libvirt-2.1.0/src/libxl/libxl_migration.h =================================================================== ---- libvirt-2.0.0.orig/src/libxl/libxl_migration.h -+++ libvirt-2.0.0/src/libxl/libxl_migration.h +--- libvirt-2.1.0.orig/src/libxl/libxl_migration.h ++++ libvirt-2.1.0/src/libxl/libxl_migration.h @@ -37,6 +37,10 @@ VIR_MIGRATE_PARAM_URI, VIR_TYPED_PARAM_STRING, \ VIR_MIGRATE_PARAM_DEST_NAME, VIR_TYPED_PARAM_STRING, \ @@ -265,10 +265,10 @@ virDomainPtr libxlDomainMigrationFinish(virConnectPtr dconn, -Index: libvirt-2.0.0/tools/virsh-domain.c +Index: libvirt-2.1.0/tools/virsh-domain.c =================================================================== ---- libvirt-2.0.0.orig/tools/virsh-domain.c -+++ libvirt-2.0.0/tools/virsh-domain.c +--- libvirt-2.1.0.orig/tools/virsh-domain.c ++++ libvirt-2.1.0/tools/virsh-domain.c @@ -9977,6 +9977,22 @@ static const vshCmdOptDef opts_migrate[] .type = VSH_OT_INT, .help = N_("CPU throttling rate increment for auto-convergence") @@ -328,11 +328,11 @@ if (vshCommandOptStringReq(ctl, cmd, "xml", &opt) < 0) goto out; if (opt) { -Index: libvirt-2.0.0/tools/virsh.pod +Index: libvirt-2.1.0/tools/virsh.pod =================================================================== ---- libvirt-2.0.0.orig/tools/virsh.pod -+++ libvirt-2.0.0/tools/virsh.pod -@@ -1631,6 +1631,14 @@ compression. I<--comp-mt-threads> and I< +--- libvirt-2.1.0.orig/tools/virsh.pod ++++ libvirt-2.1.0/tools/virsh.pod +@@ -1662,6 +1662,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. ++++++ libxl-support-block-script.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -7,10 +7,10 @@ For more details, see bsc#954872 and FATE#319810 -Index: libvirt-2.0.0/src/libxl/libxl_conf.c +Index: libvirt-2.1.0/src/libxl/libxl_conf.c =================================================================== ---- libvirt-2.0.0.orig/src/libxl/libxl_conf.c -+++ libvirt-2.0.0/src/libxl/libxl_conf.c +--- libvirt-2.1.0.orig/src/libxl/libxl_conf.c ++++ libvirt-2.1.0/src/libxl/libxl_conf.c @@ -562,6 +562,25 @@ libxlDiskSetDiscard(libxl_device_disk *x #endif } @@ -37,7 +37,7 @@ static void libxlDiskSetCacheMode(libxl_device_disk *x_disk, int cachemode) { -@@ -705,6 +724,7 @@ libxlMakeNetworkDiskSrc(virStorageSource +@@ -706,6 +725,7 @@ libxlMakeNetworkDiskSrc(virStorageSource int libxlMakeDisk(virDomainDiskDefPtr l_disk, libxl_device_disk *x_disk) { @@ -45,7 +45,7 @@ const char *driver = virDomainDiskGetDriver(l_disk); int format = virDomainDiskGetFormat(l_disk); int actual_type = virStorageSourceGetActualType(l_disk->src); -@@ -720,7 +740,7 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk +@@ -721,7 +741,7 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk if (libxlMakeNetworkDiskSrc(l_disk->src, &x_disk->pdev_path) < 0) return -1; } else { @@ -54,7 +54,7 @@ return -1; } -@@ -828,6 +848,9 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk +@@ -829,6 +849,9 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk if (libxlDiskSetDiscard(x_disk, l_disk->discard) < 0) return -1; libxlDiskSetCacheMode(x_disk, l_disk->cachemode); ++++++ libxl-usb-vendor.patch ++++++ commit e7af9dcf1fb0703828ef9740cb9b9c00f2fa00a4 Author: Cédric Bosdonnat <[email protected]> Date: Fri Aug 5 09:10:50 2016 +0200 libxl: allow vendor/product addressing for USB hostdevs libxl only has API to address the host USB devices by bus/device. Find the bus/device if the user only provided the vendor/product of the USB device. Index: libvirt-2.1.0/src/libxl/libxl_conf.c =================================================================== --- libvirt-2.1.0.orig/src/libxl/libxl_conf.c +++ libvirt-2.1.0/src/libxl/libxl_conf.c @@ -1483,23 +1483,36 @@ int libxlMakeUSB(virDomainHostdevDefPtr hostdev, libxl_device_usbdev *usbdev) { virDomainHostdevSubsysUSBPtr usbsrc = &hostdev->source.subsys.u.usb; + virUSBDevicePtr usb = NULL; + int ret = -1; if (hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS) - return -1; + goto cleanup; if (hostdev->source.subsys.type != VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_USB) - return -1; + goto cleanup; - if (usbsrc->bus <= 0 || usbsrc->device <= 0) { - virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("libxenlight supports only USB device " - "specified by busnum:devnum")); - return -1; + if (usbsrc->bus > 0 && usbsrc->device > 0) { + usbdev->u.hostdev.hostbus = usbsrc->bus; + usbdev->u.hostdev.hostaddr = usbsrc->device; + } else { + if (virHostdevFindUSBDevice(hostdev, true, &usb) < 0) { + virReportError(VIR_ERR_OPERATION_FAILED, + _("failed to find USB device busnum:devnum " + "for %x:%x"), + usbsrc->vendor, usbsrc->product); + goto cleanup; + } + + usbdev->u.hostdev.hostbus = virUSBDeviceGetBus(usb); + usbdev->u.hostdev.hostaddr = virUSBDeviceGetDevno(usb); } - usbdev->u.hostdev.hostbus = usbsrc->bus; - usbdev->u.hostdev.hostaddr = usbsrc->device; + ret = 0; + + cleanup: + virUSBDeviceFree(usb); - return 0; + return ret; } static int ++++++ lxc-wait-after-eth-del.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -13,10 +13,10 @@ src/lxc/lxc_process.c | 1 + 3 files changed, 4 insertions(+) -Index: libvirt-2.0.0/src/lxc/lxc_controller.c +Index: libvirt-2.1.0/src/lxc/lxc_controller.c =================================================================== ---- libvirt-2.0.0.orig/src/lxc/lxc_controller.c -+++ libvirt-2.0.0/src/lxc/lxc_controller.c +--- libvirt-2.1.0.orig/src/lxc/lxc_controller.c ++++ libvirt-2.1.0/src/lxc/lxc_controller.c @@ -2009,6 +2009,7 @@ static int virLXCControllerDeleteInterfa if (virNetDevVethDelete(ctrl->veths[i]) < 0) ret = -1; @@ -25,11 +25,11 @@ return ret; } -Index: libvirt-2.0.0/src/lxc/lxc_driver.c +Index: libvirt-2.1.0/src/lxc/lxc_driver.c =================================================================== ---- libvirt-2.0.0.orig/src/lxc/lxc_driver.c -+++ libvirt-2.0.0/src/lxc/lxc_driver.c -@@ -4026,6 +4026,7 @@ lxcDomainAttachDeviceNetLive(virConnectP +--- libvirt-2.1.0.orig/src/lxc/lxc_driver.c ++++ libvirt-2.1.0/src/lxc/lxc_driver.c +@@ -4025,6 +4025,7 @@ lxcDomainAttachDeviceNetLive(virConnectP case VIR_DOMAIN_NET_TYPE_NETWORK: case VIR_DOMAIN_NET_TYPE_ETHERNET: ignore_value(virNetDevVethDelete(veth)); @@ -37,7 +37,7 @@ break; case VIR_DOMAIN_NET_TYPE_DIRECT: -@@ -4455,6 +4456,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb +@@ -4454,6 +4455,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb virDomainAuditNet(vm, detach, NULL, "detach", false); goto cleanup; } @@ -45,10 +45,10 @@ break; /* It'd be nice to support this, but with macvlan -Index: libvirt-2.0.0/src/lxc/lxc_process.c +Index: libvirt-2.1.0/src/lxc/lxc_process.c =================================================================== ---- libvirt-2.0.0.orig/src/lxc/lxc_process.c -+++ libvirt-2.0.0/src/lxc/lxc_process.c +--- libvirt-2.1.0.orig/src/lxc/lxc_process.c ++++ libvirt-2.1.0/src/lxc/lxc_process.c @@ -221,6 +221,7 @@ static void virLXCProcessCleanup(virLXCD } networkReleaseActualDevice(vm->def, iface); ++++++ pci-use-driver-override-sysfs.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -29,10 +29,10 @@ src/util/virpci.c | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 149 insertions(+), 2 deletions(-) -Index: libvirt-2.0.0/src/util/virpci.c +Index: libvirt-2.1.0/src/util/virpci.c =================================================================== ---- libvirt-2.0.0.orig/src/util/virpci.c -+++ libvirt-2.0.0/src/util/virpci.c +--- libvirt-2.1.0.orig/src/util/virpci.c ++++ libvirt-2.1.0/src/util/virpci.c @@ -1089,8 +1089,54 @@ virPCIDeviceUnbind(virPCIDevicePtr dev) return ret; } ++++++ ppc64le-canonical-name.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -2,10 +2,10 @@ See bnc#894956 -Index: libvirt-2.0.0/src/util/virarch.c +Index: libvirt-2.1.0/src/util/virarch.c =================================================================== ---- libvirt-2.0.0.orig/src/util/virarch.c -+++ libvirt-2.0.0/src/util/virarch.c +--- libvirt-2.1.0.orig/src/util/virarch.c ++++ libvirt-2.1.0/src/util/virarch.c @@ -169,6 +169,8 @@ virArch virArchFromHost(void) arch = VIR_ARCH_I686; } else if (STREQ(ut.machine, "amd64")) { ++++++ qemu-apparmor-screenshot.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,7 +1,7 @@ -Index: libvirt-2.0.0/examples/apparmor/libvirt-qemu +Index: libvirt-2.1.0/examples/apparmor/libvirt-qemu =================================================================== ---- libvirt-2.0.0.orig/examples/apparmor/libvirt-qemu -+++ libvirt-2.0.0/examples/apparmor/libvirt-qemu +--- libvirt-2.1.0.orig/examples/apparmor/libvirt-qemu ++++ libvirt-2.1.0/examples/apparmor/libvirt-qemu @@ -151,3 +151,6 @@ /etc/udev/udev.conf r, /sys/bus/ r, ++++++ support-managed-pci-xen-driver.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -8,10 +8,10 @@ src/xenxs/xen_xm.c | 28 +++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 15 deletions(-) -Index: libvirt-2.0.0/src/xenconfig/xen_common.c +Index: libvirt-2.1.0/src/xenconfig/xen_common.c =================================================================== ---- libvirt-2.0.0.orig/src/xenconfig/xen_common.c -+++ libvirt-2.0.0/src/xenconfig/xen_common.c +--- libvirt-2.1.0.orig/src/xenconfig/xen_common.c ++++ libvirt-2.1.0/src/xenconfig/xen_common.c @@ -394,6 +394,8 @@ xenParsePCI(virConfPtr conf, virDomainDe { virConfValuePtr list = virConfGetValue(conf, "pci"); @@ -66,10 +66,10 @@ 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.0.0/src/xenconfig/xen_sxpr.c +Index: libvirt-2.1.0/src/xenconfig/xen_sxpr.c =================================================================== ---- libvirt-2.0.0.orig/src/xenconfig/xen_sxpr.c -+++ libvirt-2.0.0/src/xenconfig/xen_sxpr.c +--- libvirt-2.1.0.orig/src/xenconfig/xen_sxpr.c ++++ libvirt-2.1.0/src/xenconfig/xen_sxpr.c @@ -1062,6 +1062,7 @@ xenParseSxprPCI(virDomainDefPtr def, int busID; int slotID; ++++++ suse-qemu-conf.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -7,10 +7,10 @@ etc.), but for now they are all lumped together in this single patch. -Index: libvirt-2.0.0/src/qemu/qemu.conf +Index: libvirt-2.1.0/src/qemu/qemu.conf =================================================================== ---- libvirt-2.0.0.orig/src/qemu/qemu.conf -+++ libvirt-2.0.0/src/qemu/qemu.conf +--- libvirt-2.1.0.orig/src/qemu/qemu.conf ++++ libvirt-2.1.0/src/qemu/qemu.conf @@ -212,11 +212,20 @@ # isolation, but it cannot appear in a list of drivers. # ++++++ systemd-service-xen.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,7 +1,7 @@ -Index: libvirt-2.0.0/daemon/libvirtd.service.in +Index: libvirt-2.1.0/daemon/libvirtd.service.in =================================================================== ---- libvirt-2.0.0.orig/daemon/libvirtd.service.in -+++ libvirt-2.0.0/daemon/libvirtd.service.in +--- libvirt-2.1.0.orig/daemon/libvirtd.service.in ++++ libvirt-2.1.0/daemon/libvirtd.service.in @@ -12,6 +12,7 @@ After=iscsid.service After=apparmor.service After=local-fs.target ++++++ virHostdevFindUSBDevice-privsyms.patch ++++++ commit e05e2dba970d3f4b5ec9bed80a7f0bb4ccc43dc8 Author: Cédric Bosdonnat <[email protected]> Date: Fri Aug 5 09:10:49 2016 +0200 Add virHostdevFindUSBDevice to private symbols Finding an USB device from the vendor/device values will be needed by libxl driver to convert from vendor/device to bus/dev addresses. Index: libvirt-2.1.0/src/libvirt_private.syms =================================================================== --- libvirt-2.1.0.orig/src/libvirt_private.syms +++ libvirt-2.1.0/src/libvirt_private.syms @@ -1641,6 +1641,7 @@ virHookPresent; # util/virhostdev.h +virHostdevFindUSBDevice; virHostdevManagerGetDefault; virHostdevPCINodeDeviceDetach; virHostdevPCINodeDeviceReAttach; Index: libvirt-2.1.0/src/util/virhostdev.c =================================================================== --- libvirt-2.1.0.orig/src/util/virhostdev.c +++ libvirt-2.1.0/src/util/virhostdev.c @@ -1178,7 +1178,7 @@ virHostdevMarkUSBDevices(virHostdevManag } -static int +int virHostdevFindUSBDevice(virDomainHostdevDefPtr hostdev, bool mandatory, virUSBDevicePtr *usb) Index: libvirt-2.1.0/src/util/virhostdev.h =================================================================== --- libvirt-2.1.0.orig/src/util/virhostdev.h +++ libvirt-2.1.0/src/util/virhostdev.h @@ -66,6 +66,12 @@ virHostdevPreparePCIDevices(virHostdevMa unsigned int flags) ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4); + +int +virHostdevFindUSBDevice(virDomainHostdevDefPtr hostdev, + bool mandatory, + virUSBDevicePtr *usb) + ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3); int virHostdevPrepareUSBDevices(virHostdevManagerPtr hostdev_mgr, const char *drv_name, ++++++ virtlockd-init-script.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,9 +1,9 @@ Adjust virtlockd init files to conform to SUSE standards -Index: libvirt-2.0.0/src/locking/virtlockd.sysconf +Index: libvirt-2.1.0/src/locking/virtlockd.sysconf =================================================================== ---- libvirt-2.0.0.orig/src/locking/virtlockd.sysconf -+++ libvirt-2.0.0/src/locking/virtlockd.sysconf +--- libvirt-2.1.0.orig/src/locking/virtlockd.sysconf ++++ libvirt-2.1.0/src/locking/virtlockd.sysconf @@ -1,3 +1,7 @@ +## Path: System/Virtualization/virtlockd + @@ -12,10 +12,10 @@ # # Pass extra arguments to virtlockd #VIRTLOCKD_ARGS= -Index: libvirt-2.0.0/src/locking/virtlockd.init.in +Index: libvirt-2.1.0/src/locking/virtlockd.init.in =================================================================== ---- libvirt-2.0.0.orig/src/locking/virtlockd.init.in -+++ libvirt-2.0.0/src/locking/virtlockd.init.in +--- libvirt-2.1.0.orig/src/locking/virtlockd.init.in ++++ libvirt-2.1.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 # ++++++ virtlogd-init-script.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,9 +1,9 @@ Adjust virtlogd init files to conform to SUSE standards -Index: libvirt-2.0.0/src/logging/virtlogd.init.in +Index: libvirt-2.1.0/src/logging/virtlogd.init.in =================================================================== ---- libvirt-2.0.0.orig/src/logging/virtlogd.init.in -+++ libvirt-2.0.0/src/logging/virtlogd.init.in +--- libvirt-2.1.0.orig/src/logging/virtlogd.init.in ++++ libvirt-2.1.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 @@ esac -exit $RETVAL +rc_exit -Index: libvirt-2.0.0/src/logging/virtlogd.sysconf +Index: libvirt-2.1.0/src/logging/virtlogd.sysconf =================================================================== ---- libvirt-2.0.0.orig/src/logging/virtlogd.sysconf -+++ libvirt-2.0.0/src/logging/virtlogd.sysconf +--- libvirt-2.1.0.orig/src/logging/virtlogd.sysconf ++++ libvirt-2.1.0/src/logging/virtlogd.sysconf @@ -1,3 +1,7 @@ +## Path: System/Virtualization/virtlogd + ++++++ xen-pv-cdrom.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -1,7 +1,7 @@ -Index: libvirt-2.0.0/src/xenconfig/xen_sxpr.c +Index: libvirt-2.1.0/src/xenconfig/xen_sxpr.c =================================================================== ---- libvirt-2.0.0.orig/src/xenconfig/xen_sxpr.c -+++ libvirt-2.0.0/src/xenconfig/xen_sxpr.c +--- libvirt-2.1.0.orig/src/xenconfig/xen_sxpr.c ++++ libvirt-2.1.0/src/xenconfig/xen_sxpr.c @@ -392,7 +392,7 @@ xenParseSxprVifRate(const char *rate, un static int xenParseSxprDisks(virDomainDefPtr def, ++++++ xen-sxpr-disk-type.patch ++++++ --- /var/tmp/diff_new_pack.1yqjjK/_old 2016-08-29 15:35:38.000000000 +0200 +++ /var/tmp/diff_new_pack.1yqjjK/_new 2016-08-29 15:35:38.000000000 +0200 @@ -6,10 +6,10 @@ https://bugzilla.suse.com/show_bug.cgi?id=938228 -Index: libvirt-2.0.0/src/xenconfig/xen_sxpr.c +Index: libvirt-2.1.0/src/xenconfig/xen_sxpr.c =================================================================== ---- libvirt-2.0.0.orig/src/xenconfig/xen_sxpr.c -+++ libvirt-2.0.0/src/xenconfig/xen_sxpr.c +--- libvirt-2.1.0.orig/src/xenconfig/xen_sxpr.c ++++ libvirt-2.1.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 */
