1. 14 12月, 2018 1 次提交
    • 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
  2. 11 12月, 2018 1 次提交
  3. 07 12月, 2018 2 次提交
    • J
      qemu: Don't fail stats collection due to IOThread capability · 61d12533
      John Ferlan 提交于
      Commit 212dc928 made a generic qemuDomainGetIOThreadsMon which
      would fail if the QEMU_CAPS_OBJECT_IOTHREAD didn't exist. Then
      commit d1eac927 used that helper for the collection of all domain
      stats. However, if the capability doesn't exist, then the entire
      stats collection fails. Since the IOThread stats were meant to be
      if available only, thus rather than failing if the capability
      doesn't exist, let's just not collect the stats. Restore the caps
      failure logic for qemuDomainGetIOThreadsLive.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      61d12533
    • J
      qemu: Save qemuDomainGetStats error · e1fc7ec0
      John Ferlan 提交于
      During qemuConnectGetAllDomainStats if qemuDomainGetStats causes
      a failure, then when collecting more than one domain's worth of
      statistics the loop in virDomainStatsRecordListFree would call
      virDomainFree which would call virResetLastError effectively wiping
      out the reason we failed leaving the caller with no idea why the
      collection failed.
      
      To fix this, let's Preserve the error and Restore it prior to return
      so that a caller such as 'virsh domstats' doesn't get the generic
      "error: An error occurred, but the cause is unknown".
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      e1fc7ec0
  4. 05 12月, 2018 1 次提交
  5. 04 12月, 2018 2 次提交
  6. 03 12月, 2018 1 次提交
  7. 27 11月, 2018 1 次提交
    • W
      qemu: Report cache occupancy (CMT) with domstats · a91ebc89
      Wang Huaqiang 提交于
      Adding the interface in qemu to report CMT statistic information
      through command 'virsh domstats --cpu-total'.
      
      Below is a typical output:
      
               # virsh domstats 1 --cpu-total
               Domain: 'ubuntu16.04-base'
                 ...
                 cpu.cache.monitor.count=2
                 cpu.cache.monitor.0.name=vcpus_1
                 cpu.cache.monitor.0.vcpus=1
                 cpu.cache.monitor.0.bank.count=2
                 cpu.cache.monitor.0.bank.0.id=0
                 cpu.cache.monitor.0.bank.0.bytes=4505600
                 cpu.cache.monitor.0.bank.1.id=1
                 cpu.cache.monitor.0.bank.1.bytes=5586944
                 cpu.cache.monitor.1.name=vcpus_4-6
                 cpu.cache.monitor.1.vcpus=4,5,6
                 cpu.cache.monitor.1.bank.count=2
                 cpu.cache.monitor.1.bank.0.id=0
                 cpu.cache.monitor.1.bank.0.bytes=17571840
                 cpu.cache.monitor.1.bank.1.id=1
                 cpu.cache.monitor.1.bank.1.bytes=29106176
      Signed-off-by: NWang Huaqiang <huaqiang.wang@intel.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      a91ebc89
  8. 19 11月, 2018 5 次提交
  9. 16 11月, 2018 1 次提交
  10. 15 11月, 2018 1 次提交
  11. 12 11月, 2018 1 次提交
  12. 08 11月, 2018 1 次提交
    • E
      snapshot: Don't hose list on deletion failure · 68b2596f
      Eric Blake 提交于
      If qemuDomainSnapshotDiscard() fails for any reason (rare,
      but possible with an ill-timed ENOMEM or if
      qemuDomainSnapshotForEachQcow2() has problems talking to the
      qemu guest monitor), then an attempt to retry the snapshot
      deletion API will crash because we didn't undo the effects
      of virDomainSnapshotDropParent() temporarily rearranging the
      internal list structures, and the second attempt to drop
      parents will dereference NULL.  Fix it by instead noting that
      there are only two callers to qemuDomainSnapshotDiscard(),
      and only one of the two callers wants the parent to be updated;
      thus we can move the call to virDomainSnapshotDropParent()
      into a code path that only gets executed on success.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      68b2596f
  13. 08 10月, 2018 2 次提交
  14. 04 10月, 2018 1 次提交
  15. 26 9月, 2018 3 次提交
  16. 20 9月, 2018 2 次提交
  17. 19 9月, 2018 1 次提交
    • J
      qemu: Fix error reporting in qemuDomainSaveImageStartVM · 1468536d
      Jiri Denemark 提交于
      When restoring a domain from a compressed image, we launch an
      intermediate process for decompressing the saved data. If QEMU fails to
      load the data for some reason, we force close the stdin/stdout file
      descriptors of the intermediate process and wait for it to die. However,
      virCommandWait can report various errors which would overwrite the real
      error from QEMU. Thus instead of getting something useful:
      
          internal error: process exited while connecting to monitor:
          2018-09-17T15:17:29.998910Z qemu-system-x86_64: can't apply global
          Skylake-Client-x86_64-cpu.osxsave=off: Property '.osxsave' not found
      
      we could get an irrelevant error message:
      
          internal error: Child process (lzop -dc --ignore-warn) unexpected
          fatal signal 13
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      1468536d
  18. 18 9月, 2018 1 次提交
    • M
      security_manager: Load lock plugin on init · 3e26b476
      Michal Privoznik 提交于
      Now that we know what metadata lock manager user wishes to use we
      can load it when initializing security driver. This is achieved
      by adding new argument to virSecurityManagerNewDriver() and
      subsequently to all functions that end up calling it.
      
      The cfg.mk change is needed in order to allow lock_manager.h
      inclusion in security driver without 'syntax-check' complaining.
      This is safe thing to do as locking APIs will always exist (it's
      only backend implementation that changes). However, instead of
      allowing the include for all other drivers (like cpu, network,
      and so on) allow it only for security driver. This will still
      trigger the error if including from other drivers.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      3e26b476
  19. 17 9月, 2018 2 次提交
  20. 06 9月, 2018 1 次提交
  21. 04 9月, 2018 1 次提交
  22. 28 8月, 2018 1 次提交
  23. 23 8月, 2018 1 次提交
  24. 21 8月, 2018 6 次提交