1. 04 6月, 2019 1 次提交
    • J
      qemu: Make virQEMUCapsProbeHostCPUForEmulator more generic · dd3fc650
      Jiri Denemark 提交于
      The function is renamed as virQEMUCapsProbeHostCPU and it does not get
      the list of allowed CPU models from qemuCaps anymore. This is
      responsibility is moved to the caller. The result is just a very thin
      wrapper around virCPUGetHost mostly required mocking in tests.
      
      The generic function is used in place of a direct call to virCPUGetHost
      in virQEMUCapsInitHostCPUModel to make sure tests don't accidentally
      probe host CPU.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      dd3fc650
  2. 03 6月, 2019 10 次提交
  3. 27 5月, 2019 2 次提交
  4. 23 5月, 2019 2 次提交
  5. 21 5月, 2019 16 次提交
  6. 20 5月, 2019 3 次提交
    • M
      Revert "qemu: Do not override config XML in case of snapshot revert" · da04eab9
      Michal Privoznik 提交于
      This reverts commit dfd70ca1.
      
      Pushed by a mistake, sorry. There's still some discussion going
      on upstream.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      da04eab9
    • 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
    • M
      qemu: Do not override config XML in case of snapshot revert · dfd70ca1
      Maxiwell S. Garcia 提交于
      Snapshot create operation saves the live XML and uses it to replace the
      domain definition in case of revert. But the VM config XML is not saved
      and the revert operation does not address this issue. This commit
      prevents the config XML from being overridden by snapshot definition.
      
      An active domain stores both current and new definitions. The current
      definition (vm->def) stores the live XML and the new definition
      (vm->newDef) stores the config XML. In an inactive domain, only the
      config XML is persistent, and it's saved in vm->def.
      
      The revert operation uses the virDomainObjAssignDef() to set the
      snapshot definition in vm->newDef, if domain is active, or in vm->def
      otherwise. But before that, it saves the old value to return to
      caller. This return is used here to restore the config XML after
      all snapshot startup process finish.
      Signed-off-by: NMaxiwell S. Garcia <maxiwell@linux.ibm.com>
      dfd70ca1
  7. 17 5月, 2019 6 次提交