1. 12 4月, 2019 11 次提交
    • P
      virresctrl: fix MBA memory leak · e3c4befe
      Pavel Hrdina 提交于
      The 'bandwidths' variable is allocated using VIR_RESIZE_N so it has to
      be freed as well.
      
      ==118315== 8 bytes in 1 blocks are definitely lost in loss record 299 of 2,401
      ==118315==    at 0x4C29DAD: malloc (vg_replace_malloc.c:308)
      ==118315==    by 0x4C2C100: realloc (vg_replace_malloc.c:836)
      ==118315==    by 0x52C3FAF: virReallocN (viralloc.c:245)
      ==118315==    by 0x52C4079: virExpandN (viralloc.c:294)
      ==118315==    by 0x532BBA8: virResctrlAllocParseProcessMemoryBandwidth (virresctrl.c:1156)
      ==118315==    by 0x532BBA8: virResctrlAllocParseMemoryBandwidthLine (virresctrl.c:1211)
      ==118315==    by 0x532BBA8: virResctrlAllocParse (virresctrl.c:1414)
      ==118315==    by 0x532BBA8: virResctrlAllocGetGroup (virresctrl.c:1446)
      ==118315==    by 0x532C11D: virResctrlAllocGetDefault (virresctrl.c:1464)
      ==118315==    by 0x532D15E: virResctrlAllocAssign (virresctrl.c:1923)
      ==118315==    by 0x532D15E: virResctrlAllocCreate (virresctrl.c:2042)
      ==118315==    by 0x31E1ABEE: qemuProcessResctrlCreate (qemu_process.c:2596)
      ==118315==    by 0x31E1ABEE: qemuProcessLaunch (qemu_process.c:6444)
      ==118315==    by 0x31E1E341: qemuProcessStart (qemu_process.c:6721)
      ==118315==    by 0x31E81315: qemuDomainObjStart.constprop.50 (qemu_driver.c:7288)
      ==118315==    by 0x31E81A65: qemuDomainCreateWithFlags (qemu_driver.c:7341)
      ==118315==    by 0x54DDB4B: virDomainCreate (libvirt-domain.c:6534)
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      e3c4befe
    • A
      m4: sasl: Use pkg-config · ab6f29c6
      Andrea Bolognani 提交于
      Since commit 4e75b0a0 we support SASL 2.1.26 and newer
      releases only, all of which ship a .pc file. Using pkg-config
      allows FreeBSD builds to pick up the dependency automatically.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      ab6f29c6
    • A
      src: Include SASL_CFLAGS where appropriate · 4637048f
      Andrea Bolognani 提交于
      A bunch of files include src/rpc/virnetsaslcontext.h, which
      in turn includes <sasl/sasl.h>, and without the corresponding
      CFLAGS the compiler can't locate the latter if it happens to
      be installed outside of the default include path as is the
      case, for example, on FreeBSD.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      4637048f
    • L
      build: set --without-firewalld-zone in configure commandline for Fedora 30 · 65b08aff
      Laine Stump 提交于
      The firewalld package in Fedora 30 didn't get support for rich rule
      priorities, which is required by the libvirt zonefile that's installed
      when the build is configured with --with-firewalld-zone, so we need to
      set --without-firewalld-zone for that version of Fedora. The needed
      feature is already upstream in firewalld, so it just needs another
      upstream release to be there. Let's be optimistic and assume that will
      happen prior to F31.
      
      Resolves: https://bugzilla.redhat.com/1699051Signed-off-by: NLaine Stump <laine@laine.org>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Acked-by: NEric Garver <eric@garver.life>
      65b08aff
    • D
      travis: put macOS script inline in the macOS matrix entry · c05927b9
      Daniel P. Berrangé 提交于
      Now that we don't have separate scripts defined for native and mingw
      builds, there is no point having one for macOS. It can just be inlined
      at the one place it is needed.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      c05927b9
    • D
      travis: remove display of test-suite.log from macOS · c939378c
      Daniel P. Berrangé 提交于
      We are not running "make check" on macOS, so the commands to cat the
      test-suite.log are not useful.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      c939378c
    • D
      travis: use declarative syntax for Homebrew packages · a3005a88
      Daniel P. Berrangé 提交于
      Instead of running custom commands use the new declarative syntax for
      listing extra Homebrew packages.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      a3005a88
    • D
      travis: convert Ubuntu, CentOS & MinGW builds to use new make rules · d66ac6e5
      Daniel P. Berrangé 提交于
      Change the Travis CI configuration to invoke the new ci-build@$IMAGE
      target instead of directly running Docker. This guarantees that when a
      developer runs ci-build@$IMAGE locally, the container build setup is
      identical to that used in Travis CI, with exception of the host kernel
      and Docker version.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      d66ac6e5
    • D
      tests: add targets for building libvirt inside Docker containers · 89f8902a
      Daniel P. Berrangé 提交于
      The Travis CI system uses Docker containers for its build environment.
      These are pre-built and hosted under quay.io/libvirt so that developers
      can use them for reproducing problems locally.
      
      Getting the right Docker command syntax to use them, however, is not
      entirely easy. This patch addresses that usability issue by introducing
      some make targets. To run a simple build (aka 'make all') using the
      Fedora 28 container:
      
         make ci-build@fedora-28
      
      To also run unit tests
      
         make ci-check@fedora-28
      
      This is just syntax sugar for calling the previous command with a
      custom make target
      
         make ci-build@fedora-28 CI_MAKE_ARGS="check"
      
      To do a purely interactive build it is possible to request a shell
      
         make ci-shell@fedora-28
      
      To do a MinGW build, it is currently possible to use the fedora-rawhide
      image and request a different configure script
      
         make ci-build@fedora-rawhide CI_CONFIGURE=mingw32-configure
      
      It is also possible to do cross compiled builds via the Debian containers
      
         make ci-build@debian-9-cross-s390x
      
      In all cases the GIT source tree is cloned locally into a 'ci-tree/src'
      sub-directory which is then exposed to the container at '/src'. It is
      setup to use a separate build directory so the build takes place in a
      subdir '/src/build'. A source tree build can be requested instead
      by passing an empty string CI_VPATH= arg to make.
      
      The make rules are kept in a standalone file that is included into the
      main Makefile.am, so that it is possible to run them without having to
      invoke autotools first.
      
      It is neccessary to disable the gnulib submodule commit check because
      this fails due to the way we have manually cloned submodule repos as
      primary git repos with their own .git directory, instead of letting
      git treat them as submodules in the top level .git directory.
      
        make[1]: Entering directory '/src/build'
        fatal: Not a valid object name origin
        fatal: run_command returned non-zero status for .gnulib
        .
        maint.mk: found non-public submodule commit
        make: *** [/src/maint.mk:1448: public-submodule-commit] Error 1
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      89f8902a
    • C
      cfg.mk: Only force _LAST enum on VIR_ENUM_IMPL second line · 8ca1979e
      Cole Robinson 提交于
      Drop the checking for _LAST optionally on the first line, previous
      patch removed all those instances
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      8ca1979e
    • C
      Always put _LAST enums on second line of VIR_ENUM_IMPL · 1d31526b
      Cole Robinson 提交于
      Standardize on putting the _LAST enum value on the second line
      of VIR_ENUM_IMPL invocations. Later patches that add string labels
      to VIR_ENUM_IMPL will push most of these to the second line anyways,
      so this saves some noise.
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      1d31526b
  2. 11 4月, 2019 19 次提交
  3. 10 4月, 2019 10 次提交