1. 06 12月, 2016 3 次提交
  2. 02 12月, 2016 1 次提交
  3. 01 12月, 2016 2 次提交
    • L
      util: new function virPCIDeviceGetConfigPath() · bfdc1451
      Laine Stump 提交于
      The path to the config file for a PCI device is conventiently stored
      in a virPCIDevice object, but that object's contents aren't directly
      visible outside of virpci.c, so we need to have an accessor function
      for it if anyone needs to look at it.
      bfdc1451
    • L
      util: new function virFileLength() · e026563f
      Laine Stump 提交于
      This new function just calls fstat() (if provided with a valid fd) or
      stat() (if fd is -1) and returns st_size (or -1 if there is an
      error). We may decide we want this function to be more complex, and
      handle things like block devices - this is a placeholder (that works)
      for any more complicated function.
      e026563f
  4. 25 11月, 2016 2 次提交
    • M
      virstring: Unify string list function names · c2a5a4e7
      Michal Privoznik 提交于
      We have couple of functions that operate over NULL terminated
      lits of strings. However, our naming sucks:
      
      virStringJoin
      virStringFreeList
      virStringFreeListCount
      virStringArrayHasString
      virStringGetFirstWithPrefix
      
      We can do better:
      
      virStringListJoin
      virStringListFree
      virStringListFreeCount
      virStringListHasString
      virStringListGetFirstWithPrefix
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      c2a5a4e7
    • E
      util: Management routines for scsi_host devices · 629544be
      Eric Farman 提交于
      For a new hostdev type='scsi_host' we have a number of
      required functions for managing, adding, and removing the
      host device to/from guests.  Provide the basic infrastructure
      for these tasks.
      
      The name "SCSIVHost" (and its variants) is chosen to avoid
      conflicts with existing code named "SCSIHost" to refer to
      a hostdev type='scsi' protcol='none'.
      Signed-off-by: NEric Farman <farman@linux.vnet.ibm.com>
      629544be
  5. 24 11月, 2016 3 次提交
  6. 23 11月, 2016 1 次提交
    • N
      libvirtd: systemd: add special target for system shutdown · 01079727
      Nikolay Shirokovskiy 提交于
      It is already discussed in "[RFC] daemon: remove hardcode dep on libvirt-guests" [1].
      
      Mgmt can use means to save/restore domains on system shutdown/boot other than
      libvirt-guests.service. Thus we need to specify appropriate ordering dependency between
      libvirtd, domains and save/restore service. This patch takes approach suggested
      in RFC and introduces a systemd target, so that ordering can be built next way:
      
      libvirtd -> domain -> virt-guest-shutdown.target -> save-restore.service.
      
      This way domains are decoupled from specific shutdown service via intermediate
      target.
      
      [1] https://www.redhat.com/archives/libvir-list/2016-September/msg01353.html
      01079727
  7. 22 11月, 2016 2 次提交
  8. 21 11月, 2016 1 次提交
  9. 18 11月, 2016 1 次提交
    • M
      Fix scheduler support check · f2bf5fbb
      Martin Kletzander 提交于
      Commit 94cc5778 tried fixing build on systems that did not have
      SCHED_BATCH or SCHED_IDLE defined.  But instead of changing it to
      conditional support, it rather completely disabled the support for
      setting any scheduler.  Since then, such old systems are not
      supported, but rather than reverting that commit, let's change that to
      the conditional support.  That way any addition to the list of
      schedulers can follow the same style so that we're consistent in the
      future.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      f2bf5fbb
  10. 15 11月, 2016 1 次提交
  11. 09 11月, 2016 1 次提交
  12. 20 10月, 2016 1 次提交
  13. 14 10月, 2016 2 次提交
    • J
      util: Alter return value of virReadFCHost and fix mem leak · f29b13f8
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1357416
      
      Rather than return a 0 or -1 and the *result string, return just the result
      string to the caller.  Alter all the callers to handle the different return.
      
      As a side effect or result of this, it's much clearer that we cannot just
      assign the returned string into the scsi_host wwnn, wwpn, and fabric_wwn
      fields - rather we should fetch a temporary string, then as long as our
      fetch was good, VIR_FREE what may have been there, and STEAL what we just got.
      This fixes a memory leak in the virNodeDeviceCreateXML code path through
      find_new_device and nodeDeviceLookupSCSIHostByWWN which will continually
      call nodeDeviceSysfsGetSCSIHostCaps until the expected wwnn/wwpn is found
      in the device object capabilities.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f29b13f8
    • M
      virLogDefineOutputs: Fix build without syslog.h · a564568f
      Michal Privoznik 提交于
      Not every system out there has syslog, that's why we check for it
      in our configure script. However, in 640b58ab while fixing
      another issue, some variables and functions are called that are
      defined only when syslog.h is present. But these function
      calls/variables were not guarded by #ifdef-s.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      a564568f
  14. 13 10月, 2016 1 次提交
    • M
      src: Treat PID as signed · b7d2d4af
      Michal Privoznik 提交于
      This initially started as a fix of some debug printing in
      virCgroupDetect. However it turned out that other places suffer
      from the similar problem. While dealing with pids, esp. in cases
      where we cannot use pid_t for ABI stability reasons, we often
      chose an unsigned integer type. This makes no sense as pid_t is
      signed.
      Also, new syntax-check rule is introduced so we won't repeat this
      mistake.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      b7d2d4af
  15. 12 10月, 2016 1 次提交
  16. 11 10月, 2016 2 次提交
  17. 10 10月, 2016 15 次提交