1. 04 6月, 2019 1 次提交
  2. 20 5月, 2019 1 次提交
    • H
      qemu: Add entry for balloon stats stat-htlb-pgalloc and stat-htlb-pgfail · a699b19f
      Han Han 提交于
      Qemu added reporting of virtio balloon new statistics stat-htlb-pgalloc and
      stat-htlb-pgfail since qemu-3.0 commit b7b12644297. The value of
      stat-htlb-pgalloc represents the number of successful hugetlb page allocations
      while stat-htlb-pgfail represents the number of failed ones. Add this
      statistics reporting to libvirt.
      
      To enable this feature for vm, guest kenel >= 4.17 is required because
      the exporting hugetlb page allocation for virtio balloon is introduced
      since 6c64fe7f.
      Signed-off-by: NHan Han <hhan@redhat.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      a699b19f
  3. 17 4月, 2019 1 次提交
  4. 11 4月, 2019 1 次提交
  5. 14 3月, 2019 1 次提交
  6. 28 2月, 2019 1 次提交
  7. 20 2月, 2019 1 次提交
    • E
      domain: Define explicit flags for saved image xml · 12a51f37
      Eric Blake 提交于
      Commit d2a929d4 (0.9.4) defined virDomainSaveImageGetXMLDesc()'s use
      of @flags as a subset of virDomainXMLFlags, documenting that 2 of the
      3 flags defined at the time would never be valid.  Later, commit
      28f8dfdc (1.0.0) introduced a new flag, VIR_DOMAIN_XML_MIGRATABLE, but
      did not adjust the save image documentation to declare it as invalid.
      Later, commit a67e3872 (3.7.0) blindly copied and pasted the same text
      into virDomainManagedSaveGetXMLDesc.
      
      However, since the flag is not accepted as valid by any of the
      drivers (remote is just passthrough; and qemu is the only supporting
      driver for either API, with support for just VIR_DOMAIN_XML_SECURE),
      it is easier to just define an explicit set of supported flags
      directly related to the save image API rather than trying to borrow
      from live domain API, and risking confusion if even more domain flags
      are added later (in fact, I have an upcoming patch that plans to add
      a new flag to virDomainGetXMLDesc that makes no sense for saved
      images).  We may someday decide that saved images need to support the
      _MIGRATABLE flag, as it is possible to load a saved image with a
      different version of libvirt than the one that created it, but that
      can be a separate patch if it is ever needed.  Meanwhile, it DOES make
      sense to reuse the same flags for SaveImage and for ManagedSave (since
      ManagedSave is really just sugar for creating a normal SaveImage in a
      location controlled by libvirt instead of by the user).
      
      There is no API or ABI impact (since we purposefully used unsigned int
      rather than an enum type in public API, and since the new flag name
      carries the same value as the old reused name).
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      12a51f37
  8. 07 2月, 2019 1 次提交
    • J
      Public API for post-copy migration bandwidth · cdc1b1d7
      Jiri Denemark 提交于
      This patch adds a new VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPY typed
      parameter for virDomainMigrate3 and virDomainMigrateToURI3 for setting
      maximum post-copy migration bandwidth.
      
      In case the initial VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPY value turns out
      to be suboptimal a new VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY flag for
      virDomainMigrateSetMaxSpeed and virDomainMigrateGetMaxSpeed may be used
      to set/get the maximum post-copy migration bandwidth while migration is
      already running.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      cdc1b1d7
  9. 30 1月, 2019 3 次提交
  10. 28 1月, 2019 1 次提交
    • M
      lib: Use more of VIR_STEAL_PTR() · 5772885d
      Michal Privoznik 提交于
      We have this very handy macro called VIR_STEAL_PTR() which steals
      one pointer into the other and sets the other to NULL. The
      following coccinelle patch was used to create this commit:
      
        @ rule1 @
        identifier a, b;
        @@
      
        - b = a;
          ...
        - a = NULL;
        + VIR_STEAL_PTR(b, a);
      
      Some places were clean up afterwards to make syntax-check happy
      (e.g. some curly braces were removed where the body become a one
      liner).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      5772885d
  11. 18 12月, 2018 1 次提交
  12. 05 12月, 2018 1 次提交
  13. 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
  14. 19 11月, 2018 2 次提交
    • J
      lib: Introduce virDomainSetIOThreadParams · ae69bda5
      John Ferlan 提交于
      Create a new API that will allow an adjustment of IOThread
      polling parameters for the specified IOThread. These parameters
      will not be saved in the guest XML. Currently the only parameters
      supported will allow the hypervisor to adjust the parameters used
      to limit and alter the scope of the polling interval. The polling
      interval allows the IOThread to spend more or less time processing
      in the guest.
      
      Based on code originally posted by Pavel Hrdina <phrdina@redhat.com>
      to add virDomainAddIOThreadParams and virDomainModIOThreadParams.
      Modification of those changes to use virDomainSetIOThreadParams
      instead and remove concepts related to saving the data in guest
      XML as well as the way to specifically enable the polling parameters.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      ae69bda5
    • J
      qemu: Implement the ability to return IOThread stats · d1eac927
      John Ferlan 提交于
      Process the IOThreads polling stats if available. Generate the
      output params record to be returned to the caller with the three
      values - poll-max-ns, poll-grow, and poll-shrink.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      d1eac927
  15. 06 9月, 2018 1 次提交
  16. 04 9月, 2018 1 次提交
  17. 17 7月, 2018 1 次提交
  18. 04 7月, 2018 1 次提交
  19. 19 6月, 2018 1 次提交
  20. 13 6月, 2018 1 次提交
  21. 12 6月, 2018 1 次提交
  22. 28 5月, 2018 1 次提交
  23. 18 4月, 2018 1 次提交
  24. 15 3月, 2018 1 次提交
  25. 19 10月, 2017 2 次提交
  26. 14 10月, 2017 1 次提交
  27. 05 10月, 2017 1 次提交
  28. 25 9月, 2017 1 次提交
  29. 29 8月, 2017 2 次提交
  30. 26 8月, 2017 1 次提交
  31. 07 8月, 2017 1 次提交
    • D
      Remove bogus warning about vir$OBJECTGetConnect functions · 10e277a4
      Daniel P. Berrange 提交于
      The API docs for the various vir$OBJECTGetConnect functions
      contain a warning
      
        WARNING: When writing libvirt bindings in other languages, do
        not use this function.  Instead, store the connection and
        the domain object together.
      
      There is no reason why language bindings should not use this
      method, and indeed the Perl, Python, and Go bindings all use
      these methods.
      
      This warning was originally added back in
      
        commit 3edb4bc9
        Author: Daniel Veillard <veillard@redhat.com>
        Date:   Tue Jul 24 15:32:55 2007 +0000
      
          * libvirt.spec.in NEWS docs/* po/*: preparing release 0.3.1
          * src/libvirt.c python/generator.py: some cleanup and warnings
            from Richard W.M. Jones
      
      IIUC, the rational was that these APIs do not need to be
      directly exposed to the non-C language, as the language
      can expose the same concept itself by storing the original
      virConnectPtr object alongside the virDomainPtr.  There's
      no reason to mandate such an approach though - it is valid
      for languages to expose this directly if that suits their
      needs better.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      10e277a4
  32. 04 7月, 2017 1 次提交
  33. 13 6月, 2017 1 次提交
  34. 07 6月, 2017 1 次提交
    • P
      qemu: Conditionally allow block-copy for persistent domains · b7e534c6
      Peter Krempa 提交于
      Allow starting the block-copy job for a persistent domain if a user
      declares by using a flag that the job will not be recovered if the VM is
      switched off while the job is active.
      
      This allows to use the block-copy job with persistent VMs under the same
      conditions as would apply to transient domains.
      b7e534c6
  35. 05 4月, 2017 1 次提交