1. 11 12月, 2018 1 次提交
  2. 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
  3. 05 12月, 2018 1 次提交
  4. 04 12月, 2018 2 次提交
  5. 03 12月, 2018 1 次提交
  6. 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
  7. 19 11月, 2018 5 次提交
  8. 16 11月, 2018 1 次提交
  9. 15 11月, 2018 1 次提交
  10. 12 11月, 2018 1 次提交
  11. 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
  12. 08 10月, 2018 2 次提交
  13. 04 10月, 2018 1 次提交
  14. 26 9月, 2018 3 次提交
  15. 20 9月, 2018 2 次提交
  16. 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
  17. 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
  18. 17 9月, 2018 2 次提交
  19. 06 9月, 2018 1 次提交
  20. 04 9月, 2018 1 次提交
  21. 28 8月, 2018 1 次提交
  22. 23 8月, 2018 1 次提交
  23. 21 8月, 2018 7 次提交