1. 03 4月, 2019 3 次提交
  2. 28 3月, 2019 1 次提交
    • M
      qemu_capabilities; Drop virQEMUCapsSetVAList · 087a74e1
      Michal Privoznik 提交于
      There is one specific caller (testInfoSetArgs() in
      qemuxml2argvtest.c) which expect the va_list argument to change
      after returning from the virQEMUCapsSetVAList() function.
      However, since we are passing plain va_list this is not
      guaranteed. The man page of stdarg(3) says:
      
        If ap is passed to a function that uses va_arg(ap,type), then
        the value of ap is undefined after the return of that function.
      
      (ap is a variable of type va_list)
      
      I've seen this in action in fact: on i686 the qemuxml2argvtest
      fails on the second test case because testInfoSetArgs() sees
      ARG_QEMU_CAPS and calls virQEMUCapsSetVAList to process the
      capabilities (in this case there's just one
      QEMU_CAPS_SECCOMP_BLACKLIST). But since the changes are not
      reflected in the caller, in the next iteration testInfoSetArgs()
      sees the QEMU capability and not ARG_END.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      087a74e1
  3. 22 3月, 2019 1 次提交
  4. 12 3月, 2019 1 次提交
  5. 05 3月, 2019 1 次提交
    • C
      qemu: capabilities: Add virtio/vhost {non-}transitional · f15111f6
      Cole Robinson 提交于
      Add a single QEMU_CAPS_VIRTIO_PCI_TRANSITIONAL that
      will be set if any of the following qemu devices are found:
      
          virtio-blk-pci-transitional
          virtio-blk-pci-non-transitional
          virtio-net-pci-transitional
          virtio-net-pci-non-transitional
          vhost-scsi-pci-transitional
          vhost-scsi-pci-non-transitional
          virtio-rng-pci-transitional
          virtio-rng-pci-non-transitional
          virtio-9p-pci-transitional
          virtio-9p-pci-non-transitional
          virtio-balloon-pci-transitional
          virtio-balloon-pci-non-transitional
          vhost-vsock-pci-transitional
          vhost-vsock-pci-non-transitional
          virtio-input-host-pci-transitional
          virtio-input-host-pci-non-transitional
          virtio-scsi-pci-transitional
          virtio-scsi-pci-non-transitional
          virtio-serial-pci-transitional
          virtio-serial-pci-non-transitional
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      f15111f6
  6. 08 2月, 2019 7 次提交
  7. 02 1月, 2019 3 次提交
  8. 14 12月, 2018 3 次提交
    • D
      Enforce a standard header file guard symbol name · 568a4172
      Daniel P. Berrangé 提交于
      Require that all headers are guarded by a symbol named
      
        LIBVIRT_$FILENAME
      
      where $FILENAME is the uppercased filename, with all characters
      outside a-z changed into '_'.
      
      Note we do not use a leading __ because that is technically a
      namespace reserved for the toolchain.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      568a4172
    • D
      Fix many mistakes & inconsistencies in header file layout · 4cfd7090
      Daniel P. Berrangé 提交于
      This introduces a syntax-check script that validates header files use a
      common layout:
      
        /*
         ...copyright header...
         */
        <one blank line>
        #ifndef SYMBOL
        # define SYMBOL
        ....content....
        #endif /* SYMBOL */
      
      For any file ending priv.h, before the #ifndef, we will require a
      guard to prevent bogus imports:
      
        #ifndef SYMBOL_ALLOW
        # error ....
        #endif /* SYMBOL_ALLOW */
        <one blank line>
      
      The many mistakes this script identifies are then fixed.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      4cfd7090
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  9. 03 12月, 2018 1 次提交
  10. 28 11月, 2018 1 次提交
  11. 19 11月, 2018 1 次提交
  12. 16 11月, 2018 2 次提交
  13. 15 11月, 2018 1 次提交
  14. 30 10月, 2018 1 次提交
  15. 21 9月, 2018 3 次提交
  16. 17 9月, 2018 2 次提交
  17. 12 9月, 2018 2 次提交
  18. 07 9月, 2018 6 次提交