1. 20 1月, 2020 1 次提交
  2. 17 1月, 2020 2 次提交
  3. 16 1月, 2020 8 次提交
  4. 10 1月, 2020 1 次提交
  5. 07 1月, 2020 2 次提交
  6. 06 1月, 2020 3 次提交
    • W
      Introduce command 'virsh domstats --memory' for reporting memory BW · 65a63d88
      Wang Huaqiang 提交于
      Introduce an option '--memory' for showing memory related
      information. The memory bandwidth infomatio is listed as:
      
      Domain: 'libvirt-vm'
       memory.bandwidth.monitor.count=4
       memory.bandwidth.monitor.0.name=vcpus_0-4
       memory.bandwidth.monitor.0.vcpus=0-4
       memory.bandwidth.monitor.0.node.count=2
       memory.bandwidth.monitor.0.node.0.id=0
       memory.bandwidth.monitor.0.node.0.bytes.total=10208067584
       memory.bandwidth.monitor.0.node.0.bytes.local=4807114752
       memory.bandwidth.monitor.0.node.1.id=1
       memory.bandwidth.monitor.0.node.1.bytes.total=8693735424
       memory.bandwidth.monitor.0.node.1.bytes.local=5850161152
       memory.bandwidth.monitor.1.name=vcpus_7
       memory.bandwidth.monitor.1.vcpus=7
       memory.bandwidth.monitor.1.node.count=2
       memory.bandwidth.monitor.1.node.0.id=0
       memory.bandwidth.monitor.1.node.0.bytes.total=853811200
       memory.bandwidth.monitor.1.node.0.bytes.local=290701312
       memory.bandwidth.monitor.1.node.1.id=1
       memory.bandwidth.monitor.1.node.1.bytes.total=406044672
       memory.bandwidth.monitor.1.node.1.bytes.local=229425152
      Signed-off-by: NWang Huaqiang <huaqiang.wang@intel.com>
      65a63d88
    • W
      util, resctrl: using 64bit interface instead of 32bit for counters · 5d876f25
      Wang Huaqiang 提交于
      The underlying resctrl monitoring is actually using 64 bit counters,
      not the 32bit one. Correct this by using 64bit data type for reading
      hardware value.
      
      To keep the interface consistent, the result of CPU last level cache
      that occupied by vcpu processors of specific restrl monitor group is
      still reported with a truncated 32bit data type. because, in silicon
      world, CPU cache size will never exceed 4GB.
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: NWang Huaqiang <huaqiang.wang@intel.com>
      5d876f25
    • P
      qemu: backup: Properly propagate async job type when cancelling the job · bc8b159c
      Peter Krempa 提交于
      When cancelling the blockjobs as part of failed backup job startup
      recover we didn't pass in the correct async job type. Luckily the block
      job handler and cancellation code paths use no block job at all
      currently so those were correct.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      bc8b159c
  7. 03 1月, 2020 1 次提交
  8. 18 12月, 2019 3 次提交
    • M
      qemu: Don't leak hostcpu or hostnuma on driver cleanup · 39a7dff7
      Michal Privoznik 提交于
      When freeing qemu driver struct members, we forgot to free
      @hostcpu and @hostnuma members.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      39a7dff7
    • M
      qemu: Reorder cleanup in qemuStateCleanup() · 7cf76d4e
      Michal Privoznik 提交于
      This function is supposed to clean up virQEMUDriver structure and
      free individual members. However, it's doing that in random order
      which makes it hard to track which members are being freed and
      which are not. Do the free in reverse order than the structure
      definition - assuming that the most important members (like
      mutex) are declared first and freed last.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      7cf76d4e
    • L
      qemu: homogenize MAC address in live & config when hotplugging a netdev · 6c17606b
      Laine Stump 提交于
      Prior to commit 55ce6564 (first in libvirt 4.6.0), the XML sent to
      virDomainAttachDeviceFlags() was parsed only once, and the results of
      that parse were inserted into both the live object of the running
      domain and into the persistent config. Thus, if MAC address was
      omitted from in XML for a network device (<interface>), both the live
      and config object would have the same MAC address.
      
      Commit 55ce6564 changed the code to parse the incoming XML twice -
      once for live and once for config. This does eliminate the problem of
      PCI (/scsi/sata) address conflicts caused by allocating an address
      based on existing devices in live object, but then inserting the
      result into the config (which may already have a device using that
      address), BUT it also means that when the MAC address of a network
      device hasn't been specified in the XML, each copy will get a
      different auto-generated MAC address.
      
      This results in the MAC address of the device changing the next time
      the domain is shutdown and restarted, which creates havoc with the
      guest OS's network config.
      
      There have been several discussions about this in the last > 1 year,
      attempting to find the ideal solution to this problem that makes MAC
      addresses consistent and accounts for all sorts of corner cases with
      PCI/scsi/sata addresses. All of these discussions fizzled out because
      every proposal was either too difficult to implement or failed to fix
      some esoteric case someone thought up.
      
      So, in the interest of solving the MAC address problem while not
      making the "other address" situation any worse than before, this patch
      simply adds a qemuDomainAttachDeviceLiveAndConfigHomogenize() function
      that (for now) copies the MAC address from the config object to the
      live object (if the original xml had <mac address='blah'/> then this
      will be an effective NOP (as the macs already match)).
      
      Any downstream libvirt containing upstream commit
      55ce6564 should have this patch as well.
      
      https://bugzilla.redhat.com/1783411Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      6c17606b
  9. 17 12月, 2019 5 次提交
  10. 13 12月, 2019 4 次提交
  11. 12 12月, 2019 6 次提交
  12. 11 12月, 2019 2 次提交
  13. 10 12月, 2019 2 次提交