1. 18 9月, 2015 6 次提交
  2. 17 9月, 2015 2 次提交
    • C
      libxl: fix AttachDeviceConfig on hostdev type · 56945e13
      Chunyan Liu 提交于
      After attach-device a <hostdev> with --config, new device doesn't
      show up in dumpxml and in guest.
      
      To fix that, set dev->data.hostdev = NULL after work so that the
      pointer is not freed, since vmdef has the pointer and still need it.
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      56945e13
    • M
      vmx: Expose datacenter path in domain XML · 636a9905
      Matthias Bolte 提交于
      Tool such as libguestfs need the datacenter path to get access to disk
      images. The ESX driver knows the correct datacenter path, but this
      information cannot be accessed using libvirt API yet. Also, it cannot
      be deduced from the connection URI in a robust way.
      
      Expose the datacenter path in the domain XML as <vmware:datacenterpath>
      node similar to the way the <qemu:commandline> node works. The new node
      is ignored while parsing the domain XML. In contrast to <qemu:commandline>
      it is output only.
      636a9905
  3. 16 9月, 2015 5 次提交
    • J
      virfile: Check for existence of dir in virFileDeleteTree · b421a708
      John Ferlan 提交于
      Commit id 'f1f68ca3' added code to remove the directory paths for
      auto-generated sockets, but that code could be called before the
      paths were created resulting in generating error messages from
      virFileDeleteTree indicating that the file doesn't exist.
      
      Rather than "enforce" all callers to make the non-NULL and existence
      checks, modify the virFileDeleteTree API to silently ignore NULL on
      input and non-existent directory trees.
      b421a708
    • M
      virsh: Teach attach-interface to --print-xml · 41d4104d
      Michal Privoznik 提交于
      We have the same argument to many other commands that produce an
      XML based on what user typed. But unfortunately attach-interface
      was missing it. Maybe nobody had needed it yet. Well, I did
      just now.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      41d4104d
    • A
      qemu: Fix using guest architecture as lookup key · eb36666d
      Andrea Bolognani 提交于
      When looking for a QEMU binary suitable for running ppc64le guests
      we have to take into account the fact that we use the QEMU target
      as key for the hash, so direct comparison is not good enough.
      
      Factor out the logic from virQEMUCapsFindBinaryForArch() to a new
      virQEMUCapsFindTarget() function and use that both when looking
      for QEMU binaries available on the system and when looking up
      QEMU capabilities later.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1260753
      eb36666d
    • J
      libxl: fix compiler error introduced by commit ba25c214 · a4604eb0
      Jim Fehlig 提交于
      libxl/libxl_conf.c: In function 'libxlDriverConfigNew':
      libxl/libxl_conf.c:1560:30: error: 'log_level' may be used uninitialized
      in this function [-Werror=maybe-uninitialized]
      a4604eb0
    • J
      libxl: open libxl log stream with libvirtd log_level · ba25c214
      Jim Fehlig 提交于
      Instead of a hardcoded DEBUG log level, use the overall
      daemon log level specified in libvirtd.conf when opening
      a log stream with libxl. libxl is very verbose when DEBUG
      log level is set, resulting in huge log files that can
      potentially fill a disk. Control of libxl verbosity should
      be placed in the administrator's hands.
      ba25c214
  4. 15 9月, 2015 6 次提交
  5. 14 9月, 2015 4 次提交
  6. 12 9月, 2015 2 次提交
    • C
      qemu: command: Report stderr from qemu-bridge-helper · db35beaa
      Cole Robinson 提交于
      There's a couple reports of things failing in this area (bug 1259070),
      but it's tough to tell what's going wrong without stderr from
      qemu-bridge-helper. So let's report stderr in the error message
      
      Couple new examples:
      
      virbr0 is inactive:
      internal error: /usr/libexec/qemu-bridge-helper --use-vnet --br=virbr0 --fd=21: failed to communicate with bridge helper: Transport endpoint is not connected
      stderr=failed to get mtu of bridge `virbr0': No such device
      
      bridge isn't on the ACL:
      internal error: /usr/libexec/qemu-bridge-helper --use-vnet --br=br0 --fd=21: failed to communicate with bridge helper: Transport endpoint is not connected
      stderr=access denied by acl file
      db35beaa
    • D
      xen: fix race in refresh of config cache · 427067f7
      Daniel P. Berrange 提交于
      The xenXMConfigCacheRefresh method scans /etc/xen and loads
      all config files it finds. It then scans its internal hash
      table and purges any (previously) loaded config files whose
      refresh timestamp does not match the timestamp recorded at
      the start of xenXMConfigCacheRefresh(). There is unfortunately
      a subtle flaw in this, because if loading the config files
      takes longer than 1 second, some of the config files will
      have a refresh timestamp that is 1 or more seconds different
      (newer) than is checked for. So we immediately purge a bunch
      of valid config files we just loaded.
      
      To avoid this flaw, we must pass the timestamp we record at
      the start of xenXMConfigCacheRefresh() into the
      xenXMConfigCacheAddFile() method, instead of letting the
      latter call time(NULL) again.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      427067f7
  7. 11 9月, 2015 2 次提交
  8. 10 9月, 2015 5 次提交
  9. 09 9月, 2015 3 次提交
  10. 08 9月, 2015 5 次提交
    • M
      docs: Remove last use of double semicolon in Makefile · 0f3989c1
      Martin Kletzander 提交于
      Double semicolons have special meaning in makefiles, but they would have
      to be combined with other rules witch such separators in order to be
      used as intended.  Since there are no other rules like that, let's
      clean it up.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      0f3989c1
    • M
      util: Add win32 version of virFileUnlink · 26893ac6
      Martin Kletzander 提交于
      Commit 35847860 Added the virFileUnlink function, but failed to add
      a version for mingw build, causing the following error:
      
        Cannot export virFileUnlink: symbol not defined
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      26893ac6
    • L
      conf: fix crash when parsing a unordered NUMA <cell/> · 83ae3ee3
      Luyao Huang 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1260846
      
      Introduced by 8fedbbdb, if we parse an unordered NUMA cell, will
      get a segfault. This is because of a check for overlapping @cpus
      sets we have there. However, since the array to hold guest NUMA
      cells is allocated upfront and therefore it contains all zeros,
      an out of order cell will break our assumption that cell IDs have
      increasing character. At this point we try to access yet NULL
      bitmap and therefore segfault.
      Signed-off-by: NLuyao Huang <lhuang@redhat.com>
      83ae3ee3
    • E
      admin: Resolve leaked reference to private data · ccae95d5
      Erik Skultety 提交于
      Running valgrind on a very simplistic program consisting only of
      opening and closing admin connection (virAdmConnect{Open,Close}) shows a
      leak in remoteAdminPrivNew, because the last reference to privateData is
      not decremented, thus the object won't be disposed. This patch unrefs
      the privateData object once we closed the active connection to daemon,
      making further use of this connection  useless.
      
      ==24577==    at 0x4A089C7: calloc (in /usr/lib64/valgrind/vgpreload_***linux.so)
      ==24577==    by 0x4E8835F: virAllocVar (viralloc.c:560)
      ==24577==    by 0x4EDFA5C: virObjectNew (virobject.c:193)
      ==24577==    by 0x4EDFBD4: virObjectLockableNew (virobject.c:219)
      ==24577==    by 0x4C14DAF: remoteAdminPrivNew (libvirt-admin.c:152)
      ==24577==    by 0x4C1537E: virAdmConnectOpen (libvirt-admin.c:308)
      ==24577==    by 0x400BAD: main (listservers.c:39)
      
      ==24577== LEAK SUMMARY:
      ==24577==    definitely lost: 80 bytes in 1 blocks
      ==24577==    indirectly lost: 840 bytes in 6 blocks
      ==24577==      possibly lost: 0 bytes in 0 blocks
      ==24577==    still reachable: 12,179 bytes in 199 blocks
      ==24577==         suppressed: 0 bytes in 0 blocks
      ccae95d5
    • M