1. 04 2月, 2020 2 次提交
  2. 30 1月, 2020 1 次提交
  3. 29 1月, 2020 2 次提交
  4. 27 1月, 2020 1 次提交
    • D
      libvirt: pass a directory path into drivers for embedded usage · 207709a0
      Daniel P. Berrangé 提交于
      The intent here is to allow the virt drivers to be run directly embedded
      in an arbitrary process without interfering with libvirtd. To achieve
      this they need to store all their configuration & state in a separate
      directory tree from the main system or session libvirtd instances.
      
      This can be useful for doing testing of the virt drivers in "make check"
      without interfering with the user's own libvirtd instances.
      
      It can also be used for applications using KVM/QEMU as a piece of
      infrastructure to build an service, rather than for general purpose
      OS hosting. A long standing example is libguestfs, which would prefer
      if its temporary VMs did show up in the main libvirtd VM list, because
      this confuses apps such as OpenStack Nova. A more recent example would
      be Kata which is using KVM as a technology to build containers.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NCole Robinson <crobinso@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      207709a0
  5. 17 1月, 2020 1 次提交
  6. 07 1月, 2020 1 次提交
  7. 03 1月, 2020 5 次提交
  8. 24 12月, 2019 3 次提交
  9. 23 12月, 2019 1 次提交
    • Y
      storage: Fix daemon crash on lookup storagepool by targetpath · dfff16a7
      Yi Li 提交于
      Causing a crash when storagePoolLookupByTargetPath beacuse of
      Some types of storage pool have no target elements.
      Use STREQ_NULLABLE instead of STREQ
      Avoids segfaults when using NULL arguments.
      
      Core was generated by `/usr/sbin/libvirtd'.
      Program terminated with signal 11, Segmentation fault.
      (gdb) bt
      0  0x0000ffff9e951388 in strcmp () from /lib64/libc.so.6
      1  0x0000ffff92103e9c in storagePoolLookupByTargetPathCallback (
          obj=0xffff7009aab0, opaque=0xffff801058b0) at storage/storage_driver.c:1649
      2  0x0000ffff9f2c52a4 in virStoragePoolObjListSearchCb (
          payload=0xffff801058b0, name=<optimized out>, opaque=<optimized out>)
          at conf/virstorageobj.c:476
      3  0x0000ffff9f1f2f7c in virHashSearch (ctable=0xffff800f4f60,
          iter=iter@entry=0xffff9f2c5278 <virStoragePoolObjListSearchCb>,
          data=data@entry=0xffff95af7488, name=name@entry=0x0) at util/virhash.c:696
      4  0x0000ffff9f2c64f0 in virStoragePoolObjListSearch (pools=0xffff800f2ce0,
          searcher=searcher@entry=0xffff92103e68 <storagePoolLookupByTargetPathCallback>,
           opaque=<optimized out>) at conf/virstorageobj.c:505
      5  0x0000ffff92101f54 in storagePoolLookupByTargetPath (conn=0xffff5c0009f0,
      path=0xffff7009a850 "/vms/images") at storage/storage_driver.c:1672
      Reviewed-by: NCole Robinson <crobinso@redhat.com>
      Signed-off-by: NYi Li <yili@winhong.com>
      dfff16a7
  10. 20 12月, 2019 2 次提交
  11. 16 12月, 2019 1 次提交
    • M
      configure: Provide OpenRC scripts for sub-daemons · 49c6fe62
      Michal Privoznik 提交于
      There is plenty of distributions that haven't switched to
      systemd nor they force their users to (Gentoo, Alpine Linux to
      name a few). With the daemon split merged their only option is to
      still use the monolithic daemon which will go away eventually.
      Provide init scripts for these distros too.
      
      For now, I'm not introducing config files which would correspond
      to the init files except for libvirtd and virtproxyd init scripts
      where it might be desirable to tweak the command line of
      corresponding daemons.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      49c6fe62
  12. 10 12月, 2019 1 次提交
  13. 03 12月, 2019 1 次提交
  14. 26 11月, 2019 1 次提交
  15. 19 11月, 2019 1 次提交
  16. 15 11月, 2019 5 次提交
  17. 13 11月, 2019 1 次提交
  18. 12 11月, 2019 5 次提交
  19. 09 11月, 2019 2 次提交
  20. 25 10月, 2019 1 次提交
  21. 24 10月, 2019 1 次提交
    • M
      Drop needless ret variable · 3b4df5d3
      Michal Privoznik 提交于
      In few places we have the following code pattern:
      
        int ret;
        ... /* @ret is not accessed here */
        ret = f(...);
        return ret;
      
      This pattern can be written less verbose:
      
        ...
        return f(...);
      
      This patch was generated with following coccinelle spatch:
      
        @@
        type T;
        constant C;
        expression f;
        identifier ret;
        @@
        -T ret = C;
         ... when != ret
        -ret = f;
        -return ret;
        +return f;
      
      Afterwards I needed to fix a few places, e.g. comment in
      virDomainNetIPParseXML() was removed too because coccinelle
      thinks it refers to @ret while in fact it doesn't. Also in few
      places it replaced @ret declaration with a few spaces instead of
      removing the line. But nothing terribly wrong.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      3b4df5d3
  22. 21 10月, 2019 1 次提交