1. 05 5月, 2019 5 次提交
  2. 02 5月, 2019 1 次提交
  3. 01 5月, 2019 2 次提交
  4. 30 4月, 2019 8 次提交
  5. 29 4月, 2019 1 次提交
  6. 26 4月, 2019 5 次提交
  7. 25 4月, 2019 8 次提交
  8. 24 4月, 2019 1 次提交
  9. 23 4月, 2019 5 次提交
  10. 20 4月, 2019 2 次提交
    • M
      libxlDriverConfigDispose: Free @configBaseDir too · 4f18b2d7
      Michal Privoznik 提交于
      Allocated in libxlDriverConfigNew(), the @configBaseDir is never
      freed.
      
       13 bytes in 1 blocks are definitely lost in loss record 36 of 125
          at 0x483579F: malloc (vg_replace_malloc.c:299)
          by 0x8012469: strdup (strdup.c:42)
          by 0x52926DE: virStrdup (virstring.c:966)
          by 0x11D46B: libxlDriverConfigNew (libxl_conf.c:1749)
          by 0x114D78: testCompareXMLToDomConfig (libxlxml2domconfigtest.c:62)
          by 0x1152A3: testCompareXMLToDomConfigHelper (libxlxml2domconfigtest.c:160)
          by 0x115925: virTestRun (testutils.c:174)
          by 0x1154A4: mymain (libxlxml2domconfigtest.c:216)
          by 0x1179E9: virTestMain (testutils.c:1096)
          by 0x1154FD: main (libxlxml2domconfigtest.c:224)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      4f18b2d7
    • M
      qemucaps2xmltest: Don't leak @binary · 8bf7cc5f
      Michal Privoznik 提交于
      There's no need to keep @binary around.
      virQEMUCapsInitGuestFromBinary() duplicates the string anyway.
      
       1,002 bytes in 36 blocks are definitely lost in loss record 54 of 59
          at 0x483579F: malloc (vg_replace_malloc.c:299)
          by 0x796B1C7: vasprintf (vasprintf.c:73)
          by 0x4C3F2C6: virVasprintfInternal (virstring.c:740)
          by 0x4C3F3DC: virAsprintfInternal (virstring.c:761)
          by 0x13AFC9: testGetCaps (qemucaps2xmltest.c:105)
          by 0x13B200: testQemuCapsXML (qemucaps2xmltest.c:157)
          by 0x13B642: virTestRun (testutils.c:174)
          by 0x13B366: doCapsTest (qemucaps2xmltest.c:191)
          by 0x13FF2B: testQemuCapsIterate (testutilsqemu.c:941)
          by 0x13B427: mymain (qemucaps2xmltest.c:215)
          by 0x13D706: virTestMain (testutils.c:1096)
          by 0x13B489: main (qemucaps2xmltest.c:221)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      8bf7cc5f
  11. 18 4月, 2019 2 次提交
    • M
      qemu_cgroup: Remove unused qemuSetupCpusetMems · 918e8d68
      Michal Privoznik 提交于
      This function is not used anymore. Let's remove it.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NMartin Kletzander <mkletzan@redhat.com>
      918e8d68
    • M
      qemu: Set up EMULATOR thread and cpuset.mems before exec()-ing qemu · 0eaa4716
      Michal Privoznik 提交于
      It's funny how this went unnoticed for such a long time. Long
      story short, if a domain is configured with
      VIR_DOMAIN_NUMATUNE_MEM_STRICT libvirt doesn't really honour
      that. This is because of 7e72ac78 after which libvirt allowed
      qemu to allocate memory just anywhere and only after that it used
      some magic involving cpuset.memory_migrate and cpuset.mems to
      move the memory to desired NUMA nodes. This was done in order to
      work around some KVM bug where KVM would fail if there wasn't a
      DMA zone available on the NUMA node. Well, while the work around
      might stopped libvirt tickling the KVM bug it also caused a bug
      on libvirt side: if there is not enough memory on configured NUMA
      node(s) then any attempt to start a domain must fail. Because of
      the way we play with guest memory domains can start just happily.
      
      The solution is to move the child we've just forked into emulator
      cgroup, set up cpuset.mems and exec() qemu only after that.
      
      This basically reverts 7e72ac78 which was a workaround
      for kernel bug. This bug was apparently fixed because I've tested
      this successfully with recent kernel.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NMartin Kletzander <mkletzan@redhat.com>
      0eaa4716