1. 24 4月, 2018 3 次提交
  2. 23 4月, 2018 7 次提交
  3. 21 4月, 2018 1 次提交
    • J
      tests: Xen: use qemu-system-i386 for emulator · cec1022e
      Jim Fehlig 提交于
      Many of the old xm and sexpr test files used qemu-dm as the emulator.
      Modern Xen systems no longer use the old, forked qemu-dm, instead
      preferring the distro provided qemu or an "upstream" qemu that is
      built when the Xen tools are built. This qemu is typically installed
      in /usr/lib/xen/bin/qemu-system-i386.
      
      The libxl test files already use /usr/lib/xen/bin/qemu-system-i386.
      For consistency, change the old test files to use the same emulator
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      cec1022e
  4. 20 4月, 2018 23 次提交
  5. 19 4月, 2018 6 次提交
    • 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
    • A
      tests: Create full host NUMA topology in more cases · 4fe4ffdb
      Andrea Bolognani 提交于
      vircapstest has code to add a full host NUMA topology, that
      is, one that includes all information about nodes and CPUs
      including IDs; testQemuCapsInit(), which is used to create a
      mock virCapsPtr for QEMU tests, however, just fakes it by
      setting nnumaCell_max to some number.
      
      While the latter approach has served us well so far, we're
      going to need all the information to be filled in soon. In
      order to do that, we can just move the existing code from
      vircapstest to testutils and, with some renaming and
      trivial tweaking, use it as-is.
      
      Interestingly, the NUMA topology generated by the function
      is rigged up so that the NUMA nodes aren't (necessarily)
      numbered starting from 0, which is a nice way to spot
      mistaken assumptions in our codebase.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      4fe4ffdb
    • 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
    • D
      po: attempt to fix srcdir != builddir builds · 655df055
      Daniel P. Berrangé 提交于
      The .pot, .po and .gmo files are slightly unusual in that we generate
      them in the srcdir when building form git. This is because they'll be
      bundled in the tar archive, so a build-from-tar will see them in srcdir.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      655df055
    • D
      po: minimize language zu · 2b6ea817
      Daniel P. Berrangé 提交于
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      2b6ea817
    • D
      po: minimize language zh_TW · 69ab5ce5
      Daniel P. Berrangé 提交于
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      69ab5ce5