1. 07 5月, 2018 12 次提交
  2. 04 5月, 2018 5 次提交
  3. 03 5月, 2018 5 次提交
  4. 30 4月, 2018 5 次提交
  5. 27 4月, 2018 2 次提交
  6. 26 4月, 2018 1 次提交
  7. 23 4月, 2018 3 次提交
  8. 20 4月, 2018 3 次提交
  9. 19 4月, 2018 4 次提交
    • 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: Format 'write-cache' parameter for disk frontends · 327430fc
      Peter Krempa 提交于
      The disk cache mode translates to various frontend and backend
      attributes for the qemu block layer. For the frontend device the
      'writeback' parameter is used and provided as 'write-cache'. Implement
      this so that we can later switch to using -blockdev where we will not
      pass the cachemode directly any more.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      327430fc
    • P
      qemu: caps: Add capability for 'write-cache' parameter of disk frontends · 955df88d
      Peter Krempa 提交于
      QEMU translates the cache mode of a disk internally into 3 flags.
      'write-cache' is a flag of the frontend while others are flag of the
      backing storage. Add capability which will allow expressing it via the
      frontend attribute.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      955df88d