1. 27 1月, 2017 3 次提交
  2. 26 1月, 2017 8 次提交
  3. 25 1月, 2017 8 次提交
  4. 24 1月, 2017 2 次提交
  5. 22 1月, 2017 3 次提交
  6. 20 1月, 2017 5 次提交
    • M
      virDomainHostdevSubsysSCSIVHostDefParseXML: Don't leak @protocol · 0cacdc6f
      Michal Privoznik 提交于
      ==24748== 12 bytes in 2 blocks are definitely lost in loss record 25 of 84
      ==24748==    at 0x4C2BF80: malloc (vg_replace_malloc.c:296)
      ==24748==    by 0x1A1E1E78: xmlStrndup (in /usr/lib64/libxml2.so.2.9.4)
      ==24748==    by 0x18D0495F: virXMLPropString (virxml.c:506)
      ==24748==    by 0x18D1FB3E: virDomainHostdevSubsysSCSIVHostDefParseXML (domain_conf.c:6280)
      ==24748==    by 0x18D20350: virDomainHostdevDefParseXMLSubsys (domain_conf.c:6450)
      ==24748==    by 0x18D34E7D: virDomainHostdevDefParseXML (domain_conf.c:13218)
      ==24748==    by 0x18D42598: virDomainDefParseXML (domain_conf.c:17745)
      ==24748==    by 0x18D440A9: virDomainDefParseNode (domain_conf.c:18236)
      ==24748==    by 0x18D43EFA: virDomainDefParse (domain_conf.c:18180)
      ==24748==    by 0x18D43FA0: virDomainDefParseFile (domain_conf.c:18206)
      ==24748==    by 0x44EDA1: testCompareDomXML2XMLFiles (testutils.c:1140)
      ==24748==    by 0x4365F8: testXML2XMLActive (qemuxml2xmltest.c:59)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      0cacdc6f
    • J
      qemu: Reset hostModelInfo in virQEMUCapsReset · 6cb204b7
      Jiri Denemark 提交于
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      6cb204b7
    • M
      qemu: set default vhost-user ifname · 57b5e27d
      Michal Privoznik 提交于
      Based on work of Mehdi Abaakouk <sileht@sileht.net>.
      
      When parsing vhost-user interface XML and no ifname is found we
      can try to fill it in in post parse callback. The way this works
      is we try to make up interface name from given socket path and
      then ask openvswitch whether it knows the interface.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      57b5e27d
    • P
      qemu: hotplug: Properly emit "DEVICE_DELETED" event when unplugging memory · 1d4fd2dd
      Peter Krempa 提交于
      The event needs to be emitted after the last monitor call, so that it's
      not possible to find the device in the XML accidentally while the vm
      object is unlocked.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1414393
      1d4fd2dd
    • R
      bhyve: fix interface type handling for argv2xml · 6a9c7468
      Roman Bogorodskiy 提交于
      When generating a domain XML from native command (i.e. via
      the connectDomainXMLFromNative call), we should use
      interface type 'bridge' rather than 'ethernet' because we only
      support bridges at this point.
      
      As we don't have bridge name explicitly specified on the command line,
      just use 'virbr0' as a default.
      6a9c7468
  7. 19 1月, 2017 10 次提交
    • A
      nss: Remove RES_USE_INET6 usage · 5fff7b99
      Andrea Bolognani 提交于
      The recent deprecation in glibc (commit b76e065991ec) means the
      module will fail to build entirely:
      
        nss/libvirt_nss.c: In function '_nss_libvirt_gethostbyname_r':
        nss/libvirt_nss.c:363:13: error: RES_USE_INET6 is deprecated [-Werror]
           int af = ((_res.options & RES_USE_INET6) ? AF_INET6 : AF_INET);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      This resolver option was removed shortly after being introduced,
      and application using it are already broken anyway.
      5fff7b99
    • D
      storage: avoid use of undefined GLUSTER_CLI variable · 2e045a4f
      Daniel P. Berrange 提交于
      Previous commit tried to change configure logic such that the
      GLUSTER_CLI parameter would always be set:
      
        commit 9e97c8c0
        Author: Peter Krempa <pkrempa@redhat.com>
        Date:   Mon Jan 9 15:56:12 2017 +0100
      
          storage: gluster: Remove build-time dependency on the 'gluster' cli tool
      
      This missed the fact that the AC_PATH_PROG call was itself inside an 'if'
      conditional that would not be called in with_storage_gluster was false. As
      a result, GLUSTER_CLI was still conditionally defined.
      
      Just kill the GLUSTER_CLI parameter and AC_PATH_PROG call entirely and pass a
      bare "gluster" string to virFindFileInPath instead.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      2e045a4f
    • D
      qemu: catch failure of drive_add · b9cc6316
      Daniel P. Berrange 提交于
      Previously when QEMU failed "drive_add" due to an error opening
      a file it would report
      
        "could not open disk image"
      
      These days though, QEMU reports
      
        "Could not open '/tmp/virtd-test_e3hnhh5/disk1.qcow2': Permission denied"
      
      which we were not detecting as an error condition.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      b9cc6316
    • P
      storage: sheepdog: Split out functions required for tests · 01d9c349
      Peter Krempa 提交于
      Separate the headers so that functions only required for testing of the
      sheepdog backend are separated into their own file.
      01d9c349
    • P
      storage: scsi: Remove private constants from header · ebc8564c
      Peter Krempa 提交于
      They are used only in the SCSI backend driver so there's no need to
      pollute the headers.
      ebc8564c
    • P
      storage: scsi: Fix build if SCSI backend is disabled but iSCSI is enabled · 0de123c8
      Peter Krempa 提交于
      The iSCSI backend driver was using stuff from the SCSI driver without
      making sure that it's compiled in. Move the common code into the
      storage_util.c since it does not contain any specific code.
      0de123c8
    • P
      storage: fs: Compile file backends even if filesystem support is disabled · d66dda65
      Peter Krempa 提交于
      The file backend code was mistakenly put into #if WITH_STORAGE_FS. This
      is not necessary since all the backends just access files on disk, and
      thus the code for WITH_STORAGE_DIR is sufficient to compile everything.
      d66dda65
    • P
      storage: Split utility functions from storage_backend.(ch) · 46e8049c
      Peter Krempa 提交于
      The file became a garbage dump for all kinds of utility functions over
      time. Move them to a separate file so that the files can become a clean
      interface for the storage backends.
      46e8049c
    • P
      storage: Remove common code from specific driver backend · 4417481d
      Peter Krempa 提交于
      The storage driver helper functions that deal with parted were put into
      the disk backend code but are used commonly across.
      4417481d
    • J
      tests: fix compilation of shunloadtest · b018ada3
      Jim Fehlig 提交于
      While local builds succeed fine, a build worker building in a
      chroot environment is encountering the following error with
      libvirt 3.0.0 release candidates
      
      [  162s] shunloadtest.o: In function `main':
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:110: undefined reference to `dlopen'
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:114: undefined reference to `dlsym'
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:133: undefined reference to `dlclose'
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:111: undefined reference to `dlerror'
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:115: undefined reference to `dlerror'
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:116: undefined reference to `dlclose'
      
      Fix by appending DLOPEN_LIBS to shunloadtest_LDADD.
      b018ada3
  8. 18 1月, 2017 1 次提交