Hello community, here is the log from the commit of package libvirt for openSUSE:Leap:15.2 checked in at 2020-03-31 07:22:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/libvirt (Old) and /work/SRC/openSUSE:Leap:15.2/.libvirt.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libvirt" Tue Mar 31 07:22:21 2020 rev:113 rq:788633 version:6.0.0 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/libvirt/libvirt.changes 2020-03-23 17:26:29.442152466 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.libvirt.new.3160/libvirt.changes 2020-03-31 07:22:31.994402281 +0200 @@ -1,0 +2,8 @@ +Thu Mar 19 22:59:45 UTC 2020 - James Fehlig <[email protected]> + +- libxl: Bump minimum supported Xen version to 4.9, allowing use + of newer libxl APIs for retrieving memory statistics + suse-bump-xen-version.patch + bsc#1157490, bsc#1167007 + +------------------------------------------------------------------- New: ---- suse-bump-xen-version.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libvirt.spec ++++++ --- /var/tmp/diff_new_pack.JLzMMd/_old 2020-03-31 07:22:33.090402757 +0200 +++ /var/tmp/diff_new_pack.JLzMMd/_new 2020-03-31 07:22:33.094402759 +0200 @@ -372,6 +372,7 @@ Patch212: lxc-wait-after-eth-del.patch Patch213: suse-libxl-disable-autoballoon.patch Patch214: suse-xen-ovmf-loaders.patch +Patch215: suse-bump-xen-version.patch # SLES-Only patches %if ! 0%{?is_opensuse} Patch400: virt-create-rootfs.patch @@ -909,6 +910,7 @@ %patch212 -p1 %patch213 -p1 %patch214 -p1 +%patch215 -p1 %if ! 0%{?is_opensuse} %patch400 -p1 %endif ++++++ suse-bump-xen-version.patch ++++++ Bump minimum supported Xen version to 4.9 There were no changes to the libxl API between 4.8 and 4.9, so the LIBXL_API_VERSION is set to 0x040800. Note: xen.git commit c3999835df is needed in any Xen package where this patch is expected to work. It is included in Xen 4.13, but would need backporting to anything older. The dependency on xen.git commit c3999835df makes it hard to upstream this patch. See bsc#1157490 and bsc#1167007 for more details Index: libvirt-6.0.0/m4/virt-driver-libxl.m4 =================================================================== --- libvirt-6.0.0.orig/m4/virt-driver-libxl.m4 +++ libvirt-6.0.0/m4/virt-driver-libxl.m4 @@ -26,11 +26,11 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_LIBXL], [ LIBXL_CFLAGS="" LIBXL_FIRMWARE_DIR="" LIBXL_EXECBIN_DIR="" - LIBXL_API_VERSION="-DLIBXL_API_VERSION=0x040500" + LIBXL_API_VERSION="-DLIBXL_API_VERSION=0x040800" dnl search for libxl, aka libxenlight old_with_libxl="$with_libxl" - LIBVIRT_CHECK_PKG([LIBXL], [xenlight], [4.6.0], [true]) + LIBVIRT_CHECK_PKG([LIBXL], [xenlight], [4.9.0], [true]) if test "x$with_libxl" = "xyes" ; then LIBXL_FIRMWARE_DIR=$($PKG_CONFIG --variable xenfirmwaredir xenlight) LIBXL_EXECBIN_DIR=$($PKG_CONFIG --variable libexec_bin xenlight) Index: libvirt-6.0.0/src/libxl/libxl_conf.c =================================================================== --- libvirt-6.0.0.orig/src/libxl/libxl_conf.c +++ libvirt-6.0.0/src/libxl/libxl_conf.c @@ -1723,7 +1723,7 @@ libxlDriverConfigNew(void) { libxlDriverConfigPtr cfg; char ebuf[1024]; - unsigned int free_mem; + uint64_t free_mem; if (libxlConfigInitialize() < 0) return NULL; Index: libvirt-6.0.0/src/libxl/libxl_domain.c =================================================================== --- libvirt-6.0.0.orig/src/libxl/libxl_domain.c +++ libvirt-6.0.0/src/libxl/libxl_domain.c @@ -1009,8 +1009,8 @@ libxlDomainSetVcpuAffinities(libxlDriver static int libxlDomainFreeMem(libxl_ctx *ctx, libxl_domain_config *d_config) { - uint32_t needed_mem; - uint32_t free_mem; + uint64_t needed_mem; + uint64_t free_mem; int32_t target_mem; int tries = 3; int wait_secs = 10; @@ -1404,7 +1404,7 @@ libxlDomainStart(libxlDriverPrivatePtr d params.stream_version = restore_ver; #endif ret = libxl_domain_create_restore(cfg->ctx, &d_config, &domid, - restore_fd, ¶ms, NULL, + restore_fd, -1, ¶ms, NULL, &aop_console_how); libxl_domain_restore_params_dispose(¶ms); } Index: libvirt-6.0.0/tests/libxlmock.c =================================================================== --- libvirt-6.0.0.orig/tests/libxlmock.c +++ libvirt-6.0.0/tests/libxlmock.c @@ -66,7 +66,7 @@ VIR_MOCK_IMPL_RET_ARGS(libxl_get_version VIR_MOCK_STUB_RET_ARGS(libxl_get_free_memory, int, 0, libxl_ctx *, ctx, - uint32_t *, memkb); + uint64_t *, memkb); VIR_MOCK_STUB_RET_ARGS(xc_interface_close, int, 0,
