1. 11 5月, 2018 1 次提交
  2. 09 5月, 2018 1 次提交
  3. 07 5月, 2018 7 次提交
  4. 04 5月, 2018 2 次提交
    • J
      conf: Clean up object referencing for Add and Remove · b04629b6
      John Ferlan 提交于
      When adding a new object to the domain object list, there should
      have been 2 virObjectRef calls made one for each list into which
      the object was placed to match the 2 virObjectUnref calls that
      would occur during Remove as part of virHashRemoveEntry when
      virObjectFreeHashData is called when the element is removed from
      the hash table as set up in virDomainObjListNew.
      
      Some drivers (libxl, lxc, qemu, and vz) handled this inconsistency
      by calling virObjectRef upon successful return from virDomainObjListAdd
      in order to use virDomainObjEndAPI when done with the returned @vm.
      While others (bhyve, openvz, test, and vmware) handled this via only
      calling virObjectUnlock upon successful return from virDomainObjListAdd.
      
      This patch will "unify" the approach to use virDomainObjEndAPI
      for any @vm successfully returned from virDomainObjListAdd.
      
      Because list removal is so tightly coupled with list addition,
      this patch fixes the list removal algorithm to return the object
      as entered - "locked and reffed".  This way, the callers can then
      decide how to uniformly handle add/remove success and failure.
      This removes the onus on the caller to "specially handle" the
      @vm during removal processing.
      
      The Add/Remove logic allows for some logic simplification such
      as in libxl where we can Remove the @vm directly rather than
      needing to set a @remove_dom boolean and removing after the
      libxlDomainObjEndJob completes as the @vm is locked/reffed.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      b04629b6
    • M
      qemu/: Remove spaces after casts · 5b912664
      Martin Kletzander 提交于
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      5b912664
  5. 03 5月, 2018 1 次提交
  6. 19 4月, 2018 3 次提交
    • A
      qemu: Figure out nodeset bitmap size correctly · 93114485
      Andrea Bolognani 提交于
      The current private XML parsing code relies on the assumption
      that NUMA node IDs start from 0 and are densely allocated,
      neither of which is necessarily the case.
      
      Change it so that the bitmap size is dynamically calculated by
      looking at NUMA node IDs instead, which ensures all nodes will
      be able to fit and thus the bitmap will be parsed successfully.
      
      Update one of the test cases so that it would fail with the
      previous approach, but passes with the new one.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1490158Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      93114485
    • M
      qemuDomainObjPrivateDataClear: Don't leak @migParams · 888aa4b6
      Michal Privoznik 提交于
      Allocated in qemuMigrationParamsNew() we need to free
      priv->job.migParams when no longer needed.
      
      ==8061== 234 (192 direct, 42 indirect) bytes in 1 blocks are definitely lost in loss record 112 of 123
      ==8061==    at 0x4C2CF26: calloc (vg_replace_malloc.c:711)
      ==8061==    by 0x5325D05: virAlloc (viralloc.c:144)
      ==8061==    by 0x1984F9: qemuMigrationParamsNew (qemu_migration_params.c:218)
      ==8061==    by 0x19A352: qemuMigrationParamsParse (qemu_migration_params.c:1185)
      ==8061==    by 0x1604D8: qemuDomainObjPrivateXMLParseJob (qemu_domain.c:2390)
      ==8061==    by 0x160AE9: qemuDomainObjPrivateXMLParse (qemu_domain.c:2517)
      ==8061==    by 0x5419EAE: virDomainObjParseXML (domain_conf.c:20442)
      ==8061==    by 0x541A25E: virDomainObjParseNode (domain_conf.c:20555)
      ==8061==    by 0x541A2FC: virDomainObjParseFile (domain_conf.c:20574)
      ==8061==    by 0x13607D: testCompareStatusXMLToXMLFiles (qemuxml2xmltest.c:75)
      ==8061==    by 0x14F3E8: virTestRun (testutils.c:180)
      ==8061==    by 0x14DCD0: mymain (qemuxml2xmltest.c:1200)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      888aa4b6
    • P
      qemu: domain: Add helper for translating disk cachemode to qemu flags · e2244abc
      Peter Krempa 提交于
      Add helper which will map values of disk cache mode to the flags which
      are accepted by various parts of the qemu block layer.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      e2244abc
  7. 18 4月, 2018 4 次提交
  8. 17 4月, 2018 9 次提交
  9. 16 4月, 2018 1 次提交
  10. 12 4月, 2018 3 次提交
  11. 10 4月, 2018 2 次提交
  12. 06 4月, 2018 1 次提交
  13. 03 4月, 2018 5 次提交