1. 21 5月, 2019 4 次提交
  2. 20 5月, 2019 4 次提交
    • 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
    • D
      rpm: remove dependancy from qemu to network/storage drivers · 06a61a20
      Daniel P. Berrangé 提交于
      The libvirt-daemon-driver-qemu RPM has historically had a hard
      dependency on the libvirt-daemon-driver-network and
      libvirt-daemon-driver-storage-core packages. This was because the QEMU
      driver would directly call into APIs that were part of these drivers.
      
      The dependency to the storage driver was eliminated in
      
        commit 064fec69
        Author: Daniel P. Berrangé <berrange@redhat.com>
        Date:   Thu Jan 25 09:35:46 2018 +0000
      
          storage: move storage file backend framework into util directory
      
      The dependency to the network driver was eliminated in
      
        commit 5b13570a
        Author: Daniel P. Berrangé <berrange@redhat.com>
        Date:   Thu Jan 25 09:35:47 2018 +0000
      
          conf: introduce callback registration for domain net device allocation
      
        commit 1438aea4
        Author: Daniel P. Berrangé <berrange@redhat.com>
        Date:   Thu Jan 25 09:35:48 2018 +0000
      
          conf: expand network device callbacks to cover bandwidth updates
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      06a61a20
    • 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 14 次提交
  4. 16 5月, 2019 3 次提交
  5. 15 5月, 2019 5 次提交
  6. 14 5月, 2019 5 次提交
  7. 13 5月, 2019 5 次提交
    • H
      virresctrl: Sort resctrl array correctly in virResctrlMonitorGetStats() · e34c028a
      Huaqiang 提交于
      The qsort element is a pointer of virResctrlMonitorStats, and
      the comparing function's arguments have a type of pointer of
      virResctrlMonitorStatsPtr.
      Signed-off-by: NHuaqiang <huaqiang.wang@intel.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      e34c028a
    • M
      virsh: Don't leak disk targets in cmdDomBlkError · d55be922
      Michal Privoznik 提交于
      The virDomainGetDiskErrors() API copies disk targets into @disks
      array that we allocate. But we forgot to free it:
      
      ==140828== 16 bytes in 4 blocks are definitely lost in loss record 41 of 242
      ==140828==    at 0x4C2F08F: malloc (vg_replace_malloc.c:299)
      ==140828==    by 0x8C406D9: strdup (in /lib64/libc-2.28.so)
      ==140828==    by 0x5377DD3: virStrdup (virstring.c:966)
      ==140828==    by 0x54C112F: testDomainGetDiskErrors (test_driver.c:3068)
      ==140828==    by 0x55C863D: virDomainGetDiskErrors (libvirt-domain.c:10988)
      ==140828==    by 0x15D1FA: cmdDomBlkError (virsh-domain-monitor.c:1215)
      ==140828==    by 0x17F1A8: vshCommandRun (vsh.c:1335)
      ==140828==    by 0x13489E: main (virsh.c:920)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      d55be922
    • I
      test_driver: implement virDomainGetDiskErrors · 89320788
      Ilias Stamatis 提交于
      Return the number of disks present in the configuration of the test
      domain when called with @errors as NULL and @maxerrors as 0.
      
      Otherwise report an error for every second disk, assigning available
      error codes in a cyclic order.
      Signed-off-by: NIlias Stamatis <stamatis.iliass@gmail.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      89320788
    • A
      examples: Install under $(docdir) · 4faaaa8b
      Andrea Bolognani 提交于
      Our build system doesn't currently install the various
      example programs provided along libvirt; however, both the
      upstream .spec file and the Debian packaging go out of
      their way to make sure these useful demos are included in
      the respective documentation packages.
      
      Moreover, doing so without help from the upstream build
      system is easy to get wrong: the libvirt-docs RPM package,
      for example, ends up missing one of the examples and
      including a bunch of empty .deps/ directories.
      
      Install the examples in $(docdir) as part of our regular
      procedure, so that users and downstreams don't have to do
      anything special about them.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      4faaaa8b
    • A
      docs: Install documentation under $(docdir) · 6716c997
      Andrea Bolognani 提交于
      At the moment we allow the user to specify exactly where
      they want the HTML documentation to be installed with an
      extreme level of precision through the --with-html-dir and
      --with-html-subdir configure options.
      
      Most of the time, of course, the user will stick with the
      default, that is $(datadir)/doc/$(PACKAGE)-$(VERSION)/html.
      
      So close to $(docdir)! Including the version number in
      the path, specifically, seems entirely unnecessary since
      different releases of libvirt are not going to be able to
      coexist on the same system anyway.
      
      Drop all these custom flexibilty for flexibilty's sake
      shenaningans in favor of the standard, well understood
      $(docdir).
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      6716c997