]> git.proxmox.com Git - pve-qemu.git/commit
update submodule and patches to 7.1.0
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 14 Oct 2022 12:07:13 +0000 (14:07 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 14 Oct 2022 12:52:29 +0000 (14:52 +0200)
commit5b15e2ecaf054107200a49c7d2509053fb91c9fe
tree9e93e052406abb19572ced16eacc1d4fe261d13e
parent2775b2e3788bfed64345046ce6a669bcdf28eb43
update submodule and patches to 7.1.0

Notable changes:
* The only big change is the switch to using a custom QIOChannel for
  savevm-async, because the previously used QEMUFileOps was dropped.

  Changes to the current implementation:

  * Switch to vector based methods as required for an IO channel. For
    short reads the passed-in IO vector is stuffed with zeroes at the
    end, just to be sure.

  * For reading: The documentation in include/io/channel.h states that
    at least one byte should be read, so also error out when whe are
    at the very end instead of returning 0.

  * For reading: Fix off-by-one error when request goes beyond end.

    The wrong code piece was:
    if ((pos + size) > maxlen) {
        size = maxlen - pos - 1;
    }

    Previously, the last byte would not be read. It's actually
    possible to get a snapshot .raw file that has content all the way
    up the final 512 byte (= BDRV_SECTOR_SIZE) boundary without any
    trailing zero bytes (I wrote a script to do it).

    Luckily, it didn't cause a real issue, because qemu_loadvm_state()
    is not interested in the final (i.e. QEMU_VM_VMDESCRIPTION)
    section. The buffer for reading it is simply freed up afterwards
    and the function will assume that it read the whole section, even
    if that's not the case.

  * For writing: Make use of the generated blk_pwritev() wrapper
    instead of manually wrapping the coroutine to simplify and save a
    few lines.

* Adapt to changed interfaces for blk_{pread,pwrite}:
  * a9262f551e ("block: Change blk_{pread,pwrite}() param order")
  * 3b35d4542c ("block: Add a 'flags' param to blk_pread()")
  * bf5b16fa40 ("block: Make blk_{pread,pwrite}() return 0 on success")
  Those changes especially affected the qemu-img dd patches, because
  the context also changed, but also some of our block drivers used
  the functions.

* Drop qemu-common.h include: it got renamed after essentially
  everything was moved to other headers. The only remaining user I
  could find for things dropped from the header between 7.0 and 7.1
  was qemu_get_vm_name() in the iscsi-initiatorname patch, but it
  already includes the header to which the function was moved.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
136 files changed:
debian/patches/bitmap-mirror/0001-drive-mirror-add-support-for-sync-bitmap-mode-never.patch
debian/patches/bitmap-mirror/0002-drive-mirror-add-support-for-conditional-and-always-.patch
debian/patches/bitmap-mirror/0003-mirror-add-check-for-bitmap-mode-without-bitmap.patch
debian/patches/bitmap-mirror/0004-mirror-switch-to-bdrv_dirty_bitmap_merge_internal.patch
debian/patches/bitmap-mirror/0006-mirror-move-some-checks-to-qmp.patch
debian/patches/extra/0001-monitor-qmp-fix-race-with-clients-disconnecting-earl.patch
debian/patches/extra/0002-block-gluster-correctly-set-max_pdiscard.patch [deleted file]
debian/patches/extra/0003-block-vmdk-Fix-reopening-bs-file.patch [deleted file]
debian/patches/extra/0004-linux-aio-fix-unbalanced-plugged-counter-in-laio_io_.patch [deleted file]
debian/patches/extra/0005-pci-fix-overflow-in-snprintf-string-formatting.patch [deleted file]
debian/patches/extra/0006-target-i386-kvm-Fix-disabling-MPX-on-cpu-host-with-M.patch [deleted file]
debian/patches/extra/0007-coroutine-ucontext-use-QEMU_DEFINE_STATIC_CO_TLS.patch [deleted file]
debian/patches/extra/0008-coroutine-use-QEMU_DEFINE_STATIC_CO_TLS.patch [deleted file]
debian/patches/extra/0009-coroutine-Rename-qemu_coroutine_inc-dec_pool_size.patch [deleted file]
debian/patches/extra/0010-coroutine-Revert-to-constant-batch-size.patch [deleted file]
debian/patches/extra/0011-target-i386-do-not-consult-nonexistent-host-leaves.patch [deleted file]
debian/patches/extra/0012-virtio-scsi-fix-ctrl-and-event-handler-functions-in-.patch [deleted file]
debian/patches/extra/0013-virtio-scsi-don-t-waste-CPU-polling-the-event-virtqu.patch [deleted file]
debian/patches/extra/0014-vhost-Track-descriptor-chain-in-private-at-SVQ.patch [deleted file]
debian/patches/extra/0015-vhost-Fix-device-s-used-descriptor-dequeue.patch [deleted file]
debian/patches/extra/0016-vdpa-Fix-bad-index-calculus-at-vhost_vdpa_get_vring_.patch [deleted file]
debian/patches/extra/0017-vdpa-Fix-index-calculus-at-vhost_vdpa_svqs_start.patch [deleted file]
debian/patches/extra/0018-hw-virtio-Replace-g_memdup-by-g_memdup2.patch [deleted file]
debian/patches/extra/0019-vhost-Fix-element-in-vhost_svq_add-failure.patch [deleted file]
debian/patches/extra/0020-io_uring-fix-short-read-slow-path.patch [deleted file]
debian/patches/extra/0021-e1000-set-RX-descriptor-status-in-a-separate-operati.patch [deleted file]
debian/patches/pve/0001-PVE-Config-block-file-change-locking-default-to-off.patch
debian/patches/pve/0003-PVE-Config-set-the-CPU-model-to-kvm64-32-instead-of-.patch
debian/patches/pve/0005-PVE-Config-glusterfs-no-default-logfile-if-daemonize.patch
debian/patches/pve/0006-PVE-Config-rbd-block-rbd-disable-rbd_cache_writethro.patch
debian/patches/pve/0007-PVE-Up-qmp-add-get_link_status.patch
debian/patches/pve/0008-PVE-Up-glusterfs-allow-partial-reads.patch
debian/patches/pve/0009-PVE-Up-qemu-img-return-success-on-info-without-snaps.patch
debian/patches/pve/0010-PVE-Up-qemu-img-dd-add-osize-and-read-from-to-stdin-.patch
debian/patches/pve/0011-PVE-Up-qemu-img-dd-add-isize-parameter.patch
debian/patches/pve/0012-PVE-Up-qemu-img-dd-add-n-skip_create.patch
debian/patches/pve/0013-PVE-virtio-balloon-improve-query-balloon.patch
debian/patches/pve/0014-PVE-qapi-modify-query-machines.patch
debian/patches/pve/0015-PVE-qapi-modify-spice-query.patch
debian/patches/pve/0016-PVE-add-IOChannel-implementation-for-savevm-async.patch [new file with mode: 0644]
debian/patches/pve/0016-PVE-add-savevm-async-for-background-state-snapshots.patch [deleted file]
debian/patches/pve/0017-PVE-add-optional-buffer-size-to-QEMUFile.patch [deleted file]
debian/patches/pve/0017-PVE-add-savevm-async-for-background-state-snapshots.patch [new file with mode: 0644]
debian/patches/pve/0018-PVE-add-optional-buffer-size-to-QEMUFile.patch [new file with mode: 0644]
debian/patches/pve/0018-PVE-block-add-the-zeroinit-block-driver-filter.patch [deleted file]
debian/patches/pve/0019-PVE-Add-dummy-id-command-line-parameter.patch [deleted file]
debian/patches/pve/0019-PVE-block-add-the-zeroinit-block-driver-filter.patch [new file with mode: 0644]
debian/patches/pve/0020-PVE-Add-dummy-id-command-line-parameter.patch [new file with mode: 0644]
debian/patches/pve/0020-PVE-Config-Revert-target-i386-disable-LINT0-after-re.patch [deleted file]
debian/patches/pve/0021-PVE-Config-Revert-target-i386-disable-LINT0-after-re.patch [new file with mode: 0644]
debian/patches/pve/0021-PVE-Up-Config-file-posix-make-locking-optiono-on-cre.patch [deleted file]
debian/patches/pve/0022-PVE-Up-Config-file-posix-make-locking-optiono-on-cre.patch [new file with mode: 0644]
debian/patches/pve/0022-PVE-monitor-disable-oob-capability.patch [deleted file]
debian/patches/pve/0023-PVE-Compat-4.0-used-balloon-qemu-4-0-config-size-fal.patch [deleted file]
debian/patches/pve/0023-PVE-monitor-disable-oob-capability.patch [new file with mode: 0644]
debian/patches/pve/0024-PVE-Allow-version-code-in-machine-type.patch [deleted file]
debian/patches/pve/0024-PVE-Compat-4.0-used-balloon-qemu-4-0-config-size-fal.patch [new file with mode: 0644]
debian/patches/pve/0025-PVE-Allow-version-code-in-machine-type.patch [new file with mode: 0644]
debian/patches/pve/0025-block-backup-move-bcs-bitmap-initialization-to-job-c.patch [deleted file]
debian/patches/pve/0026-PVE-Backup-add-vma-backup-format-code.patch [deleted file]
debian/patches/pve/0026-block-backup-move-bcs-bitmap-initialization-to-job-c.patch [new file with mode: 0644]
debian/patches/pve/0027-PVE-Backup-add-backup-dump-block-driver.patch [deleted file]
debian/patches/pve/0027-PVE-Backup-add-vma-backup-format-code.patch [new file with mode: 0644]
debian/patches/pve/0028-PVE-Backup-add-backup-dump-block-driver.patch [new file with mode: 0644]
debian/patches/pve/0028-PVE-Backup-proxmox-backup-patches-for-qemu.patch [deleted file]
debian/patches/pve/0029-PVE-Backup-pbs-restore-new-command-to-restore-from-p.patch [deleted file]
debian/patches/pve/0029-PVE-Backup-proxmox-backup-patches-for-qemu.patch [new file with mode: 0644]
debian/patches/pve/0030-PVE-Backup-Add-dirty-bitmap-tracking-for-incremental.patch [deleted file]
debian/patches/pve/0030-PVE-Backup-pbs-restore-new-command-to-restore-from-p.patch [new file with mode: 0644]
debian/patches/pve/0031-PVE-Backup-Add-dirty-bitmap-tracking-for-incremental.patch [new file with mode: 0644]
debian/patches/pve/0031-PVE-various-PBS-fixes.patch [deleted file]
debian/patches/pve/0032-PVE-Add-PBS-block-driver-to-map-backup-archives-into.patch [deleted file]
debian/patches/pve/0032-PVE-various-PBS-fixes.patch [new file with mode: 0644]
debian/patches/pve/0033-PVE-Add-PBS-block-driver-to-map-backup-archives-into.patch [new file with mode: 0644]
debian/patches/pve/0033-PVE-add-query_proxmox_support-QMP-command.patch [deleted file]
debian/patches/pve/0034-PVE-add-query-pbs-bitmap-info-QMP-call.patch [deleted file]
debian/patches/pve/0034-PVE-add-query_proxmox_support-QMP-command.patch [new file with mode: 0644]
debian/patches/pve/0035-PVE-add-query-pbs-bitmap-info-QMP-call.patch [new file with mode: 0644]
debian/patches/pve/0035-PVE-redirect-stderr-to-journal-when-daemonized.patch [deleted file]
debian/patches/pve/0036-PVE-Add-sequential-job-transaction-support.patch [deleted file]
debian/patches/pve/0036-PVE-redirect-stderr-to-journal-when-daemonized.patch [new file with mode: 0644]
debian/patches/pve/0037-PVE-Add-sequential-job-transaction-support.patch [new file with mode: 0644]
debian/patches/pve/0037-PVE-Backup-Use-a-transaction-to-synchronize-job-stat.patch [deleted file]
debian/patches/pve/0038-PVE-Backup-Don-t-block-on-finishing-and-cleanup-crea.patch [deleted file]
debian/patches/pve/0038-PVE-Backup-Use-a-transaction-to-synchronize-job-stat.patch [new file with mode: 0644]
debian/patches/pve/0039-PVE-Backup-Don-t-block-on-finishing-and-cleanup-crea.patch [new file with mode: 0644]
debian/patches/pve/0039-PVE-Migrate-dirty-bitmap-state-via-savevm.patch [deleted file]
debian/patches/pve/0040-PVE-Migrate-dirty-bitmap-state-via-savevm.patch [new file with mode: 0644]
debian/patches/pve/0040-migration-block-dirty-bitmap-migrate-other-bitmaps-e.patch [deleted file]
debian/patches/pve/0041-PVE-fall-back-to-open-iscsi-initiatorname.patch [deleted file]
debian/patches/pve/0041-migration-block-dirty-bitmap-migrate-other-bitmaps-e.patch [new file with mode: 0644]
debian/patches/pve/0042-PVE-Use-coroutine-QMP-for-backup-cancel_backup.patch [deleted file]
debian/patches/pve/0042-PVE-fall-back-to-open-iscsi-initiatorname.patch [new file with mode: 0644]
debian/patches/pve/0043-PBS-add-master-key-support.patch [deleted file]
debian/patches/pve/0043-PVE-Use-coroutine-QMP-for-backup-cancel_backup.patch [new file with mode: 0644]
debian/patches/pve/0044-PBS-add-master-key-support.patch [new file with mode: 0644]
debian/patches/pve/0044-PVE-block-pbs-fast-path-reads-without-allocation-if-.patch [deleted file]
debian/patches/pve/0045-PVE-block-pbs-fast-path-reads-without-allocation-if-.patch [new file with mode: 0644]
debian/patches/pve/0045-PVE-block-stream-increase-chunk-size.patch [deleted file]
debian/patches/pve/0046-PVE-block-stream-increase-chunk-size.patch [new file with mode: 0644]
debian/patches/pve/0046-block-io-accept-NULL-qiov-in-bdrv_pad_request.patch [deleted file]
debian/patches/pve/0047-block-add-alloc-track-driver.patch [deleted file]
debian/patches/pve/0047-block-io-accept-NULL-qiov-in-bdrv_pad_request.patch [new file with mode: 0644]
debian/patches/pve/0048-PVE-whitelist-invalid-QAPI-names-for-backwards-compa.patch [deleted file]
debian/patches/pve/0048-block-add-alloc-track-driver.patch [new file with mode: 0644]
debian/patches/pve/0049-PVE-savevm-async-register-yank-before-migration_inco.patch [deleted file]
debian/patches/pve/0049-PVE-whitelist-invalid-QAPI-names-for-backwards-compa.patch [new file with mode: 0644]
debian/patches/pve/0050-PVE-savevm-async-register-yank-before-migration_inco.patch [new file with mode: 0644]
debian/patches/pve/0050-qemu-img-dd-add-l-option-for-loading-a-snapshot.patch [deleted file]
debian/patches/pve/0051-qemu-img-dd-add-l-option-for-loading-a-snapshot.patch [new file with mode: 0644]
debian/patches/pve/0051-vma-allow-partial-restore.patch [deleted file]
debian/patches/pve/0052-pbs-namespace-support.patch [deleted file]
debian/patches/pve/0052-vma-allow-partial-restore.patch [new file with mode: 0644]
debian/patches/pve/0053-Revert-block-rbd-workaround-for-ceph-issue-53784.patch [deleted file]
debian/patches/pve/0053-pbs-namespace-support.patch [new file with mode: 0644]
debian/patches/pve/0054-Revert-block-rbd-fix-handling-of-holes-in-.bdrv_co_b.patch [deleted file]
debian/patches/pve/0054-Revert-block-rbd-workaround-for-ceph-issue-53784.patch [new file with mode: 0644]
debian/patches/pve/0055-Revert-block-rbd-fix-handling-of-holes-in-.bdrv_co_b.patch [new file with mode: 0644]
debian/patches/pve/0055-Revert-block-rbd-implement-bdrv_co_block_status.patch [deleted file]
debian/patches/pve/0056-PVE-Backup-create-jobs-correctly-cancel-in-error-sce.patch [deleted file]
debian/patches/pve/0056-Revert-block-rbd-implement-bdrv_co_block_status.patch [new file with mode: 0644]
debian/patches/pve/0057-PVE-Backup-create-jobs-correctly-cancel-in-error-sce.patch [new file with mode: 0644]
debian/patches/pve/0057-PVE-Backup-ensure-jobs-in-di_list-are-referenced.patch [deleted file]
debian/patches/pve/0058-PVE-Backup-avoid-segfault-issues-upon-backup-cancel.patch [deleted file]
debian/patches/pve/0058-PVE-Backup-ensure-jobs-in-di_list-are-referenced.patch [new file with mode: 0644]
debian/patches/pve/0059-PVE-Backup-avoid-segfault-issues-upon-backup-cancel.patch [new file with mode: 0644]
debian/patches/pve/0059-vma-create-support-64KiB-unaligned-input-images.patch [deleted file]
debian/patches/pve/0060-vma-create-avoid-triggering-assertion-in-error-case.patch [deleted file]
debian/patches/pve/0060-vma-create-support-64KiB-unaligned-input-images.patch [new file with mode: 0644]
debian/patches/pve/0061-block-alloc-track-avoid-premature-break.patch [deleted file]
debian/patches/pve/0061-vma-create-avoid-triggering-assertion-in-error-case.patch [new file with mode: 0644]
debian/patches/pve/0062-PVE-Backup-allow-passing-max-workers-performance-set.patch [deleted file]
debian/patches/pve/0062-block-alloc-track-avoid-premature-break.patch [new file with mode: 0644]
debian/patches/pve/0063-PVE-Backup-allow-passing-max-workers-performance-set.patch [new file with mode: 0644]
debian/patches/series
qemu