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. 06 12月, 2018 2 次提交
  4. 05 12月, 2018 2 次提交
  5. 04 12月, 2018 3 次提交
  6. 03 12月, 2018 10 次提交
  7. 29 11月, 2018 1 次提交
    • J
      qemu: Fix post-copy migration on the source · eca9d21e
      Jiri Denemark 提交于
      Post-copy migration has been broken on the source since commit
      v3.8.0-245-g32c29f10 which implemented support for
      pause-before-switchover QEMU migration capability.
      
      Even though the migration itself went well, the source did not really
      know when it switched to the post-copy mode despite the messages logged
      by MIGRATION event handler. As a result of this, the events emitted by
      source libvirtd were not accurate and statistics of the completed
      migration would cover only the pre-copy part of migration. Moreover, if
      migration failed during the post-copy phase for some reason, the source
      libvirtd would just happily resume the domain, which could lead to disk
      corruption.
      
      With the pause-before-switchover capability enabled, the order of events
      emitted by QEMU changed:
      
                          pause-before-switchover
                 disabled                        enabled
          MIGRATION, postcopy-active      STOP
          STOP                            MIGRATION, pre-switchover
                                          MIGRATION, postcopy-active
      
      The STOP even handler checks the migration status (postcopy-active) and
      sets the domain state accordingly. Which is sufficient when
      pause-before-switchover is disabled, but once we enable it, the
      migration status is still active when we get STOP from QEMU. Thus the
      domain state set in the STOP handler has to be corrected once we are
      notified that migration changed to postcopy-active.
      
      This results in two SUSPENDED events to be emitted by the source
      libvirtd during post-copy migration. The first one with
      VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED detail, while the second one reports
      the corrected VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY detail. This is
      inevitable because we don't know whether migration will eventually
      switch to post-copy at the time we emit the first event.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1647365Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      eca9d21e
  8. 28 11月, 2018 4 次提交
  9. 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
  10. 23 11月, 2018 4 次提交
  11. 20 11月, 2018 1 次提交
  12. 19 11月, 2018 8 次提交
  13. 16 11月, 2018 1 次提交