1. 24 2月, 2020 18 次提交
  2. 23 2月, 2020 18 次提交
  3. 21 2月, 2020 4 次提交
    • A
      docs: Expand documentation for the tickpolicy timer attribute · 2f067570
      Andrea Bolognani 提交于
      The current documentation is fairly terse and not easy to decode
      for someone who's not intimately familiar with the inner workings
      of timer devices. Expand on it by providing a somewhat verbose
      description of what behavior each policy will result in, as seen
      from both the guest OS and host point of view.
      
      This is lifted directly from QEMU commit
      
        commit 2a7d957596786404c4ed16b089273de95a9580ad
        Author: Andrea Bolognani <abologna@redhat.com>
        Date:   Tue Feb 11 19:37:44 2020 +0100
      
          qapi: Expand documentation for LostTickPolicy
      
        v4.2.0-1442-g2a7d957596
      
      The original text also matched word for word the documentation
      found in QEMU.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      2f067570
    • M
      qemuTestParseCapabilitiesArch: Free @binary · 6d371d92
      Michal Privoznik 提交于
      The variable is allocated, but never freed.
      
      ==119642== 29 bytes in 1 blocks are definitely lost in loss record 409 of 671
      ==119642==    at 0x483579F: malloc (vg_replace_malloc.c:309)
      ==119642==    by 0x5AB075F: __vasprintf_internal (in /lib64/libc-2.29.so)
      ==119642==    by 0x57C1A28: g_vasprintf (in /usr/lib64/libglib-2.0.so.0.6000.7)
      ==119642==    by 0x579A0CC: g_strdup_vprintf (in /usr/lib64/libglib-2.0.so.0.6000.7)
      ==119642==    by 0x4AE6D58: vir_g_strdup_printf (glibcompat.c:197)
      ==119642==    by 0x136EEE: qemuTestParseCapabilitiesArch (testutilsqemu.c:291)
      ==119642==    by 0x138506: testQemuInfoSetArgs (testutilsqemu.c:763)
      ==119642==    by 0x135FFF: mymain (qemuxml2argvtest.c:3093)
      ==119642==    by 0x13A60E: virTestMain (testutils.c:839)
      ==119642==    by 0x1368C2: main (qemuxml2argvtest.c:3121)
      
      Fixes: 42b3e5b9Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      6d371d92
    • M
      virDomainNetDefClear: Free @persistent name · 2ab278ec
      Michal Privoznik 提交于
      The persistent alias name @persistent is allocated in
      virDomainNetDefParseXML() but never freed.
      
      ==119642== 22 bytes in 2 blocks are definitely lost in loss record 178 of 671
      ==119642==    at 0x483579F: malloc (vg_replace_malloc.c:309)
      ==119642==    by 0x58F89F1: xmlStrndup (in /usr/lib64/libxml2.so.2.9.9)
      ==119642==    by 0x4BA3B74: virXMLPropString (virxml.c:520)
      ==119642==    by 0x4BDB0C5: virDomainNetDefParseXML (domain_conf.c:11876)
      ==119642==    by 0x4BF9EF4: virDomainDefParseXML (domain_conf.c:21196)
      ==119642==    by 0x4BFCD5B: virDomainDefParseNode (domain_conf.c:21943)
      ==119642==    by 0x4BFCC36: virDomainDefParse (domain_conf.c:21901)
      ==119642==    by 0x4BFCCCB: virDomainDefParseFile (domain_conf.c:21924)
      ==119642==    by 0x114A9D: testCompareXMLToArgv (qemuxml2argvtest.c:452)
      ==119642==    by 0x13894F: virTestRun (testutils.c:143)
      ==119642==    by 0x11F46E: mymain (qemuxml2argvtest.c:1316)
      ==119642==    by 0x13A60E: virTestMain (testutils.c:839
      
      Fixes: fb0509d0Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      2ab278ec
    • M
      virDomainFSDefFree: Unref private data · d8b4f70e
      Michal Privoznik 提交于
      The privateData object is allocated in virDomainFSDefNew() but
      never unref'd.
      
      ==119642== 480 bytes in 20 blocks are definitely lost in loss record 656 of 671
      ==119642==    at 0x4837B86: calloc (vg_replace_malloc.c:762)
      ==119642==    by 0x57806A0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6000.7)
      ==119642==    by 0x4AE7392: virAllocVar (viralloc.c:331)
      ==119642==    by 0x4B64395: virObjectNew (virobject.c:241)
      ==119642==    by 0x48F1464: qemuDomainFSPrivateNew (qemu_domain.c:1427)
      ==119642==    by 0x4BBF004: virDomainFSDefNew (domain_conf.c:2307)
      ==119642==    by 0x4BD859A: virDomainFSDefParseXML (domain_conf.c:11217)
      ==119642==    by 0x4BF9DD1: virDomainDefParseXML (domain_conf.c:21179)
      ==119642==    by 0x4BFCD5B: virDomainDefParseNode (domain_conf.c:21943)
      ==119642==    by 0x4BFCC36: virDomainDefParse (domain_conf.c:21901)
      ==119642==    by 0x4BFCCCB: virDomainDefParseFile (domain_conf.c:21924)
      ==119642==    by 0x114A9D: testCompareXMLToArgv (qemuxml2argvtest.c:452)
      
      Fixes: 5120577eSigned-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      d8b4f70e