pve-qemu-qoup/debian/patches/pve
Fiona Ebner 6b7c1815e1 add patch to work around stuck guest IO with iothread and VirtIO block/SCSI
When using iothread, after commits
1665d9326f ("virtio-blk: implement BlockDevOps->drained_begin()")
766aa2de0f ("virtio-scsi: implement BlockDevOps->drained_begin()")
it can happen that polling gets stuck when draining. This would cause
IO in the guest to get completely stuck.

A workaround for users is stopping and resuming the vCPUs because that
would also stop and resume the dataplanes which would kick the host
notifiers.

This can happen with block jobs like backup and drive mirror as well
as with hotplug [2].

Reports in the community forum that might be about this issue[0][1]
and there is also one in the enterprise support channel.

As a workaround in the code, just re-enable notifications and kick the
virt queue after draining. Draining is already costly and rare, so no
need to worry about a performance penalty here. This was taken from
the following comment of a QEMU developer [3] (in my debugging,
I had already found re-enabling notification to work around the issue,
but also kicking the queue is more complete).

[0]: https://forum.proxmox.com/threads/137286/
[1]: https://forum.proxmox.com/threads/137536/
[2]: https://issues.redhat.com/browse/RHEL-3934
[3]: https://issues.redhat.com/browse/RHEL-3934?focusedId=23562096&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-23562096

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2023-12-11 16:56:50 +01:00
..
0001-PVE-Config-block-file-change-locking-default-to-off.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0002-PVE-Config-Adjust-network-script-path-to-etc-kvm.patch update submodule and patches to QEMU 8.0.0 2023-05-22 15:09:14 +02:00
0003-PVE-Config-set-the-CPU-model-to-kvm64-32-instead-of-.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0004-PVE-Config-ui-spice-default-to-pve-certificates.patch update submodule and patches to QEMU 8.0.0 2023-05-22 15:09:14 +02:00
0005-PVE-Config-glusterfs-no-default-logfile-if-daemonize.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0006-PVE-Config-rbd-block-rbd-disable-rbd_cache_writethro.patch update submodule and patches to QEMU 8.0.0 2023-05-22 15:09:14 +02:00
0007-PVE-Up-glusterfs-allow-partial-reads.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0008-PVE-Up-qemu-img-return-success-on-info-without-snaps.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0009-PVE-Up-qemu-img-dd-add-osize-and-read-from-to-stdin-.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0010-PVE-Up-qemu-img-dd-add-isize-parameter.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0011-PVE-Up-qemu-img-dd-add-n-skip_create.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0012-qemu-img-dd-add-l-option-for-loading-a-snapshot.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0013-PVE-virtio-balloon-improve-query-balloon.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0014-PVE-qapi-modify-query-machines.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0015-PVE-qapi-modify-spice-query.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0016-PVE-add-IOChannel-implementation-for-savevm-async.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0017-PVE-add-savevm-async-for-background-state-snapshots.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0018-PVE-add-optional-buffer-size-to-QEMUFile.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0019-PVE-block-add-the-zeroinit-block-driver-filter.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0020-PVE-Add-dummy-id-command-line-parameter.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0021-PVE-Config-Revert-target-i386-disable-LINT0-after-re.patch drop patch for custom get_link_status QMP command 2023-06-07 19:35:40 +02:00
0022-PVE-Up-Config-file-posix-make-locking-optiono-on-cre.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0023-PVE-monitor-disable-oob-capability.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0024-PVE-Compat-4.0-used-balloon-qemu-4-0-config-size-fal.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0025-PVE-Allow-version-code-in-machine-type.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0026-block-backup-move-bcs-bitmap-initialization-to-job-c.patch drop patch for custom get_link_status QMP command 2023-06-07 19:35:40 +02:00
0027-PVE-Backup-add-vma-backup-format-code.patch fix #4710: vma create: don't use O_DIRECT for tmpfs 2023-11-07 16:37:34 +01:00
0028-PVE-Backup-add-backup-dump-block-driver.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0029-PVE-Add-sequential-job-transaction-support.patch drop patch for custom get_link_status QMP command 2023-06-07 19:35:40 +02:00
0030-PVE-Backup-Proxmox-backup-patches-for-QEMU.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0031-PVE-Backup-pbs-restore-new-command-to-restore-from-p.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0032-PVE-Add-PBS-block-driver-to-map-backup-archives-into.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0033-PVE-redirect-stderr-to-journal-when-daemonized.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0034-PVE-Migrate-dirty-bitmap-state-via-savevm.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0035-migration-block-dirty-bitmap-migrate-other-bitmaps-e.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0036-PVE-fall-back-to-open-iscsi-initiatorname.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0037-PVE-block-stream-increase-chunk-size.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0038-block-io-accept-NULL-qiov-in-bdrv_pad_request.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0039-block-add-alloc-track-driver.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0040-Revert-block-rbd-workaround-for-ceph-issue-53784.patch drop patch for custom get_link_status QMP command 2023-06-07 19:35:40 +02:00
0041-Revert-block-rbd-fix-handling-of-holes-in-.bdrv_co_b.patch drop patch for custom get_link_status QMP command 2023-06-07 19:35:40 +02:00
0042-Revert-block-rbd-implement-bdrv_co_block_status.patch drop patch for custom get_link_status QMP command 2023-06-07 19:35:40 +02:00
0043-alloc-track-fix-deadlock-during-drop.patch drop patch for custom get_link_status QMP command 2023-06-07 19:35:40 +02:00
0044-migration-for-snapshots-hold-the-BQL-during-setup-ca.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0045-savevm-async-don-t-hold-BQL-during-setup.patch update submodule and patches to QEMU 8.1.2 2023-10-24 15:01:23 +02:00
0046-virtio-blk-scsi-work-around-iothread-polling-getting.patch add patch to work around stuck guest IO with iothread and VirtIO block/SCSI 2023-12-11 16:56:50 +01:00