1. 20 5月, 2020 13 次提交
  2. 19 5月, 2020 3 次提交
    • J
      qemu: conf: fix stray comma · be611aa4
      Ján Tomko 提交于
      The qemu.conf change broke our augeas test:
      
      qemu/test_libvirtd_qemu.aug:96.3-203.1:exception thrown in test
      qemu/test_libvirtd_qemu.aug:96.8-.34:exception: Iterated lens matched less than it should
          Lens: ../../src/qemu/libvirtd_qemu.aug:170.13-.43:
            Last match: ../../src/qemu/libvirtd_qemu.aug:18.52-.113:
            Not matching: ../../src/qemu/libvirtd_qemu.aug:12.19-.31:
          Error encountered at 48:27 (1615 characters into string)
          <\n    "/dev/ptmx", "/dev/kvm"|=|,\n]\nsave_image_format = "raw>
      
      Fixes: ab5ba570Signed-off-by: NJán Tomko <jtomko@redhat.com>
      be611aa4
    • P
      qemu: do not allow /dev/rtc or /dev/hpet access via the devices cgroup · ab5ba570
      Paolo Bonzini 提交于
      The RTC and HPET modes for the QEMU emulation tick have been dropped
      almost 9 years ago, in commit 25f3151ece1d5881826232bebccc21b588d4e03e.
      Do not allow them in the devices cgroup policy.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      ab5ba570
    • 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
  3. 18 5月, 2020 6 次提交
  4. 14 5月, 2020 2 次提交
    • 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
  5. 13 5月, 2020 4 次提交
  6. 12 5月, 2020 12 次提交