1. 19 5月, 2020 1 次提交
    • L
      qemu: prevent attempts to detach a device on a controller with hotplug='off' · c0e04c2e
      Laine Stump 提交于
      Although the original patches to support controllers with
      hotplug='off' were checking during hotplug/attach requests that the
      device was being plugged into a PCI controller that didn't have
      hotplug disabled, but I forgot to do the same for device detach (the
      main impetus for adding the feature was to prevent unplugs originating
      from within the guest, so it slipped my mind). So although the guest
      OS was ultimately unable to honor the unplug request, libvirt could
      still be used to make such a request, and since device attach/detach
      are asynchronous operations, the caller to libvirt would receive a
      success status back (the device would stubbornly/correctly remain in
      the domain status XML however)
      
      This patch remedies that, by looking at the controller for the device
      in the detach request, and immediately failing the operation if that
      controller has hotplug=off.
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      c0e04c2e
  2. 18 5月, 2020 8 次提交
  3. 15 5月, 2020 9 次提交
  4. 14 5月, 2020 3 次提交
    • M
      qemuBlockJobDataDisposeJobdata: Free data.commit.disabledBitmapsBase · 62c27cfc
      Michal Privoznik 提交于
      ==179663== 35 (24 direct, 11 indirect) bytes in 1 blocks are definitely lost in loss record 205 of 461
      ==179663==    at 0x4839EC6: calloc (vg_replace_malloc.c:762)
      ==179663==    by 0x5791AC0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.1)
      ==179663==    by 0x190C79: qemuDomainObjPrivateXMLParseBlockjobDataCommit (qemu_domain.c:3295)
      ==179663==    by 0x190DF7: qemuDomainObjPrivateXMLParseBlockjobDataSpecific (qemu_domain.c:3331)
      ==179663==    by 0x19157D: qemuDomainObjPrivateXMLParseBlockjobData (qemu_domain.c:3469)
      ==179663==    by 0x1918E8: qemuDomainObjPrivateXMLParseBlockjobs (qemu_domain.c:3498)
      ==179663==    by 0x193841: qemuDomainObjPrivateXMLParse (qemu_domain.c:3944)
      ==179663==    by 0x4A1BA9D: virDomainObjParseXML (domain_conf.c:22306)
      ==179663==    by 0x4A1BFE9: virDomainObjParseNode (domain_conf.c:22429)
      ==179663==    by 0x4A1C0B4: virDomainObjParseFile (domain_conf.c:22443)
      ==179663==    by 0x1431E1: testCompareStatusXMLToXMLFiles (qemuxml2xmltest.c:61)
      ==179663==    by 0x177722: virTestRun (testutils.c:142)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
      62c27cfc
    • M
      qemuDomainStorageSourcePrivateDispose: Free httpcookie · 42a415d5
      Michal Privoznik 提交于
      ==156803== 58 (40 direct, 18 indirect) bytes in 1 blocks are definitely lost in loss record 306 of 463
      ==156803==    at 0x4839EC6: calloc (vg_replace_malloc.c:762)
      ==156803==    by 0x5791AC0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.1)
      ==156803==    by 0x48F60DC: virAlloc (viralloc.c:48)
      ==156803==    by 0x18DD74: qemuStorageSourcePrivateDataAssignSecinfo (qemu_domain.c:2384)
      ==156803==    by 0x18DFD5: qemuStorageSourcePrivateDataParse (qemu_domain.c:2433)
      ==156803==    by 0x49EC884: virDomainStorageSourceParse (domain_conf.c:9857)
      ==156803==    by 0x49ECBA3: virDomainDiskBackingStoreParse (domain_conf.c:9909)
      ==156803==    by 0x49F129D: virDomainDiskDefParseXML (domain_conf.c:10785)
      ==156803==    by 0x4A1804E: virDomainDefParseXML (domain_conf.c:21543)
      ==156803==    by 0x4A1B60C: virDomainObjParseXML (domain_conf.c:22254)
      ==156803==    by 0x4A1BFE9: virDomainObjParseNode (domain_conf.c:22429)
      ==156803==    by 0x4A1C0B4: virDomainObjParseFile (domain_conf.c:22443
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
      42a415d5
    • J
  5. 13 5月, 2020 13 次提交
  6. 12 5月, 2020 6 次提交