1. 14 3月, 2020 1 次提交
  2. 05 3月, 2020 1 次提交
  3. 12 2月, 2020 1 次提交
  4. 04 2月, 2020 1 次提交
  5. 30 1月, 2020 1 次提交
  6. 29 1月, 2020 1 次提交
    • D
      util: conditionalize more of virCommand on WIN32 · 19ae6465
      Daniel P. Berrangé 提交于
      A large part of the virCommand code is still built on
      WIN32, despite the fact that the core fork() & execve()
      functions are not available. So despite succesfully
      building most of the code, at runtime the APIs are
      none the less unusuable. With the elimination of GNULIB
      many of the APIs being used in this code no longer have
      portability wrappers/shims for Windows.
      
      Rather than try to add portability wrappers, or do tests
      for each individual function, it is clearer to conditionalize
      nearly all of the code using #ifdef WIN32.
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      19ae6465
  7. 12 12月, 2019 1 次提交
  8. 15 11月, 2019 1 次提交
  9. 13 11月, 2019 1 次提交
  10. 12 11月, 2019 1 次提交
  11. 08 11月, 2019 1 次提交
  12. 25 10月, 2019 2 次提交
  13. 21 10月, 2019 1 次提交
  14. 16 10月, 2019 2 次提交
  15. 15 10月, 2019 1 次提交
  16. 07 8月, 2019 2 次提交
  17. 27 7月, 2019 1 次提交
  18. 26 7月, 2019 4 次提交
  19. 23 7月, 2019 1 次提交
  20. 18 7月, 2019 1 次提交
    • P
      util: command: Ignore bitmap errors when enumerating file descriptors to close · 72834398
      Peter Krempa 提交于
      virCommandMassCloseGetFDsLinux fails when running libvird on valgrind
      with the following message:
      
      libvirt:  error : internal error: unable to set FD as open: 1024
      
      This is because valgrind opens few file descriptors beyond the limit:
      
      65701125 lr-x------. 1 root root 64 Jul 18 14:48 1024 -> /home/pipo/build/libvirt/gcc/src/.libs/libvirtd
      65701126 lrwx------. 1 root root 64 Jul 18 14:48 1025 -> '/tmp/valgrind_proc_3849_cmdline_186612e3 (deleted)'
      65701127 lrwx------. 1 root root 64 Jul 18 14:48 1026 -> '/tmp/valgrind_proc_3849_auxv_186612e3 (deleted)'
      65701128 lrwx------. 1 root root 64 Jul 18 14:48 1027 -> /dev/pts/11
      65701129 lr-x------. 1 root root 64 Jul 18 14:48 1028 -> 'pipe:[65689522]'
      65701130 l-wx------. 1 root root 64 Jul 18 14:48 1029 -> 'pipe:[65689522]'
      65701131 lr-x------. 1 root root 64 Jul 18 14:48 1030 -> /tmp/vgdb-pipe-from-vgdb-to-3849-by-root-on-angien
      
      Ignore bitmap errors in this case since we'd leak those FD's anyways in
      the previous scenario.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      72834398
  21. 16 7月, 2019 2 次提交
  22. 12 7月, 2019 1 次提交
  23. 14 5月, 2019 1 次提交
  24. 10 4月, 2019 1 次提交
  25. 15 3月, 2019 1 次提交
  26. 04 3月, 2019 1 次提交
  27. 19 2月, 2019 1 次提交
  28. 17 12月, 2018 2 次提交
    • D
      qemu: use line breaks in command line args written to log · 07c9d660
      Daniel P. Berrangé 提交于
      The QEMU command line arguments are very long and currently all written
      on a single line to /var/log/libvirt/qemu/$GUEST.log. This introduces
      logic to add line breaks after every env variable and "-" optional
      argument, and every positional argument. This will create a clearer log
      file, which will in turn present better in bug reports when people cut +
      paste from the log into a bug comment.
      
      An example log file entry now looks like this:
      
        2018-12-14 12:57:03.677+0000: starting up libvirt version: 5.0.0, qemu version: 3.0.0qemu-3.0.0-1.fc29, kernel: 4.19.5-300.fc29.x86_64, hostname: localhost.localdomain
        LC_ALL=C \
        PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin \
        HOME=/home/berrange \
        USER=berrange \
        LOGNAME=berrange \
        QEMU_AUDIO_DRV=none \
        /usr/bin/qemu-system-ppc64 \
        -name guest=guest,debug-threads=on \
        -S \
        -object secret,id=masterKey0,format=raw,file=/home/berrange/.config/libvirt/qemu/lib/domain-33-guest/master-key.aes \
        -machine pseries-2.10,accel=tcg,usb=off,dump-guest-core=off \
        -m 1024 \
        -realtime mlock=off \
        -smp 1,sockets=1,cores=1,threads=1 \
        -uuid c8a74977-ab18-41d0-ae3b-4041c7fffbcd \
        -display none \
        -no-user-config \
        -nodefaults \
        -chardev socket,id=charmonitor,fd=23,server,nowait \
        -mon chardev=charmonitor,id=monitor,mode=control \
        -rtc base=utc \
        -no-shutdown \
        -boot strict=on \
        -device qemu-xhci,id=usb,bus=pci.0,addr=0x1 \
        -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \
        -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
        -msg timestamp=on
        2018-12-14 12:57:03.730+0000: shutting down, reason=failed
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      07c9d660
    • D
      util: require command args to be non-NULL · 912c6b22
      Daniel P. Berrangé 提交于
      The virCommand APIs do not expect to be given a NULL value for an arg
      name or value. Such a mistake can lead to execution of the wrong
      command, as the NULL may prematurely terminate the list of args.
      Detect this and report suitable error messages.
      
      This identified a flaw in the storage test which was passing a NULL
      instead of the volume path. This flaw was then validated by an incorrect
      set of qemu-img args as expected data.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      912c6b22
  29. 14 12月, 2018 1 次提交
  30. 20 9月, 2018 1 次提交
  31. 17 9月, 2018 1 次提交
  32. 25 7月, 2018 1 次提交