1. 23 6月, 2020 3 次提交
  2. 22 6月, 2020 4 次提交
  3. 12 5月, 2020 1 次提交
    • P
      qemu: Refuse blockjobs on disk bus='sd' with -blockdev · b50a8354
      Peter Krempa 提交于
      We still have to use -drive to instantiate sd disks. Combining that with
      the new logic for blockjobs would be very complicated and not worth it
      given that 'sd' cards work only on few rarely used machine types of
      non-common architectures and libvirt didn't implement support for 'sd'
      bus controllers. This will allow us to use -blockdev for other kinds on
      such machines while sacrificing block jobs.
      
      Note: this is currently no-op as we mask-out the QEMU_CAPS_BLOCKDEV
      capability if any of the disks has bus='sd'.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      b50a8354
  4. 24 4月, 2020 2 次提交
    • P
      backup: Store error message for failed backups · b37fdfb9
      Peter Krempa 提交于
      If a backup job fails midway it's hard to figure out what happened as
      it's running asynchronous. Use the VIR_DOMAIN_JOB_ERRMSG job statistics
      field to pass through the error from the first failed backup-blockjob
      so that both the consumer of the virDomainGetJobStats and the
      corresponding event can see the error.
      
      event 'job-completed' for domain backup-test:
      	operation: 9
      	time_elapsed: 46
      	disk_total: 104857600
      	disk_processed: 10158080
      	disk_remaining: 94699520
      	success: 0
      	errmsg: No space left on device
      
      virsh domjobinfo backup-test --completed --anystats
      Job type:         Failed
      Operation:        Backup
      Time elapsed:     46           ms
      File processed:   9.688 MiB
      File remaining:   90.312 MiB
      File total:       100.000 MiB
      Error message:    No space left on device
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1812827Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      b37fdfb9
    • P
      qemu: Add free and copy function for qemuDomainJobInfo and use it · 72186f9c
      Peter Krempa 提交于
      In order to add a string to qemuDomainJobInfo we must ensure that it's
      freed and copied properly. Add helpers to copy and free the structure
      and adjust the code to use them properly for the new semantics.
      
      Additionally also allocation is changed to g_new0 as it includes the
      type and thus it's very easy to grep for all the allocations of a given
      type.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      72186f9c
  5. 15 4月, 2020 1 次提交
  6. 27 3月, 2020 1 次提交
  7. 09 3月, 2020 1 次提交
    • M
      qemu: Tell secdrivers which images are top parent · 13eb6c14
      Michal Privoznik 提交于
      When preparing images for block jobs we modify their seclabels so
      that QEMU can open them. However, as mentioned in the previous
      commit, secdrivers base some it their decisions whether the image
      they are working on is top of of the backing chain. Fortunately,
      in places where we call secdrivers we know this and the
      information can be passed to secdrivers.
      
      The problem is the following: after the first blockcommit from
      the base to one of the parents the XATTRs on the base image are
      not cleared and therefore the second attempt to do another
      blockcommit fails. This is caused by blockcommit code calling
      qemuSecuritySetImageLabel() over the base image, possibly
      multiple times (to ensure RW/RO access). A naive fix would be to
      call the restore function. But this is not possible, because that
      would deny QEMU the access to the base image.  Fortunately, we
      can use the fact that seclabels are remembered only for the top
      of the backing chain and not for the rest of the backing chain.
      And thanks to the previous commit we can tell secdrivers which
      images are top of the backing chain.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1803551Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
      13eb6c14
  8. 04 2月, 2020 2 次提交
  9. 24 1月, 2020 2 次提交
  10. 08 1月, 2020 1 次提交
  11. 07 1月, 2020 1 次提交
  12. 06 1月, 2020 5 次提交
  13. 03 1月, 2020 1 次提交
  14. 13 12月, 2019 6 次提交
  15. 10 12月, 2019 2 次提交