1. 21 5月, 2019 12 次提交
  2. 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
  3. 17 5月, 2019 7 次提交
  4. 15 5月, 2019 1 次提交
  5. 14 5月, 2019 1 次提交
    • M
      qemuDomainSnapshotCreateXML: Don't leak parsed snapshot definition · b58a6b05
      Michal Privoznik 提交于
      This function gets snapshot XML (provided by used) as an
      argument. It parses it into a local variable @def and then sets
      some more members (e.g. it creates a copy of live domain XML).
      Then it proceeds to checking if snapshot XML is valid (e.g. it
      contains as many disks as currently in the domain). If this fails
      then the control jumps to endjob label and subsequently return
      from the function. This is where AUTOFREE function for @def is
      ran. Well, because the code says to run plain VIR_FREE() we leak
      some memory because @def is actually an object and therefore
      it should have been declared as AUTOUNREF.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      b58a6b05
  6. 10 5月, 2019 1 次提交
  7. 09 5月, 2019 15 次提交