public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/qemu] eln: * Mon Nov 23 2026 Miroslav Rezanina <mrezanin@redhat.com> - 11.1.0-5
@ 2026-11-25  8:58 Miroslav Rezanina
  0 siblings, 0 replies; only message in thread
From: Miroslav Rezanina @ 2026-11-25  8:58 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/qemu
            Branch : eln
            Commit : 8a56ae9cccaec7392fce1f1c4de1857191cda006
            Author : Miroslav Rezanina <mrezanin@redhat.com>
            Date   : 2026-11-24T20:22:07-05:00
            Stats  : +1859/-1 in 18 file(s)
            URL    : https://src.fedoraproject.org/rpms/qemu/c/8a56ae9cccaec7392fce1f1c4de1857191cda006?branch=eln

            Log:
            * Mon Nov 23 2026 Miroslav Rezanina <mrezanin@redhat.com> - 11.1.0-5

- kvm-hw-vfio-thread-vf-token-through-iommufd-bind.patch [RHEL-256795]
- kvm-pr-manager-helper-fix-sense-buffer-overflow.patch [RHEL-274966]
- kvm-scsi-increase-sense-buffer-size-in-scsi_SG_IO.patch [RHEL-274966]
- kvm-hw-scsi-disk-move-MIG_EVENT_FAILED-into-a-new-functi.patch [RHEL-274966]
- kvm-qemu-pr-helper-add-PR_HELPER_CLEANUP-for-live-migrat.patch [RHEL-274966]
- kvm-pr-manager-helper-add-PR_HELPER_CLEANUP-command-supp.patch [RHEL-274966]
- kvm-file-posix-forward-PR_HELPER_CLEANUP-commands-to-pr-.patch [RHEL-274966]
- kvm-scsi-clean-up-persistent-reservation-state-after-mig.patch [RHEL-274966]
- kvm-scsi-use-REGISTER-AND-IGNORE-EXISTING-KEY-for-robust.patch [RHEL-274966]
- kvm-scsi-document-PR_HELPER_CLEANUP-command.patch [RHEL-274966]
- kvm-sbsa-gwdt-reduce-code-indent.patch [RHEL-305179]
- kvm-arm-gwdt-consolidate-clear-WS0-and-WS1-on-explicit-r.patch [RHEL-305179]
- kvm-arm-gwdt-simplify-WCV-update-condition.patch [RHEL-305179]
- kvm-sbsa-gwdt-rename-sbsa_gwdt_update_timer-to-sbsa_gwdt.patch [RHEL-305179]
- kvm-sbsa-gwdt-don-t-arm-timer-for-compare-values-above-I.patch [RHEL-305179]
- kvm-sbsa-gwdt-reschedule-timer-on-direct-WCV-load.patch [RHEL-305179]
- kvm-tests-arm-virt-add-GWDT-tests.patch [RHEL-305179]
- Resolves: RHEL-256795
  (NVIDIA:Backport hw/vfio: thread vf-token through iommufd bind - RHEL 10.4)
- Resolves: RHEL-274966
  (live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.)
- Resolves: RHEL-305179
  (Backport fixes for the acpi generic watchdog)

---
diff --git a/kvm-arm-gwdt-consolidate-clear-WS0-and-WS1-on-explicit-r.patch b/kvm-arm-gwdt-consolidate-clear-WS0-and-WS1-on-explicit-r.patch
new file mode 100644
index 0000000..2ade667
--- /dev/null
+++ b/kvm-arm-gwdt-consolidate-clear-WS0-and-WS1-on-explicit-r.patch
@@ -0,0 +1,72 @@
+From c922e44cd6989cc4437dacd7f6569391811466ee Mon Sep 17 00:00:00 2001
+From: Sebastian Ott <sebott@redhat.com>
+Date: Thu, 12 Nov 2026 12:37:31 +0100
+Subject: [PATCH 12/18] arm: gwdt: consolidate clear WS0 and WS1 on explicit
+ refresh
+
+RH-Author: Sebastian Ott <sebott@redhat.com>
+RH-MergeRequest: 536: sbsa-gwdt: backport fixes
+RH-Jira: RHEL-305179
+RH-Acked-by: Eric Auger <eric.auger@redhat.com>
+RH-Acked-by: Gavin Shan <gshan@redhat.com>
+RH-Commit: [2/7] efe7e3bd1b243910657da68ff732698219c61137 (seott1/cos-qemu-kvm)
+
+JIRA: https://redhat.atlassian.net/browse/RHEL-305179
+
+Current impl had logic scattered all over the place and WCS was implicitly
+cleared on WCS write.
+
+Consolidate clear action in one place under EXPLICIT_REFRESH condition.
+
+Signed-off-by: Igor Mammedov <imammedo@redhat.com>
+Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
+Message-id: 20260902122646.2848464-3-imammedo@redhat.com
+Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
+(cherry picked from commit 91c35a581c52fd564e06cdc0d786c343450c8d28)
+Signed-off-by: Sebastian Ott <sebott@redhat.com>
+---
+ hw/watchdog/sbsa_gwdt.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/hw/watchdog/sbsa_gwdt.c b/hw/watchdog/sbsa_gwdt.c
+index 7cc5609b83..2aa44573a7 100644
+--- a/hw/watchdog/sbsa_gwdt.c
++++ b/hw/watchdog/sbsa_gwdt.c
+@@ -105,6 +105,10 @@ static void sbsa_gwdt_update_timer(SBSA_GWDTState *s, WdtRefreshType rtype)
+ 
+     timer_del(s->timer);
+ 
++    if (rtype == EXPLICIT_REFRESH) {
++        s->wcs &= ~(SBSA_GWDT_WCS_WS0 | SBSA_GWDT_WCS_WS1);
++    }
++
+     if (!(s->wcs & SBSA_GWDT_WCS_EN)) {
+         return;
+     }
+@@ -134,8 +138,6 @@ static void sbsa_gwdt_rwrite(void *opaque, hwaddr offset, uint64_t data,
+ 
+     trace_sbsa_gwdt_refresh_write(offset, data);
+     if (offset == SBSA_GWDT_WRR) {
+-        s->wcs &= ~(SBSA_GWDT_WCS_WS0 | SBSA_GWDT_WCS_WS1);
+-
+         sbsa_gwdt_update_timer(s, EXPLICIT_REFRESH);
+     } else {
+         qemu_log_mask(LOG_GUEST_ERROR, "bad address in refresh frame write :"
+@@ -157,14 +159,12 @@ static void sbsa_gwdt_write(void *opaque, hwaddr offset, uint64_t data,
+ 
+     case SBSA_GWDT_WOR:
+         s->worl = data;
+-        s->wcs &= ~(SBSA_GWDT_WCS_WS0 | SBSA_GWDT_WCS_WS1);
+         qemu_set_irq(s->irq, 0);
+         sbsa_gwdt_update_timer(s, EXPLICIT_REFRESH);
+         break;
+ 
+     case SBSA_GWDT_WORU:
+         s->woru = data & SBSA_GWDT_WOR_MASK;
+-        s->wcs &= ~(SBSA_GWDT_WCS_WS0 | SBSA_GWDT_WCS_WS1);
+         qemu_set_irq(s->irq, 0);
+         sbsa_gwdt_update_timer(s, EXPLICIT_REFRESH);
+         break;
+-- 
+2.56.0
+

diff --git a/kvm-arm-gwdt-simplify-WCV-update-condition.patch b/kvm-arm-gwdt-simplify-WCV-update-condition.patch
new file mode 100644
index 0000000..735d375
--- /dev/null
+++ b/kvm-arm-gwdt-simplify-WCV-update-condition.patch
@@ -0,0 +1,74 @@
+From 9c5b6c98b17b0dee0530d1d30f07ac55362bd21b Mon Sep 17 00:00:00 2001
+From: Sebastian Ott <sebott@redhat.com>
+Date: Thu, 12 Nov 2026 12:37:31 +0100
+Subject: [PATCH 13/18] arm: gwdt: simplify WCV update condition
+
+RH-Author: Sebastian Ott <sebott@redhat.com>
+RH-MergeRequest: 536: sbsa-gwdt: backport fixes
+RH-Jira: RHEL-305179
+RH-Acked-by: Eric Auger <eric.auger@redhat.com>
+RH-Acked-by: Gavin Shan <gshan@redhat.com>
+RH-Commit: [3/7] ddbe99bcce5605f3d8a978b497e28a147e861ce2 (seott1/cos-qemu-kvm)
+
+JIRA: https://redhat.atlassian.net/browse/RHEL-305179
+
+Current code implements SBSA 5.0, revision 1 of the generic watchdog.
+Which requires WCV retain time when WS1 was triggered.
+
+towards that effect sbsa_gwdt_update_timer(), used condition
+   (rtype == TIMEOUT_REFRESH) && !(s->wcs & SBSA_GWDT_WCS_WS0)
+to make sure that WCV won't be updated on WS1.
+
+However that is dead code as sbsa_gwdt_timer_sysinterrupt() when
+signalling WS1, never calls sbsa_gwdt_update_timer().
+
+Delete dead condition and add assert to make sure that
+sbsa_gwdt_update_timer() is never called unnoticed on WS1 path.
+
+Above change leaves us with always true remaining if condition:
+  (rtype == EXPLICIT_REFRESH) || (rtype == TIMEOUT_REFRESH)
+drop it and update WCV unconditionaly.
+
+Signed-off-by: Igor Mammedov <imammedo@redhat.com>
+Message-id: 20260902122646.2848464-4-imammedo@redhat.com
+Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
+[PMM: expanded comment]
+Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
+(cherry picked from commit b313836a27a7cf02e3b92ba055a43361df987796)
+Signed-off-by: Sebastian Ott <sebott@redhat.com>
+---
+ hw/watchdog/sbsa_gwdt.c | 18 ++++++++++++------
+ 1 file changed, 12 insertions(+), 6 deletions(-)
+
+diff --git a/hw/watchdog/sbsa_gwdt.c b/hw/watchdog/sbsa_gwdt.c
+index 2aa44573a7..0ed29faf13 100644
+--- a/hw/watchdog/sbsa_gwdt.c
++++ b/hw/watchdog/sbsa_gwdt.c
+@@ -123,12 +123,18 @@ static void sbsa_gwdt_update_timer(SBSA_GWDTState *s, WdtRefreshType rtype)
+     timeout = muldiv64(timeout, NANOSECONDS_PER_SECOND, s->freq);
+     timeout += qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
+ 
+-    if ((rtype == EXPLICIT_REFRESH) || ((rtype == TIMEOUT_REFRESH) &&
+-            (!(s->wcs & SBSA_GWDT_WCS_WS0)))) {
+-        /* store the current timeout value into compare registers */
+-        s->wcvu = timeout >> 32;
+-        s->wcvl = timeout;
+-    }
++    /*
++     * We only call this function for an explicit refresh (which
++     * clears WS0 and WS1) or after the first timeout setting WS0;
++     * so we can always load the compare registers with the new
++     * timeout value (which is not permitted when the second timeout
++     * that sets WS1 happens).
++     */
++    g_assert(!(s->wcs & SBSA_GWDT_WCS_WS1));
++
++    s->wcvu = timeout >> 32;
++    s->wcvl = timeout;
++
+     timer_mod(s->timer, timeout);
+ }
+ 
+-- 
+2.56.0
+

diff --git a/kvm-file-posix-forward-PR_HELPER_CLEANUP-commands-to-pr-.patch b/kvm-file-posix-forward-PR_HELPER_CLEANUP-commands-to-pr-.patch
new file mode 100644
index 0000000..41587cf
--- /dev/null
+++ b/kvm-file-posix-forward-PR_HELPER_CLEANUP-commands-to-pr-.patch
@@ -0,0 +1,56 @@
+From e46155af4a0162cb56a6eabc75ceb15be336e2cd Mon Sep 17 00:00:00 2001
+From: Stefan Hajnoczi <stefanha@redhat.com>
+Date: Tue, 13 Oct 2026 14:17:50 -0400
+Subject: [PATCH 07/18] file-posix: forward PR_HELPER_CLEANUP commands to
+ pr-manager
+
+RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
+RH-MergeRequest: 534: scsi: clean up persistent reservation state after migration
+RH-Jira: RHEL-274966
+RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
+RH-Acked-by: Eric Blake <eblake@redhat.com>
+RH-Commit: [6/9] 11336e326097d08960de08fbca705e076d4a089e (stefanha/centos-stream-qemu-kvm)
+
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+Reviewed-by: Eric Blake <eblake@redhat.com>
+Link: https://lore.kernel.org/r/20261013181752.1299456-7-stefanha@redhat.com
+Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
+(cherry picked from commit c6cae61e469697df4f998ced2b017ebff3530526)
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+---
+ block/file-posix.c | 18 +++++++++++++-----
+ 1 file changed, 13 insertions(+), 5 deletions(-)
+
+diff --git a/block/file-posix.c b/block/file-posix.c
+index 076ee7e8b7..e1fc8768c1 100644
+--- a/block/file-posix.c
++++ b/block/file-posix.c
+@@ -4350,12 +4350,20 @@ hdev_co_ioctl(BlockDriverState *bs, unsigned long int req, void *buf)
+         return ret;
+     }
+ 
+-    if (req == SG_IO && s->pr_mgr) {
++    if (req == SG_IO) {
+         struct sg_io_hdr *io_hdr = buf;
+-        if (io_hdr->cmdp[0] == PERSISTENT_RESERVE_OUT ||
+-            io_hdr->cmdp[0] == PERSISTENT_RESERVE_IN) {
+-            return pr_manager_execute(s->pr_mgr, qemu_get_current_aio_context(),
+-                                      s->fd, io_hdr);
++
++        if (s->pr_mgr) {
++            if (io_hdr->cmdp[0] == PERSISTENT_RESERVE_OUT ||
++                io_hdr->cmdp[0] == PERSISTENT_RESERVE_IN ||
++                io_hdr->cmdp[0] == PR_HELPER_CLEANUP) {
++                return pr_manager_execute(s->pr_mgr, qemu_get_current_aio_context(),
++                                          s->fd, io_hdr);
++            }
++        } else if (io_hdr->cmdp[0] == PR_HELPER_CLEANUP) {
++            /* This is a nop without pr-manager */
++            io_hdr->status = GOOD;
++            return 0;
+         }
+     }
+ 
+-- 
+2.56.0
+

diff --git a/kvm-hw-scsi-disk-move-MIG_EVENT_FAILED-into-a-new-functi.patch b/kvm-hw-scsi-disk-move-MIG_EVENT_FAILED-into-a-new-functi.patch
new file mode 100644
index 0000000..07a2fd1
--- /dev/null
+++ b/kvm-hw-scsi-disk-move-MIG_EVENT_FAILED-into-a-new-functi.patch
@@ -0,0 +1,71 @@
+From bd620d96b0d365415d3c2702e55c4aacfe3d1f38 Mon Sep 17 00:00:00 2001
+From: Stefan Hajnoczi <stefanha@redhat.com>
+Date: Tue, 13 Oct 2026 14:17:47 -0400
+Subject: [PATCH 04/18] hw/scsi-disk: move MIG_EVENT_FAILED into a new function
+
+RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
+RH-MergeRequest: 534: scsi: clean up persistent reservation state after migration
+RH-Jira: RHEL-274966
+RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
+RH-Acked-by: Eric Blake <eblake@redhat.com>
+RH-Commit: [3/9] 3956e81c130cbeb21b94186a79b9ec88ab256186 (stefanha/centos-stream-qemu-kvm)
+
+Move the MIG_EVENT_FAILED logic from scsi_block_migration_notifier()
+into its own new scsi_block_migration_failed() function. The next commit
+adds logic for handling another event, so doing that in dedicated
+functions makes the code easier to read.
+
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+Reviewed-by: Eric Blake <eblake@redhat.com>
+Link: https://lore.kernel.org/r/20261013181752.1299456-4-stefanha@redhat.com
+Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
+(cherry picked from commit 2e5e075635967d3974fc893b9f44af6e418ff858)
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+---
+ hw/scsi/scsi-disk.c | 26 ++++++++++++++++----------
+ 1 file changed, 16 insertions(+), 10 deletions(-)
+
+diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
+index 1b0cce128c..32a537f6a0 100644
+--- a/hw/scsi/scsi-disk.c
++++ b/hw/scsi/scsi-disk.c
+@@ -2749,20 +2749,26 @@ static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun,
+  * fails because the destination may have already preempted and we need to get
+  * the reservation back.
+  */
++static void scsi_block_migration_failed(SCSIDiskState *s)
++{
++    SCSIDevice *d = &s->qdev;
++    Error *local_err = NULL;
++
++    if (!scsi_generic_pr_state_preempt(d, &local_err)) {
++        /* MIG_EVENT_FAILED cannot fail, so just warn */
++        error_prepend(&local_err, "scsi-block migration rollback: ");
++        warn_report_err(local_err);
++    }
++}
++
+ static int scsi_block_migration_notifier(NotifierWithReturn *notifier,
+                                          MigrationEvent *e, Error **errp)
+ {
+-    if (e->type == MIG_EVENT_FAILED) {
+-        SCSIDiskState *s =
+-            container_of(notifier, SCSIDiskState, migration_notifier);
+-        SCSIDevice *d = &s->qdev;
+-        Error *local_err = NULL;
++    SCSIDiskState *s =
++        container_of(notifier, SCSIDiskState, migration_notifier);
+ 
+-        if (!scsi_generic_pr_state_preempt(d, &local_err)) {
+-            /* MIG_EVENT_FAILED cannot fail, so just warn */
+-            error_prepend(&local_err, "scsi-block migration rollback: ");
+-            warn_report_err(local_err);
+-        }
++    if (e->type == MIG_EVENT_FAILED) {
++        scsi_block_migration_failed(s);
+     }
+     return 0;
+ }
+-- 
+2.56.0
+

diff --git a/kvm-hw-vfio-thread-vf-token-through-iommufd-bind.patch b/kvm-hw-vfio-thread-vf-token-through-iommufd-bind.patch
new file mode 100644
index 0000000..861ef27
--- /dev/null
+++ b/kvm-hw-vfio-thread-vf-token-through-iommufd-bind.patch
@@ -0,0 +1,68 @@
+From b5c996c932ccb405b3632254c390ef45673c2f92 Mon Sep 17 00:00:00 2001
+From: Tushar Dave <tdave@nvidia.com>
+Date: Tue, 8 Sep 2026 11:07:31 -0500
+Subject: [PATCH 01/18] hw/vfio: thread vf-token through iommufd bind
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+RH-Author: Rodolfo Vick <None>
+RH-MergeRequest: 533: hw/vfio: thread vf-token through iommufd bind
+RH-Jira: RHEL-256795
+RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
+RH-Acked-by: Eric Auger <eric.auger@redhat.com>
+RH-Commit: [1/1] 26053031a64ac14e9db3153d103b64a4a90cb80b (rovick1/qemu-kvm)
+
+JIRA: https://redhat.atlassian.net/browse/RHEL-256795
+
+A VF fails to bind through the iommufd/cdev backend when its PF is
+bound to vfio-pci and requires a matching VF token.
+
+QEMU currently initializes struct vfio_device_bind_iommufd without
+the token flag or token UUID.
+
+Pass the existing vf-token device property to the IOMMUFD bind ioctl
+for PCI devices.
+
+Signed-off-by: Tushar Dave <tdave@nvidia.com>
+Reviewed-by: Shameer Kolothum <skolothumtho@nvidia.com>
+Reviewed-by: Cédric Le Goater <clg@redhat.com>
+Link: https://lore.kernel.org/qemu-devel/20260908160731.1658621-1-tdave@nvidia.com
+Signed-off-by: Cédric Le Goater <clg@redhat.com>
+(cherry picked from commit 48d3ed46110f7376c6c2b0f6277499766eb45e8b)
+Signed-off-by: Rodolfo Vick <rovick@redhat.com>
+---
+ hw/vfio/iommufd.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/hw/vfio/iommufd.c b/hw/vfio/iommufd.c
+index 6ff668d259..1390291745 100644
+--- a/hw/vfio/iommufd.c
++++ b/hw/vfio/iommufd.c
+@@ -155,6 +155,7 @@ static void iommufd_cdev_kvm_device_del(VFIODevice *vbasedev)
+ 
+ static bool iommufd_cdev_connect_and_bind(VFIODevice *vbasedev, Error **errp)
+ {
++    VFIOPCIDevice *vdev = vfio_pci_from_vfio_device(vbasedev);
+     IOMMUFDBackend *iommufd = vbasedev->iommufd;
+     struct vfio_device_bind_iommufd bind = {
+         .argsz = sizeof(bind),
+@@ -180,6 +181,15 @@ static bool iommufd_cdev_connect_and_bind(VFIODevice *vbasedev, Error **errp)
+ 
+     /* Bind device to iommufd */
+     bind.iommufd = iommufd->fd;
++
++    /*
++     * Pass the VF token when binding a PCI device.
++     */
++    if (vdev && !qemu_uuid_is_null(&vdev->vf_token)) {
++        bind.flags |= VFIO_DEVICE_BIND_FLAG_TOKEN;
++        bind.token_uuid_ptr = (uintptr_t)&vdev->vf_token;
++    }
++
+     if (ioctl(vbasedev->fd, VFIO_DEVICE_BIND_IOMMUFD, &bind)) {
+         error_setg_errno(errp, errno, "error bind device fd=%d to iommufd=%d",
+                          vbasedev->fd, bind.iommufd);
+-- 
+2.56.0
+

diff --git a/kvm-pr-manager-helper-add-PR_HELPER_CLEANUP-command-supp.patch b/kvm-pr-manager-helper-add-PR_HELPER_CLEANUP-command-supp.patch
new file mode 100644
index 0000000..909153f
--- /dev/null
+++ b/kvm-pr-manager-helper-add-PR_HELPER_CLEANUP-command-supp.patch
@@ -0,0 +1,94 @@
+From e32f249d3b11daf4b6afde21a978862a251cfe9d Mon Sep 17 00:00:00 2001
+From: Stefan Hajnoczi <stefanha@redhat.com>
+Date: Tue, 13 Oct 2026 14:17:49 -0400
+Subject: [PATCH 06/18] pr-manager-helper: add PR_HELPER_CLEANUP command
+ support
+
+RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
+RH-MergeRequest: 534: scsi: clean up persistent reservation state after migration
+RH-Jira: RHEL-274966
+RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
+RH-Acked-by: Eric Blake <eblake@redhat.com>
+RH-Commit: [5/9] 755736aeab40220a883ce31c2234560bbf60482f (stefanha/centos-stream-qemu-kvm)
+
+qemu-pr-helper now supports the vendor-specific PR_HELPER_CLEANUP SCSI
+command. Add support to the client side.
+
+pr_manager_helper_run() uses scsi_cdb_xfer() to determine the number of
+bytes to transfer. Extend scsi_cdb_xfer() to know that this
+vendor-specific command does not transfer any bytes.
+
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+Reviewed-by: Eric Blake <eblake@redhat.com>
+Link: https://lore.kernel.org/r/20261013181752.1299456-6-stefanha@redhat.com
+Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
+(cherry picked from commit 179e9fa5f3fc37cc79e29e0834c4e244970c7447)
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+---
+ scsi/pr-manager-helper.c | 20 +++++++++++++++++---
+ scsi/utils.c             |  3 +++
+ 2 files changed, 20 insertions(+), 3 deletions(-)
+
+diff --git a/scsi/pr-manager-helper.c b/scsi/pr-manager-helper.c
+index 26ef3876f0..e7162e21ff 100644
+--- a/scsi/pr-manager-helper.c
++++ b/scsi/pr-manager-helper.c
+@@ -38,6 +38,8 @@ struct PRManagerHelper {
+ 
+     QemuMutex lock;
+     QIOChannel *ioc;
++
++    uint32_t proto_flags; /* flags negotiated with pr-helper */
+ };
+ 
+ static void pr_manager_send_status_changed_event(PRManagerHelper *pr_mgr)
+@@ -129,7 +131,9 @@ static int pr_manager_helper_initialize(PRManagerHelper *pr_mgr,
+         goto out_close;
+     }
+ 
+-    flags = 0;
++    pr_mgr->proto_flags = be32_to_cpu(flags) & PR_HELPER_FEATURE_CLEANUP;
++
++    flags = cpu_to_be32(pr_mgr->proto_flags);
+     r = pr_manager_helper_write(pr_mgr, -1, &flags, sizeof(flags), errp);
+     if (r < 0) {
+         goto out_close;
+@@ -161,9 +165,19 @@ static int pr_manager_helper_run(PRManager *p,
+     }
+ 
+     memcpy(cdb, io_hdr->cmdp, io_hdr->cmd_len);
+-    assert(cdb[0] == PERSISTENT_RESERVE_OUT || cdb[0] == PERSISTENT_RESERVE_IN);
++    assert(cdb[0] == PERSISTENT_RESERVE_OUT ||
++           cdb[0] == PERSISTENT_RESERVE_IN ||
++           cdb[0] == PR_HELPER_CLEANUP);
++
++    /* The command is only available when pr-helper supports it */
++    if (cdb[0] == PR_HELPER_CLEANUP &&
++        !(pr_mgr->proto_flags & PR_HELPER_FEATURE_CLEANUP)) {
++        return -ENOTSUP;
++    }
++
+     expected_dir =
+-        (cdb[0] == PERSISTENT_RESERVE_OUT ? SG_DXFER_TO_DEV : SG_DXFER_FROM_DEV);
++        (cdb[0] == PERSISTENT_RESERVE_IN ?
++         SG_DXFER_FROM_DEV : SG_DXFER_TO_DEV);
+     if (io_hdr->dxfer_direction != expected_dir) {
+         return -EINVAL;
+     }
+diff --git a/scsi/utils.c b/scsi/utils.c
+index daee90ecf0..1ee68e6822 100644
+--- a/scsi/utils.c
++++ b/scsi/utils.c
+@@ -29,6 +29,9 @@ uint32_t scsi_data_cdb_xfer(uint8_t *buf)
+ 
+ uint32_t scsi_cdb_xfer(uint8_t *buf)
+ {
++    if (buf[0] == PR_HELPER_CLEANUP) {
++        return 0;
++    }
+     switch (buf[0] >> 5) {
+     case 0:
+         return buf[4];
+-- 
+2.56.0
+

diff --git a/kvm-pr-manager-helper-fix-sense-buffer-overflow.patch b/kvm-pr-manager-helper-fix-sense-buffer-overflow.patch
new file mode 100644
index 0000000..706e1c7
--- /dev/null
+++ b/kvm-pr-manager-helper-fix-sense-buffer-overflow.patch
@@ -0,0 +1,53 @@
+From 2271ca1fd706d2f176953b048eea1223bb6d2393 Mon Sep 17 00:00:00 2001
+From: Stefan Hajnoczi <stefanha@redhat.com>
+Date: Tue, 13 Oct 2026 14:17:45 -0400
+Subject: [PATCH 02/18] pr-manager-helper: fix sense buffer overflow
+
+RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
+RH-MergeRequest: 534: scsi: clean up persistent reservation state after migration
+RH-Jira: RHEL-274966
+RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
+RH-Acked-by: Eric Blake <eblake@redhat.com>
+RH-Commit: [1/9] 8d9d05e899a2fdae74eab3a7927e91b556a61a69 (stefanha/centos-stream-qemu-kvm)
+
+scsi_build_sense() assumes the sense buffer is SCSI_SENSE_LEN (18) bytes
+long, so the caller's buffer with an arbitrary size cannot be used. Use
+our own sense buffer (resp.sense) as an intermediate buffer and honor
+the caller's sense buffer size (io_hdr->mx_sb_len).
+
+This is triggered when scsi-generic.c:scsi_SG_IO() calls blk_ioctl()
+with an 8-byte sense buffer. There does not appear to be a way for the
+guest to trigger this buffer overflow directly since
+SCSIRequest->sense[] is 252 bytes long.
+
+Fixes: 9bad2a6b9d0a ("scsi: add persistent reservation manager using qemu-pr-helper")
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+Reviewed-by: Eric Blake <eblake@redhat.com>
+Link: https://lore.kernel.org/r/20261013181752.1299456-2-stefanha@redhat.com
+Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
+(cherry picked from commit 1ce27ff81adc64288846a98310236fc86d2f7a58)
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+---
+ scsi/pr-manager-helper.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/scsi/pr-manager-helper.c b/scsi/pr-manager-helper.c
+index 53432e6d60..26ef3876f0 100644
+--- a/scsi/pr-manager-helper.c
++++ b/scsi/pr-manager-helper.c
+@@ -234,10 +234,11 @@ static int pr_manager_helper_run(PRManager *p,
+ 
+ out:
+     if (ret < 0) {
+-        int sense_len = scsi_build_sense(io_hdr->sbp,
++        int sense_len = scsi_build_sense(resp.sense,
+                                          SENSE_CODE(LUN_COMM_FAILURE));
+         io_hdr->driver_status = SG_ERR_DRIVER_SENSE;
+         io_hdr->sb_len_wr = MIN(io_hdr->mx_sb_len, sense_len);
++        memcpy(io_hdr->sbp, resp.sense, io_hdr->sb_len_wr);
+         io_hdr->status = CHECK_CONDITION;
+     }
+     qemu_mutex_unlock(&pr_mgr->lock);
+-- 
+2.56.0
+

diff --git a/kvm-qemu-pr-helper-add-PR_HELPER_CLEANUP-for-live-migrat.patch b/kvm-qemu-pr-helper-add-PR_HELPER_CLEANUP-for-live-migrat.patch
new file mode 100644
index 0000000..c5d4dfa
--- /dev/null
+++ b/kvm-qemu-pr-helper-add-PR_HELPER_CLEANUP-for-live-migrat.patch
@@ -0,0 +1,315 @@
+From 11b8af32fea7af94c9ff8f23e1a66df490d59ee4 Mon Sep 17 00:00:00 2001
+From: Stefan Hajnoczi <stefanha@redhat.com>
+Date: Tue, 13 Oct 2026 14:17:48 -0400
+Subject: [PATCH 05/18] qemu-pr-helper: add PR_HELPER_CLEANUP for live
+ migration
+
+RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
+RH-MergeRequest: 534: scsi: clean up persistent reservation state after migration
+RH-Jira: RHEL-274966
+RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
+RH-Acked-by: Eric Blake <eblake@redhat.com>
+RH-Commit: [4/9] f9a93a30993b3ccb0165323424b19a16969fdc21 (stefanha/centos-stream-qemu-kvm)
+
+Introduce a new vendor-specific SCSI command that acts similar to
+REGISTER AND IGNORE EXISTING KEY but also discards multipathd's state
+(including /etc/multipath/prkeys). This command will be used on the
+source after live migration completes successfully.
+
+This cleanup step is necessary because multipathd will register the key
+it has stored when the path comes up again. This is undesirable when the
+guest has migrated to another host and can interfere with the migration
+process or the application running inside the guest.
+
+Add a qemu-pr-manager protocol feature bit indicating that the new
+PR_HELPER_CLEANUP command is available. The command has no CDB fields
+other than OPCODE and the response contains no data aside from the usual
+result and sense data.
+
+Note that the linker needs an explicit libmpathcmd dependency for
+mpath_disconnect() even though qemu-pr-helper.c already #included the
+mpath_cmd.h header before.
+
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+Reviewed-by: Eric Blake <eblake@redhat.com>
+Link: https://lore.kernel.org/r/20261013181752.1299456-5-stefanha@redhat.com
+Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
+(cherry picked from commit e974bdd134e00d4b9789deace7b58dd35829aae4)
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+---
+ hw/scsi/scsi-bus.c       |  10 +++
+ include/scsi/constants.h |   1 +
+ meson.build              |   2 +
+ scsi/pr-helper.h         |   3 +
+ scsi/qemu-pr-helper.c    | 146 ++++++++++++++++++++++++++++++++++++---
+ 5 files changed, 153 insertions(+), 9 deletions(-)
+
+diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c
+index deb43d5560..19544ba931 100644
+--- a/hw/scsi/scsi-bus.c
++++ b/hw/scsi/scsi-bus.c
+@@ -873,6 +873,16 @@ SCSIRequest *scsi_req_new(SCSIDevice *d, uint32_t tag, uint32_t lun,
+           */
+          !(buf[0] == REQUEST_SENSE && d->sense_is_ua))) {
+         ops = &reqops_unit_attention;
++    } else if (buf[0] == PR_HELPER_CLEANUP) {
++        /*
++         * This is a QEMU-internal vendor-specific SCSI command that must only
++         * be submitted directly via blk_aio_ioctl() and not through SCSI
++         * emulation. Reject the command explicitly to guarantee a guest cannot
++         * execute it, although vendor-specific commands are not supported by
++         * SCSI emulation (including passthrough) anyway.
++         */
++        trace_scsi_req_parse_bad(d->id, lun, tag, buf[0]);
++        goto invalid_opcode;
+     } else if (lun != d->lun ||
+                buf[0] == REPORT_LUNS ||
+                (buf[0] == REQUEST_SENSE && d->sense_len)) {
+diff --git a/include/scsi/constants.h b/include/scsi/constants.h
+index 717e470a5d..bb3981a779 100644
+--- a/include/scsi/constants.h
++++ b/include/scsi/constants.h
+@@ -149,6 +149,7 @@
+ #define MECHANISM_STATUS      0xbd
+ #define READ_CD               0xbe
+ #define SEND_DVD_STRUCTURE    0xbf
++#define PR_HELPER_CLEANUP     0xff /* vendor-specific QEMU command */
+ 
+ /*
+  * SERVICE ACTION IN subcodes
+diff --git a/meson.build b/meson.build
+index 16666f928b..22dddf5b08 100644
+--- a/meson.build
++++ b/meson.build
+@@ -1478,6 +1478,8 @@ if host_os == 'linux' and have_tools and get_option('mpath').allowed()
+     endif
+     mpathlibs += cc.find_library('multipath',
+                                  required: get_option('mpath'))
++    mpathlibs += cc.find_library('mpathcmd',
++                                 required: get_option('mpath'))
+     foreach lib: mpathlibs
+       if not lib.found()
+         mpathlibs = []
+diff --git a/scsi/pr-helper.h b/scsi/pr-helper.h
+index e26e104ec7..d088d0dc19 100644
+--- a/scsi/pr-helper.h
++++ b/scsi/pr-helper.h
+@@ -31,6 +31,9 @@
+ #define PR_HELPER_SENSE_SIZE   96
+ #define PR_HELPER_DATA_SIZE    8192
+ 
++/* Protocol features */
++#define PR_HELPER_FEATURE_CLEANUP (1u << 0)
++
+ typedef struct PRHelperResponse {
+     int32_t result;
+     int32_t sz;
+diff --git a/scsi/qemu-pr-helper.c b/scsi/qemu-pr-helper.c
+index 9dcd3ec711..54d196a503 100644
+--- a/scsi/qemu-pr-helper.c
++++ b/scsi/qemu-pr-helper.c
+@@ -537,6 +537,110 @@ static int coroutine_fn multipath_pr_out(int fd, const uint8_t *cdb, uint8_t *se
+                                      paramp, noisy, verbose);
+     return mpath_reconstruct_sense(fd, r, sense);
+ }
++
++/* Get the device-mapper device name given its block device fd */
++static char *get_dm_name(int fd, Error **errp)
++{
++    struct stat st;
++    int ret;
++
++    assert(is_mpath(fd));
++
++    ret = fstat(fd, &st);
++    if (ret != 0) {
++        error_setg_errno(errp, errno, "fstat failed on fd %d", fd);
++        return NULL;
++    }
++
++    return g_strdup_printf("dm-%u", minor(st.st_rdev));
++}
++
++/* Perform a multipathd command */
++static bool multipathd_cmd(int fd, const char *cmd, Error **errp)
++{
++    const unsigned int timeout_ms = 60000;
++    char *reply = NULL;
++    int last_errno;
++    int ret;
++
++    ret = mpath_process_cmd(fd, cmd, &reply, timeout_ms);
++    last_errno = errno;
++    if (reply && strcmp(reply, "ok\n") != 0) {
++        error_setg(errp, "mpath_process_cmd(%d, \"%s\") replied \"%s\"",
++                   fd, cmd, reply);
++        free(reply);
++        return false;
++    }
++    free(reply);
++    if (ret == -1) {
++        error_setg_errno(errp, last_errno,
++                         "mpath_process_cmd(%d, \"%s\") failed",
++                         fd, cmd);
++        return false;
++    }
++    return true;
++}
++
++/* Unregister so this I_T nexus has no key registered anymore */
++static int coroutine_fn multipath_pr_cleanup_unregister(int fd, uint8_t *sense,
++                                                        Error **errp)
++{
++    uint8_t cdb[PR_HELPER_CDB_SIZE] = {};
++    uint8_t param[PR_OUT_FIXED_PARAM_SIZE] = {};
++
++    /* Fill in CDB */
++    cdb[0] = PERSISTENT_RESERVE_OUT;               /* OPERATION CODE */
++    cdb[1] = PRO_REGISTER_AND_IGNORE_EXISTING_KEY; /* SERVICE ACTION */
++    stl_be_p(&cdb[5], sizeof(param));              /* PARAMETER LIST LENGTH */
++
++    /* The parameter list is all zeroes, so there is nothing to fill in */
++
++    return multipath_pr_out(fd, cdb, sense, param, sizeof(param));
++}
++
++/*
++ * A special version of REGISTER AND IGNORE EXISTING KEY with sark=0 to
++ * unregister the key without triggering multipathd's preemption. This succeeds
++ * when no key is registered too. This is essential so the migration source
++ * cleans up its registered key without multipathd preempting the destination
++ * host.
++ */
++static int coroutine_fn multipath_pr_cleanup(int bdev_fd, uint8_t *sense,
++                                             Error **errp)
++{
++    g_autofree char *bdev_dm_name = get_dm_name(bdev_fd, errp);
++    g_autofree char *cmd = NULL;
++    int multipathd_fd;
++
++    if (bdev_dm_name == NULL) {
++        return -1;
++    }
++
++    /* First make multipathd forget the key and reservation state */
++    multipathd_fd = mpath_connect();
++    if (multipathd_fd == -1) {
++        error_setg_errno(errp, errno, "mpath_connect() failed");
++        return -1;
++    }
++
++    cmd = g_strdup_printf("unsetprkey map %s", bdev_dm_name);
++    if (!multipathd_cmd(multipathd_fd, cmd, errp)) {
++        mpath_disconnect(multipathd_fd);
++        return -1;
++    }
++
++    g_free(cmd);
++    cmd = g_strdup_printf("unsetprstatus map %s", bdev_dm_name);
++    if (!multipathd_cmd(multipathd_fd, cmd, errp)) {
++        mpath_disconnect(multipathd_fd);
++        return -1;
++    }
++
++    mpath_disconnect(multipathd_fd);
++
++    /* Now unregister the key at the SCSI level */
++    return multipath_pr_cleanup_unregister(bdev_fd, sense, errp);
++}
+ #endif
+ 
+ static int coroutine_fn do_pr_in(int fd, const uint8_t *cdb, uint8_t *sense,
+@@ -578,6 +682,21 @@ static int coroutine_fn do_pr_out(int fd, const uint8_t *cdb, uint8_t *sense,
+                    SG_DXFER_TO_DEV);
+ }
+ 
++static int coroutine_fn do_pr_cleanup(int fd, uint8_t *sense, Error **errp)
++{
++    if ((fcntl(fd, F_GETFL) & O_ACCMODE) == O_RDONLY) {
++        scsi_build_sense(sense, SENSE_CODE(INVALID_OPCODE));
++        return CHECK_CONDITION;
++    }
++
++#ifdef CONFIG_MPATH
++    if (is_mpath(fd)) {
++        return multipath_pr_cleanup(fd, sense, errp);
++    }
++#endif
++    return GOOD;
++}
++
+ /* Client */
+ 
+ typedef struct PRHelperClient {
+@@ -667,7 +786,8 @@ static int coroutine_fn prh_read_request(PRHelperClient *client,
+     }
+ 
+     if (req->cdb[0] != PERSISTENT_RESERVE_OUT &&
+-        req->cdb[0] != PERSISTENT_RESERVE_IN) {
++        req->cdb[0] != PERSISTENT_RESERVE_IN &&
++        req->cdb[0] != PR_HELPER_CLEANUP) {
+         error_setg(errp, "Invalid CDB, closing socket.");
+         goto out_close;
+     }
+@@ -703,7 +823,8 @@ static int coroutine_fn prh_write_response(PRHelperClient *client,
+     ssize_t r;
+     size_t sz;
+ 
+-    if (req->cdb[0] == PERSISTENT_RESERVE_IN && resp->result == GOOD) {
++    if (req->cdb[0] == PERSISTENT_RESERVE_IN &&
++        resp->result == GOOD) {
+         assert(resp->sz <= req->sz && resp->sz <= sizeof(client->data));
+     } else {
+         assert(resp->sz == 0);
+@@ -739,10 +860,8 @@ static void coroutine_fn prh_co_entry(void *opaque)
+ 
+     qio_channel_set_follow_coroutine_ctx(QIO_CHANNEL(client->ioc), true);
+ 
+-    /* A very simple negotiation for future extensibility.  No features
+-     * are defined so write 0.
+-     */
+-    flags = cpu_to_be32(0);
++    /* A very simple negotiation for future extensibility */
++    flags = cpu_to_be32(PR_HELPER_FEATURE_CLEANUP);
+     r = qio_channel_write_all(QIO_CHANNEL(client->ioc),
+                              (char *) &flags, sizeof(flags), NULL);
+     if (r < 0) {
+@@ -751,7 +870,7 @@ static void coroutine_fn prh_co_entry(void *opaque)
+ 
+     r = qio_channel_read_all(QIO_CHANNEL(client->ioc),
+                              (char *) &flags, sizeof(flags), NULL);
+-    if (be32_to_cpu(flags) != 0 || r < 0) {
++    if ((be32_to_cpu(flags) & ~PR_HELPER_FEATURE_CLEANUP) != 0 || r < 0) {
+         goto out;
+     }
+ 
+@@ -766,15 +885,24 @@ static void coroutine_fn prh_co_entry(void *opaque)
+         }
+ 
+         num_active_sockets++;
+-        if (req.cdb[0] == PERSISTENT_RESERVE_OUT) {
++        switch (req.cdb[0]) {
++        case PERSISTENT_RESERVE_OUT:
+             r = do_pr_out(req.fd, req.cdb, resp.sense,
+                           client->data, sz);
+             resp.sz = 0;
+-        } else {
++            break;
++        case PERSISTENT_RESERVE_IN:
+             resp.sz = sizeof(client->data);
+             r = do_pr_in(req.fd, req.cdb, resp.sense,
+                          client->data, &resp.sz);
+             resp.sz = MIN(resp.sz, sz);
++            break;
++        case PR_HELPER_CLEANUP:
++            r = do_pr_cleanup(req.fd, resp.sense, &local_err);
++            resp.sz = 0;
++            break;
++        default:
++            abort();
+         }
+         num_active_sockets--;
+         close(req.fd);
+-- 
+2.56.0
+

diff --git a/kvm-sbsa-gwdt-don-t-arm-timer-for-compare-values-above-I.patch b/kvm-sbsa-gwdt-don-t-arm-timer-for-compare-values-above-I.patch
new file mode 100644
index 0000000..cfc6068
--- /dev/null
+++ b/kvm-sbsa-gwdt-don-t-arm-timer-for-compare-values-above-I.patch
@@ -0,0 +1,97 @@
+From e69a96789a245fa6d5de8a2bed60ea8fd44229ec Mon Sep 17 00:00:00 2001
+From: Sebastian Ott <sebott@redhat.com>
+Date: Thu, 12 Nov 2026 12:37:31 +0100
+Subject: [PATCH 15/18] sbsa-gwdt: don't arm timer for compare values above
+ INT64_MAX
+
+RH-Author: Sebastian Ott <sebott@redhat.com>
+RH-MergeRequest: 536: sbsa-gwdt: backport fixes
+RH-Jira: RHEL-305179
+RH-Acked-by: Eric Auger <eric.auger@redhat.com>
+RH-Acked-by: Gavin Shan <gshan@redhat.com>
+RH-Commit: [5/7] de6817f475580b3863a4334f8b0bc8940cd41727 (seott1/cos-qemu-kvm)
+
+JIRA: https://redhat.atlassian.net/browse/RHEL-305179
+
+QEMU timer subsystem uses int64_t, so a WCV value with bit 63 set
+would overflow and cause the timer to fire immediately. The SBSA
+spec defines WCV as an unsigned 64-bit compare value, so such
+values are valid per spec and represent far-future deadlines
+(however unpractical).
+
+The current code is not affected: WCV writes don't reschedule the
+timer yet, so a guest-supplied compare value never reaches the
+timer API. The follow-up patch ("sbsa-gwdt: reschedule timer on
+direct WCV load") changes that, at which point an out-of-range WCV
+would overflow the timer. For example, Windows in GTDT mode writes
+WCV in two 32-bit halves while the watchdog is running:
+
+ sbsa-gwdt_control_write [0x8]  <- 0xffffffff    # WOR (~4 sec)
+ sbsa-gwdt_control_write [0x0]  <- 0x1           # WCS enable
+ sbsa-gwdt_control_write [0x14] <- 0xffffffff    # WCVU (intermediate)
+ sbsa-gwdt_control_write [0x10] <- 0xa906ca28    # WCVL
+ sbsa-gwdt_control_write [0x14] <- 0xecb1        # WCVU (final)
+
+The intermediate WCVU write (0xffffffff) yields a WCV above
+INT64_MAX; once WCV writes arm the timer, this overflows QEMU's
+signed timer and fires immediately -- triggering WS0 => WS1 =>
+reboot before the final WCVU write lands.
+
+Add the guard first, before the WCV rescheduling patch, so the
+tree stays bisectable. Instead of arming the timer with an
+unsupported deadline, leave it disarmed. This reuses
+hw/timer/sse-timer.c:sse_set_timer() (commit 0b8ceee822
+"hw/timer/sse-timer: Model the SSE Subsystem System Timer").
+
+Introduce a sbsa_gwdt_set_timer() helper for this and route the
+WOR-based timeout through it.
+
+Signed-off-by: Igor Mammedov <imammedo@redhat.com>
+Message-id: 20260902122646.2848464-6-imammedo@redhat.com
+Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
+Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
+(cherry picked from commit 377b92022680d1168a08b18342f305607f0e891f)
+Signed-off-by: Sebastian Ott <sebott@redhat.com>
+---
+ hw/watchdog/sbsa_gwdt.c | 18 +++++++++++++++++-
+ 1 file changed, 17 insertions(+), 1 deletion(-)
+
+diff --git a/hw/watchdog/sbsa_gwdt.c b/hw/watchdog/sbsa_gwdt.c
+index 5b4f241fcb..c5e88bf3d3 100644
+--- a/hw/watchdog/sbsa_gwdt.c
++++ b/hw/watchdog/sbsa_gwdt.c
+@@ -99,6 +99,22 @@ static uint64_t sbsa_gwdt_read(void *opaque, hwaddr addr, unsigned int size)
+     return ret;
+ }
+ 
++static void sbsa_gwdt_set_timer(SBSA_GWDTState *s, uint64_t deadline)
++{
++    /*
++     * WCV is an unsigned 64-bit compare value, but QEMUTimer stores the
++     * expiry as a signed int64_t. A deadline with bit 63 set would be seen
++     * as already expired and fire the watchdog immediately. Such a deadline
++     * is unreachable within any guest runtime, so treat it as "never" and
++     * leave the timer disarmed instead.
++     */
++    if (deadline <= INT64_MAX) {
++        timer_mod(s->timer, deadline);
++    } else {
++        timer_del(s->timer);
++    }
++}
++
+ static void sbsa_gwdt_wor_update_timer(SBSA_GWDTState *s, WdtRefreshType rtype)
+ {
+     uint64_t timeout = 0;
+@@ -135,7 +151,7 @@ static void sbsa_gwdt_wor_update_timer(SBSA_GWDTState *s, WdtRefreshType rtype)
+     s->wcvu = timeout >> 32;
+     s->wcvl = timeout;
+ 
+-    timer_mod(s->timer, timeout);
++    sbsa_gwdt_set_timer(s, timeout);
+ }
+ 
+ static void sbsa_gwdt_rwrite(void *opaque, hwaddr offset, uint64_t data,
+-- 
+2.56.0
+

diff --git a/kvm-sbsa-gwdt-reduce-code-indent.patch b/kvm-sbsa-gwdt-reduce-code-indent.patch
new file mode 100644
index 0000000..1d35a8f
--- /dev/null
+++ b/kvm-sbsa-gwdt-reduce-code-indent.patch
@@ -0,0 +1,78 @@
+From 1e1554cf6dd11fe4a181628be6b79ef2b56e91e5 Mon Sep 17 00:00:00 2001
+From: Sebastian Ott <sebott@redhat.com>
+Date: Thu, 12 Nov 2026 12:37:31 +0100
+Subject: [PATCH 11/18] sbsa-gwdt: reduce code indent
+
+RH-Author: Sebastian Ott <sebott@redhat.com>
+RH-MergeRequest: 536: sbsa-gwdt: backport fixes
+RH-Jira: RHEL-305179
+RH-Acked-by: Eric Auger <eric.auger@redhat.com>
+RH-Acked-by: Gavin Shan <gshan@redhat.com>
+RH-Commit: [1/7] 66489e6070e374ed682172913bf10e25696fee61 (seott1/cos-qemu-kvm)
+
+JIRA: https://redhat.atlassian.net/browse/RHEL-305179
+
+Signed-off-by: Igor Mammedov <imammedo@redhat.com>
+Reviewed-by: Eric Auger <eric.auger@redhat.com>
+Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
+Message-id: 20260902122646.2848464-2-imammedo@redhat.com
+Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
+(cherry picked from commit 492e88bbe1f43b91d6cae2efc7509f33f7bfbec0)
+Signed-off-by: Sebastian Ott <sebott@redhat.com>
+---
+ hw/watchdog/sbsa_gwdt.c | 38 ++++++++++++++++++++------------------
+ 1 file changed, 20 insertions(+), 18 deletions(-)
+
+diff --git a/hw/watchdog/sbsa_gwdt.c b/hw/watchdog/sbsa_gwdt.c
+index 330a74798a..7cc5609b83 100644
+--- a/hw/watchdog/sbsa_gwdt.c
++++ b/hw/watchdog/sbsa_gwdt.c
+@@ -105,25 +105,27 @@ static void sbsa_gwdt_update_timer(SBSA_GWDTState *s, WdtRefreshType rtype)
+ 
+     timer_del(s->timer);
+ 
+-    if (s->wcs & SBSA_GWDT_WCS_EN) {
+-        /*
+-         * Extract the upper 16 bits from woru & 32 bits from worl
+-         * registers to construct the 48 bit offset value
+-         */
+-        timeout = s->woru;
+-        timeout <<= 32;
+-        timeout |= s->worl;
+-        timeout = muldiv64(timeout, NANOSECONDS_PER_SECOND, s->freq);
+-        timeout += qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
+-
+-        if ((rtype == EXPLICIT_REFRESH) || ((rtype == TIMEOUT_REFRESH) &&
+-                (!(s->wcs & SBSA_GWDT_WCS_WS0)))) {
+-            /* store the current timeout value into compare registers */
+-            s->wcvu = timeout >> 32;
+-            s->wcvl = timeout;
+-        }
+-        timer_mod(s->timer, timeout);
++    if (!(s->wcs & SBSA_GWDT_WCS_EN)) {
++        return;
++    }
++
++    /*
++     * Extract the upper 16 bits from woru & 32 bits from worl
++     * registers to construct the 48 bit offset value
++     */
++    timeout = s->woru;
++    timeout <<= 32;
++    timeout |= s->worl;
++    timeout = muldiv64(timeout, NANOSECONDS_PER_SECOND, s->freq);
++    timeout += qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
++
++    if ((rtype == EXPLICIT_REFRESH) || ((rtype == TIMEOUT_REFRESH) &&
++            (!(s->wcs & SBSA_GWDT_WCS_WS0)))) {
++        /* store the current timeout value into compare registers */
++        s->wcvu = timeout >> 32;
++        s->wcvl = timeout;
+     }
++    timer_mod(s->timer, timeout);
+ }
+ 
+ static void sbsa_gwdt_rwrite(void *opaque, hwaddr offset, uint64_t data,
+-- 
+2.56.0
+

diff --git a/kvm-sbsa-gwdt-rename-sbsa_gwdt_update_timer-to-sbsa_gwdt.patch b/kvm-sbsa-gwdt-rename-sbsa_gwdt_update_timer-to-sbsa_gwdt.patch
new file mode 100644
index 0000000..1cfedb5
--- /dev/null
+++ b/kvm-sbsa-gwdt-rename-sbsa_gwdt_update_timer-to-sbsa_gwdt.patch
@@ -0,0 +1,88 @@
+From 9f54ef322e7cd2855b62bd728e3676aa12e73835 Mon Sep 17 00:00:00 2001
+From: Sebastian Ott <sebott@redhat.com>
+Date: Thu, 12 Nov 2026 12:37:31 +0100
+Subject: [PATCH 14/18] sbsa-gwdt: rename sbsa_gwdt_update_timer() to
+ sbsa_gwdt_wor_update_timer()
+
+RH-Author: Sebastian Ott <sebott@redhat.com>
+RH-MergeRequest: 536: sbsa-gwdt: backport fixes
+RH-Jira: RHEL-305179
+RH-Acked-by: Eric Auger <eric.auger@redhat.com>
+RH-Acked-by: Gavin Shan <gshan@redhat.com>
+RH-Commit: [4/7] 7a385a9480800616da2af0efe8b4a1e857471335 (seott1/cos-qemu-kvm)
+
+JIRA: https://redhat.atlassian.net/browse/RHEL-305179
+
+The timer update helper computes the timeout from the WOR (watchdog
+offset register). Rename it to sbsa_gwdt_wor_update_timer() to make room
+for a separate WCV-based update helper added by a following patch.
+
+No functional change.
+
+Signed-off-by: Igor Mammedov <imammedo@redhat.com>
+Message-id: 20260902122646.2848464-5-imammedo@redhat.com
+Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
+Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
+(cherry picked from commit d028815395c27f78b50948bf26a0b64ae761f12b)
+Signed-off-by: Sebastian Ott <sebott@redhat.com>
+---
+ hw/watchdog/sbsa_gwdt.c | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/hw/watchdog/sbsa_gwdt.c b/hw/watchdog/sbsa_gwdt.c
+index 0ed29faf13..5b4f241fcb 100644
+--- a/hw/watchdog/sbsa_gwdt.c
++++ b/hw/watchdog/sbsa_gwdt.c
+@@ -99,7 +99,7 @@ static uint64_t sbsa_gwdt_read(void *opaque, hwaddr addr, unsigned int size)
+     return ret;
+ }
+ 
+-static void sbsa_gwdt_update_timer(SBSA_GWDTState *s, WdtRefreshType rtype)
++static void sbsa_gwdt_wor_update_timer(SBSA_GWDTState *s, WdtRefreshType rtype)
+ {
+     uint64_t timeout = 0;
+ 
+@@ -144,7 +144,7 @@ static void sbsa_gwdt_rwrite(void *opaque, hwaddr offset, uint64_t data,
+ 
+     trace_sbsa_gwdt_refresh_write(offset, data);
+     if (offset == SBSA_GWDT_WRR) {
+-        sbsa_gwdt_update_timer(s, EXPLICIT_REFRESH);
++        sbsa_gwdt_wor_update_timer(s, EXPLICIT_REFRESH);
+     } else {
+         qemu_log_mask(LOG_GUEST_ERROR, "bad address in refresh frame write :"
+                         " 0x%x\n", (int)offset);
+@@ -160,19 +160,19 @@ static void sbsa_gwdt_write(void *opaque, hwaddr offset, uint64_t data,
+     case SBSA_GWDT_WCS:
+         s->wcs = data & SBSA_GWDT_WCS_EN;
+         qemu_set_irq(s->irq, 0);
+-        sbsa_gwdt_update_timer(s, EXPLICIT_REFRESH);
++        sbsa_gwdt_wor_update_timer(s, EXPLICIT_REFRESH);
+         break;
+ 
+     case SBSA_GWDT_WOR:
+         s->worl = data;
+         qemu_set_irq(s->irq, 0);
+-        sbsa_gwdt_update_timer(s, EXPLICIT_REFRESH);
++        sbsa_gwdt_wor_update_timer(s, EXPLICIT_REFRESH);
+         break;
+ 
+     case SBSA_GWDT_WORU:
+         s->woru = data & SBSA_GWDT_WOR_MASK;
+         qemu_set_irq(s->irq, 0);
+-        sbsa_gwdt_update_timer(s, EXPLICIT_REFRESH);
++        sbsa_gwdt_wor_update_timer(s, EXPLICIT_REFRESH);
+         break;
+ 
+     case SBSA_GWDT_WCV:
+@@ -211,7 +211,7 @@ static void sbsa_gwdt_timer_sysinterrupt(void *opaque)
+     if (!(s->wcs & SBSA_GWDT_WCS_WS0)) {
+         s->wcs |= SBSA_GWDT_WCS_WS0;
+         trace_sbsa_gwdt_ws0_asserted();
+-        sbsa_gwdt_update_timer(s, TIMEOUT_REFRESH);
++        sbsa_gwdt_wor_update_timer(s, TIMEOUT_REFRESH);
+         qemu_set_irq(s->irq, 1);
+     } else {
+         s->wcs |= SBSA_GWDT_WCS_WS1;
+-- 
+2.56.0
+

diff --git a/kvm-sbsa-gwdt-reschedule-timer-on-direct-WCV-load.patch b/kvm-sbsa-gwdt-reschedule-timer-on-direct-WCV-load.patch
new file mode 100644
index 0000000..652b192
--- /dev/null
+++ b/kvm-sbsa-gwdt-reschedule-timer-on-direct-WCV-load.patch
@@ -0,0 +1,88 @@
+From 503e68a7b9427f617ba3c1509b24df79eb4383ac Mon Sep 17 00:00:00 2001
+From: Sebastian Ott <sebott@redhat.com>
+Date: Thu, 12 Nov 2026 12:37:31 +0100
+Subject: [PATCH 16/18] sbsa-gwdt: reschedule timer on direct WCV load
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+RH-Author: Sebastian Ott <sebott@redhat.com>
+RH-MergeRequest: 536: sbsa-gwdt: backport fixes
+RH-Jira: RHEL-305179
+RH-Acked-by: Eric Auger <eric.auger@redhat.com>
+RH-Acked-by: Gavin Shan <gshan@redhat.com>
+RH-Commit: [6/7] 3379e86905a6f642c06c6732d772372d5cfb337b (seott1/cos-qemu-kvm)
+
+JIRA: https://redhat.atlassian.net/browse/RHEL-305179
+
+According to spec[1]:
+
+ "The compare value can either be loaded directly or indirectly on an
+  explicit refresh or timeout refresh"
+
+QEMU accepts writes to WCV but doesn't reschedule the timer,
+which it should per the spec pseudo code:
+
+ "TimeoutRefresh = ( SystemCounter [63:0] > CompareValue [63:0])"
+
+Fix it by updating the timer on WCV write.
+
+partialy[2] fixes Windows in GTDT mode, which never issues a WRR refresh.
+Instead, it programs WOR to ~4 sec, enables WCS, and immediately
+writes a large absolute value into WCV to push the timeout far
+into the future. Without this, QEMU ignores the WCV write,
+the short WOR expires, and the guest reboots unexpectedly.
+
+1) Arm® Server Base System Architecture 6.0
+   Platform Design Document
+   DEN0029D 6.0
+   "A.2 Watchdog Operation"
+2) under KVM system counter (CNTPCT) as read by guest apprears to
+   produce host's value, so watchdog timeout effectively gets
+   extended on host uptime offset. But that's a separate issue
+   to be fixed.
+
+Signed-off-by: Igor Mammedov <imammedo@redhat.com>
+Message-id: 20260902122646.2848464-7-imammedo@redhat.com
+Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
+Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
+(cherry picked from commit 757c7e69eef2cbd508456ed5f32f4c296930e606)
+Signed-off-by: Sebastian Ott <sebott@redhat.com>
+---
+ hw/watchdog/sbsa_gwdt.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/hw/watchdog/sbsa_gwdt.c b/hw/watchdog/sbsa_gwdt.c
+index c5e88bf3d3..1834dc8db8 100644
+--- a/hw/watchdog/sbsa_gwdt.c
++++ b/hw/watchdog/sbsa_gwdt.c
+@@ -154,6 +154,13 @@ static void sbsa_gwdt_wor_update_timer(SBSA_GWDTState *s, WdtRefreshType rtype)
+     sbsa_gwdt_set_timer(s, timeout);
+ }
+ 
++static void sbsa_gwdt_wcv_update_timer(SBSA_GWDTState *s)
++{
++    if (s->wcs & SBSA_GWDT_WCS_EN) {
++        sbsa_gwdt_set_timer(s, (uint64_t)s->wcvu << 32 | s->wcvl);
++    }
++}
++
+ static void sbsa_gwdt_rwrite(void *opaque, hwaddr offset, uint64_t data,
+                              unsigned size) {
+     SBSA_GWDTState *s = SBSA_GWDT(opaque);
+@@ -193,10 +200,12 @@ static void sbsa_gwdt_write(void *opaque, hwaddr offset, uint64_t data,
+ 
+     case SBSA_GWDT_WCV:
+         s->wcvl = data;
++        sbsa_gwdt_wcv_update_timer(s);
+         break;
+ 
+     case SBSA_GWDT_WCVU:
+         s->wcvu = data;
++        sbsa_gwdt_wcv_update_timer(s);
+         break;
+ 
+     default:
+-- 
+2.56.0
+

diff --git a/kvm-scsi-clean-up-persistent-reservation-state-after-mig.patch b/kvm-scsi-clean-up-persistent-reservation-state-after-mig.patch
new file mode 100644
index 0000000..8c76aba
--- /dev/null
+++ b/kvm-scsi-clean-up-persistent-reservation-state-after-mig.patch
@@ -0,0 +1,142 @@
+From 8ae27147e70b58a860c1b263882b4da8a2e5488a Mon Sep 17 00:00:00 2001
+From: Stefan Hajnoczi <stefanha@redhat.com>
+Date: Tue, 13 Oct 2026 14:17:51 -0400
+Subject: [PATCH 08/18] scsi: clean up persistent reservation state after
+ migration
+
+RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
+RH-MergeRequest: 534: scsi: clean up persistent reservation state after migration
+RH-Jira: RHEL-274966
+RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
+RH-Acked-by: Eric Blake <eblake@redhat.com>
+RH-Commit: [7/9] f3df0f650f58e7e3f57f63c042115123af422739 (stefanha/centos-stream-qemu-kvm)
+
+Live migration of persistent reservations is designed to work without
+coordination between the source and destination. The destination uses
+the PREEMPT command to atomically take over the reservation or
+unregister keys belonging to the source. This approach avoids race
+conditions where other nodes in the cluster might acquire the
+reservation and it minimizes communication during the downtime window.
+
+While this works at the SCSI level, this approach is incomplete when
+using multipathd. Multipathd tracks registered keys and automatically
+registers them again when paths come up. It is unaware that the
+destination has preempted the reservation and therefore it will still
+attempt to register the key on the source host.
+
+Use the new PR_HELPER_CLEANUP command to communicate with multipathd on
+the source after migration completes successfully. The effect is similar
+to REGISTER AND IGNORE EXISTING KEY, except it also discards
+multipathd's state so that the source will no longer attempt to register
+the key.
+
+PR_HELPER_CLEANUP is a QEMU-internal command that is rejected by
+scsi_req_new(), so note that this command is not exposed to guests
+although direct blk_aio_ioctl(SG_IO) calls can make use of it.
+
+Buglink: https://redhat.atlassian.net/browse/RHEL-274966
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+Reviewed-by: Eric Blake <eblake@redhat.com>
+Link: https://lore.kernel.org/r/20261013181752.1299456-8-stefanha@redhat.com
+Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
+(cherry picked from commit 2d38eb7c741eb8c176881c355e0084d0f508885d)
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+---
+ hw/scsi/scsi-disk.c    | 21 ++++++++++++++++++++-
+ hw/scsi/scsi-generic.c | 29 +++++++++++++++++++++++++++++
+ include/hw/scsi/scsi.h |  1 +
+ 3 files changed, 50 insertions(+), 1 deletion(-)
+
+diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
+index 32a537f6a0..373107cc65 100644
+--- a/hw/scsi/scsi-disk.c
++++ b/hw/scsi/scsi-disk.c
+@@ -2761,13 +2761,32 @@ static void scsi_block_migration_failed(SCSIDiskState *s)
+     }
+ }
+ 
++/*
++ * Unregister keys on the source after migration since the destination has
++ * preempted and taken over. This cleanup is not necessary at the SCSI level
++ * but multipathd tracks registered keys and must be informed that this host no
++ * longer wishes to be registered.
++ */
++static void scsi_block_migration_done(SCSIDiskState *s)
++{
++    SCSIDevice *d = &s->qdev;
++    Error *local_err = NULL;
++
++    if (!scsi_generic_pr_state_cleanup(d, &local_err)) {
++        error_prepend(&local_err, "scsi-block migration done: ");
++        warn_report_err(local_err);
++    }
++}
++
+ static int scsi_block_migration_notifier(NotifierWithReturn *notifier,
+                                          MigrationEvent *e, Error **errp)
+ {
+     SCSIDiskState *s =
+         container_of(notifier, SCSIDiskState, migration_notifier);
+ 
+-    if (e->type == MIG_EVENT_FAILED) {
++    if (e->type == MIG_EVENT_DONE) {
++        scsi_block_migration_done(s);
++    } else if (e->type == MIG_EVENT_FAILED) {
+         scsi_block_migration_failed(s);
+     }
+     return 0;
+diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c
+index 153a527556..e41e973aa9 100644
+--- a/hw/scsi/scsi-generic.c
++++ b/hw/scsi/scsi-generic.c
+@@ -652,6 +652,35 @@ bool scsi_generic_pr_state_preempt(SCSIDevice *s, Error **errp)
+     return true;
+ }
+ 
++/* Clean up keys on source after migration */
++bool scsi_generic_pr_state_cleanup(SCSIDevice *s, Error **errp)
++{
++    SCSIPRState *pr_state = &s->pr_state;
++    uint8_t cmd[10] = {
++        PR_HELPER_CLEANUP, /* OPCODE */
++    };
++    int ret;
++
++    WITH_QEMU_LOCK_GUARD(&pr_state->mutex) {
++        if (pr_state->key == 0) {
++            return true; /* nothing to do */
++        }
++    }
++
++    ret = scsi_SG_IO(s->conf.blk, SG_DXFER_TO_DEV, cmd, sizeof(cmd), NULL, 0,
++                     s->io_timeout, errp);
++    if (ret < 0) {
++        error_prepend(errp, "pr-helper CLEANUP failed: ");
++        return false;
++    }
++
++    WITH_QEMU_LOCK_GUARD(&pr_state->mutex) {
++        pr_state->key = 0;
++        pr_state->resv_type = 0;
++    }
++    return true;
++}
++
+ static void scsi_read_complete(void * opaque, int ret)
+ {
+     SCSIGenericReq *r = (SCSIGenericReq *)opaque;
+diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h
+index c60c6e8810..e16f52d27d 100644
+--- a/include/hw/scsi/scsi.h
++++ b/include/hw/scsi/scsi.h
+@@ -256,6 +256,7 @@ SCSIDevice *scsi_device_get(SCSIBus *bus, int channel, int target, int lun);
+ /* scsi-generic.c. */
+ extern const SCSIReqOps scsi_generic_req_ops;
+ bool scsi_generic_pr_state_preempt(SCSIDevice *s, Error **errp);
++bool scsi_generic_pr_state_cleanup(SCSIDevice *s, Error **errp);
+ 
+ /* scsi-disk.c */
+ #define SCSI_DISK_QUIRK_MODE_PAGE_APPLE_VENDOR             0
+-- 
+2.56.0
+

diff --git a/kvm-scsi-document-PR_HELPER_CLEANUP-command.patch b/kvm-scsi-document-PR_HELPER_CLEANUP-command.patch
new file mode 100644
index 0000000..a714ed9
--- /dev/null
+++ b/kvm-scsi-document-PR_HELPER_CLEANUP-command.patch
@@ -0,0 +1,59 @@
+From aa07d7f299d6eecd3fad0eab0029518b6e69d2c9 Mon Sep 17 00:00:00 2001
+From: Stefan Hajnoczi <stefanha@redhat.com>
+Date: Wed, 14 Oct 2026 10:28:47 -0400
+Subject: [PATCH 10/18] scsi: document PR_HELPER_CLEANUP command
+
+RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
+RH-MergeRequest: 534: scsi: clean up persistent reservation state after migration
+RH-Jira: RHEL-274966
+RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
+RH-Acked-by: Eric Blake <eblake@redhat.com>
+RH-Commit: [9/9] 6fe644c7ce44d53b22c79b0fde2b45a088f91cbc (stefanha/centos-stream-qemu-kvm)
+
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+Reviewed-by: Eric Blake <eblake@redhat.com>
+Link: https://lore.kernel.org/r/20261014142847.1354701-1-stefanha@redhat.com
+Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
+(cherry picked from commit eec2d0c16d4a2541a14f5a1867812a508ba7b95e)
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+---
+ docs/interop/pr-helper.rst | 16 +++++++++++++++-
+ 1 file changed, 15 insertions(+), 1 deletion(-)
+
+diff --git a/docs/interop/pr-helper.rst b/docs/interop/pr-helper.rst
+index e926f0a6c9..8ea83dd3d7 100644
+--- a/docs/interop/pr-helper.rst
++++ b/docs/interop/pr-helper.rst
+@@ -54,7 +54,8 @@ together with the SCSI CDB using ancillary data.
+ The CDB has the following limitations:
+ 
+ - the command (stored in the first byte) must be one of 0x5E
+-  (PERSISTENT RESERVE IN) or 0x5F (PERSISTENT RESERVE OUT).
++  (PERSISTENT RESERVE IN), 0x5F (PERSISTENT RESERVE OUT), or 0xFF (PR HELPER
++  CLEANUP, see below).
+ 
+ - the allocation length (stored in bytes 7-8 of the CDB for PERSISTENT
+   RESERVE IN) or parameter list length (stored in bytes 5-8 of the CDB
+@@ -63,6 +64,19 @@ The CDB has the following limitations:
+ For PERSISTENT RESERVE OUT, the parameter list is sent right after the
+ CDB.  The length of the parameter list is taken from the CDB itself.
+ 
++The PR HELPER CLEANUP command is a vendor-specific command without a parameter
++list that has the following effect on Linux device-mapper multipath devices and
++otherwise has no effect. This command is intended for cleaning up the multipath
++device on the source host after live migration has completed successfully:
++
++1. Sends "unsetprkey map <dm-target>" to multipathd.
++
++2. Sends "unsetprstatus map <dm-target>" to multipathd.
++
++3. Performs PERSISTENT RESERVE OUT with the REGISTER AND IGNORE EXISTING KEY
++   service action containing zero values for the RESERVATION KEY and SERVICE
++   ACTION RESERVATION KEY.
++
+ The helper's reply has the following structure:
+ 
+ - 4 bytes for the SCSI status
+-- 
+2.56.0
+

diff --git a/kvm-scsi-increase-sense-buffer-size-in-scsi_SG_IO.patch b/kvm-scsi-increase-sense-buffer-size-in-scsi_SG_IO.patch
new file mode 100644
index 0000000..47ac8d1
--- /dev/null
+++ b/kvm-scsi-increase-sense-buffer-size-in-scsi_SG_IO.patch
@@ -0,0 +1,69 @@
+From fe92e68036fc25a5e7428800f1d441ccfea421dc Mon Sep 17 00:00:00 2001
+From: Stefan Hajnoczi <stefanha@redhat.com>
+Date: Tue, 13 Oct 2026 14:17:46 -0400
+Subject: [PATCH 03/18] scsi: increase sense buffer size in scsi_SG_IO()
+
+RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
+RH-MergeRequest: 534: scsi: clean up persistent reservation state after migration
+RH-Jira: RHEL-274966
+RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
+RH-Acked-by: Eric Blake <eblake@redhat.com>
+RH-Commit: [2/9] 29085493e7c94a37acd97de8b83c9b468bc55c48 (stefanha/centos-stream-qemu-kvm)
+
+There are different SCSI sense formats. Increase the size so we can get
+more detailed sense data.
+
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+Reviewed-by: Eric Blake <eblake@redhat.com>
+Link: https://lore.kernel.org/r/20261013181752.1299456-3-stefanha@redhat.com
+Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
+(cherry picked from commit 575803b47a011fc4b6c6106829bf144112b41ccb)
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+---
+ hw/scsi/scsi-generic.c | 23 +++++++++++++----------
+ 1 file changed, 13 insertions(+), 10 deletions(-)
+
+diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c
+index 8999f3b720..153a527556 100644
+--- a/hw/scsi/scsi-generic.c
++++ b/hw/scsi/scsi-generic.c
+@@ -923,7 +923,7 @@ int scsi_SG_IO(BlockBackend *blk, int direction, uint8_t *cmd,
+                uint32_t timeout, Error **errp)
+ {
+     sg_io_hdr_t io_header;
+-    uint8_t sensebuf[8] = {};
++    uint8_t sensebuf[SCSI_SENSE_LEN] = {};
+     int ret;
+ 
+     memset(&io_header, 0, sizeof(io_header));
+@@ -947,15 +947,18 @@ int scsi_SG_IO(BlockBackend *blk, int direction, uint8_t *cmd,
+             error_setg_errno(errp, -ret, "SG_IO ioctl failed");
+         } else {
+             g_autofree char *sensebuf_hex =
+-                g_strdup_printf("%02x%02x%02x%02x%02x%02x%02x%02x",
+-                                sensebuf[0],
+-                                sensebuf[1],
+-                                sensebuf[2],
+-                                sensebuf[3],
+-                                sensebuf[4],
+-                                sensebuf[5],
+-                                sensebuf[6],
+-                                sensebuf[7]);
++                g_strdup_printf("%02x%02x%02x%02x%02x%02x%02x%02x"
++                                "%02x%02x%02x%02x%02x%02x%02x%02x"
++                                "%02x%02x",
++                                sensebuf[0], sensebuf[1],
++                                sensebuf[2], sensebuf[3],
++                                sensebuf[4], sensebuf[5],
++                                sensebuf[6], sensebuf[7],
++                                sensebuf[8], sensebuf[9],
++                                sensebuf[10], sensebuf[11],
++                                sensebuf[12], sensebuf[13],
++                                sensebuf[14], sensebuf[15],
++                                sensebuf[16], sensebuf[17]);
+ 
+             error_setg(errp, "SG_IO SCSI command failed with status=0x%x "
+                     "driver_status=0x%x host_status=0x%x sensebuf=%s "
+-- 
+2.56.0
+

diff --git a/kvm-scsi-use-REGISTER-AND-IGNORE-EXISTING-KEY-for-robust.patch b/kvm-scsi-use-REGISTER-AND-IGNORE-EXISTING-KEY-for-robust.patch
new file mode 100644
index 0000000..07cc16e
--- /dev/null
+++ b/kvm-scsi-use-REGISTER-AND-IGNORE-EXISTING-KEY-for-robust.patch
@@ -0,0 +1,85 @@
+From 1701a54af0790a46be07ed1656df45d978e090d1 Mon Sep 17 00:00:00 2001
+From: Stefan Hajnoczi <stefanha@redhat.com>
+Date: Tue, 13 Oct 2026 14:17:52 -0400
+Subject: [PATCH 09/18] scsi: use REGISTER AND IGNORE EXISTING KEY for
+ robustness
+
+RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
+RH-MergeRequest: 534: scsi: clean up persistent reservation state after migration
+RH-Jira: RHEL-274966
+RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
+RH-Acked-by: Eric Blake <eblake@redhat.com>
+RH-Commit: [8/9] b92fc78f4165828fdc18fabb2971af6cd6897b98 (stefanha/centos-stream-qemu-kvm)
+
+The regular REGISTER service action fails with RESERVATION CONFLICT when
+the I_T nexus already has a key registered. While we don't expect a key
+to be registered, it is fragile to rely on this. If there is a key
+registered for some reason, live migration will fail when the
+destination hits the RESERVATION CONFLICT error.
+
+Use REGISTER AND IGNORE EXISTING KEY so that the command is likely to
+succeed.
+
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+Reviewed-by: Eric Blake <eblake@redhat.com>
+Link: https://lore.kernel.org/r/20261013181752.1299456-9-stefanha@redhat.com
+Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
+(cherry picked from commit 9dbf31c5be137b308d86c7012192d5f5c5d8f101)
+Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
+---
+ hw/scsi/scsi-generic.c | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c
+index e41e973aa9..e48fcb926f 100644
+--- a/hw/scsi/scsi-generic.c
++++ b/hw/scsi/scsi-generic.c
+@@ -424,7 +424,8 @@ static void scsi_handle_persistent_reserve_out_reply(
+     }
+ }
+ 
+-static bool scsi_generic_pr_register(SCSIDevice *s, uint64_t key, Error **errp)
++static bool scsi_generic_pr_register_ignore(SCSIDevice *s, uint64_t key,
++                                            Error **errp)
+ {
+     uint8_t cmd[10] = {};
+     uint8_t buf[24] = {};
+@@ -432,14 +433,15 @@ static bool scsi_generic_pr_register(SCSIDevice *s, uint64_t key, Error **errp)
+     int ret;
+ 
+     cmd[0] = PERSISTENT_RESERVE_OUT;
+-    cmd[1] = PRO_REGISTER;
++    cmd[1] = PRO_REGISTER_AND_IGNORE_EXISTING_KEY;
+     cmd[8] = sizeof(buf);
+     memcpy(&buf[8], &key_be, sizeof(key_be));
+ 
+     ret = scsi_SG_IO(s->conf.blk, SG_DXFER_TO_DEV, cmd, sizeof(cmd),
+                      buf, sizeof(buf), s->io_timeout, errp);
+     if (ret < 0) {
+-        error_prepend(errp, "PERSISTENT RESERVE OUT with REGISTER: ");
++        error_prepend(errp, "PERSISTENT RESERVE OUT with "
++                      "REGISTER AND IGNORE EXISTING KEY: ");
+         return false;
+     }
+     return true;
+@@ -620,7 +622,7 @@ bool scsi_generic_pr_state_preempt(SCSIDevice *s, Error **errp)
+         return true; /* no PR state, do nothing */
+     }
+ 
+-    if (!scsi_generic_pr_register(s, key, errp)) {
++    if (!scsi_generic_pr_register_ignore(s, key, errp)) {
+         return false;
+     }
+ 
+@@ -647,7 +649,7 @@ bool scsi_generic_pr_state_preempt(SCSIDevice *s, Error **errp)
+      * CONFLICT is expected if our registration remained in place.
+      */
+     if (resv_type == 0) {
+-        scsi_generic_pr_register(s, key, NULL);
++        scsi_generic_pr_register_ignore(s, key, NULL);
+     }
+     return true;
+ }
+-- 
+2.56.0
+

diff --git a/kvm-tests-arm-virt-add-GWDT-tests.patch b/kvm-tests-arm-virt-add-GWDT-tests.patch
new file mode 100644
index 0000000..4c8465f
--- /dev/null
+++ b/kvm-tests-arm-virt-add-GWDT-tests.patch
@@ -0,0 +1,290 @@
+From 2e671cd8ecff94f8e74951a22a6f7104583094d5 Mon Sep 17 00:00:00 2001
+From: Sebastian Ott <sebott@redhat.com>
+Date: Thu, 12 Nov 2026 12:37:32 +0100
+Subject: [PATCH 17/18] tests: arm/virt: add GWDT tests
+
+RH-Author: Sebastian Ott <sebott@redhat.com>
+RH-MergeRequest: 536: sbsa-gwdt: backport fixes
+RH-Jira: RHEL-305179
+RH-Acked-by: Eric Auger <eric.auger@redhat.com>
+RH-Acked-by: Gavin Shan <gshan@redhat.com>
+RH-Commit: [7/7] 0b33f69e7a59aae9c49291a83f962acc98e29c51 (seott1/cos-qemu-kvm)
+
+JIRA: https://redhat.atlassian.net/browse/RHEL-305179
+
+Signed-off-by: Igor Mammedov <imammedo@redhat.com>
+Message-id: 20261019130713.4127060-1-imammedo@redhat.com
+[PMM: Added new file to same MAINTAINERS section as the
+ gwdt implementation]
+
+Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
+Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
+(cherry picked from commit 2c723364c51d312542746fc443fdd6f5472bbe4f)
+Signed-off-by: Sebastian Ott <sebott@redhat.com>
+---
+ MAINTAINERS                  |   1 +
+ tests/qtest/meson.build      |   1 +
+ tests/qtest/sbsa-gwdt-test.c | 227 +++++++++++++++++++++++++++++++++++
+ 3 files changed, 229 insertions(+)
+ create mode 100644 tests/qtest/sbsa-gwdt-test.c
+
+diff --git a/MAINTAINERS b/MAINTAINERS
+index 902db77218..5eabc15047 100644
+--- a/MAINTAINERS
++++ b/MAINTAINERS
+@@ -1061,6 +1061,7 @@ F: hw/arm/sbsa-ref.c
+ F: hw/misc/sbsa_ec.c
+ F: hw/watchdog/sbsa_gwdt.c
+ F: include/hw/watchdog/sbsa_gwdt.h
++F: tests/qtest/sbsa-gwdt-test.c
+ F: docs/system/arm/sbsa.rst
+ F: tests/functional/aarch64/test_*sbsaref*.py
+ 
+diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
+index cdb5e04072..56824b2c4b 100644
+--- a/tests/qtest/meson.build
++++ b/tests/qtest/meson.build
+@@ -273,6 +273,7 @@ qtests_aarch64 = \
+   (config_all_devices.has_key('CONFIG_IOMMU_TESTDEV') and
+    config_all_devices.has_key('CONFIG_ARM_VIRT') ?
+    ['iommu-smmuv3-test'] : []) + \
++  (config_all_devices.has_key('CONFIG_WDT_SBSA') ? ['sbsa-gwdt-test'] : []) + \
+   qtests_cxl +                                                                                  \
+   ['arm-cpu-features',
+    'numa-test',
+diff --git a/tests/qtest/sbsa-gwdt-test.c b/tests/qtest/sbsa-gwdt-test.c
+new file mode 100644
+index 0000000000..ae166778f7
+--- /dev/null
++++ b/tests/qtest/sbsa-gwdt-test.c
+@@ -0,0 +1,227 @@
++/*
++ * SBSA Generic Watchdog Timer (GWDT) testcase
++ *
++ * Copyright (C) 2026 Red Hat
++ *
++ * Authors:
++ *  Igor Mammedov <imammedo@redhat.com>
++ *
++ * SPDX-License-Identifier: GPL-2.0-or-later
++ */
++
++#include "qemu/osdep.h"
++#include "qemu/bitops.h"
++#include "qemu/timer.h"
++#include "libqtest-single.h"
++#include "qobject/qdict.h"
++
++#define GWDT_REFRESH_BASE   0x0f000000
++#define GWDT_CONTROL_BASE   0x0f001000
++#define GWDT_WRR            0x000
++#define GWDT_WCS            0x000
++#define GWDT_WORL           0x008
++#define GWDT_WORH           0x00C
++#define GWDT_WCVL           0x010
++#define GWDT_WCVH           0x014
++#define GWDT_W_IIDR         0xFCC
++
++#define GWDT_WCS_EN         BIT(0)
++#define GWDT_WCS_WS0        BIT(1)
++#define GWDT_WCS_WS1        BIT(2)
++
++#define GWDT_ID_VALUE       0x1043B
++
++static uint32_t ctrl_read(uint32_t offset)
++{
++    return readl(GWDT_CONTROL_BASE + offset);
++}
++
++static void ctrl_write(uint32_t offset, uint32_t value)
++{
++    writel(GWDT_CONTROL_BASE + offset, value);
++}
++
++static void refresh_write(uint32_t offset, uint32_t value)
++{
++    writel(GWDT_REFRESH_BASE + offset, value);
++}
++
++static void reset(void)
++{
++    qtest_system_reset(global_qtest);
++}
++
++/* Convert watchdog ticks to nanoseconds */
++static int64_t gwdt_ticks(uint32_t ticks)
++{
++    QDict *resp = qmp("{ 'execute': 'qom-get', 'arguments':"
++                      "{ 'path': '/machine/peripheral/gwdt',"
++                      "'property': 'clock-frequency' }}");
++    uint64_t freq = qdict_get_uint(resp, "return");
++    qobject_unref(resp);
++    return muldiv64(ticks, NANOSECONDS_PER_SECOND, freq);
++}
++
++static void test_identification(void)
++{
++    g_assert_cmphex(ctrl_read(GWDT_W_IIDR), ==, GWDT_ID_VALUE);
++    g_assert_cmphex(readl(GWDT_REFRESH_BASE + GWDT_W_IIDR), ==, GWDT_ID_VALUE);
++}
++
++static void test_enable_disable(void)
++{
++    uint32_t wcs;
++
++    reset();
++
++    ctrl_write(GWDT_WORL, 0);
++    ctrl_write(GWDT_WORH, 0xF0000000);
++
++    ctrl_write(GWDT_WCS, GWDT_WCS_EN);
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_EN, ==, GWDT_WCS_EN);
++
++    ctrl_write(GWDT_WCS, 0);
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_EN, ==, 0);
++
++    /* make sure no timer is armed after disable */
++    clock_step_next();
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, 0);
++}
++
++static void test_refresh(void)
++{
++    uint32_t wcs;
++    const uint32_t wor = 100000;
++    const int64_t timeout = gwdt_ticks(wor);
++
++    reset();
++
++    ctrl_write(GWDT_WORL, wor);
++    ctrl_write(GWDT_WORH, 0);
++    ctrl_write(GWDT_WCS, GWDT_WCS_EN);
++
++    /* advance to before the deadline */
++    clock_step(timeout - 1);
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, 0);
++
++    /* extend deadline and advance now to deadline - 1 */
++    refresh_write(GWDT_WRR, 0);
++    clock_step(timeout - 1);
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, 0);
++
++    /* make sure that gwdt triggers on refresh deadline */
++    clock_step(1);
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, GWDT_WCS_WS0);
++}
++
++static void test_wcv_load(void)
++{
++    uint32_t wcs;
++    const uint32_t wor = 10000;
++    const int64_t timeout = gwdt_ticks(wor);
++    int64_t now, deadline;
++
++    reset();
++
++    ctrl_write(GWDT_WORL, wor);
++    ctrl_write(GWDT_WORH, 0);
++    ctrl_write(GWDT_WCS, GWDT_WCS_EN);
++
++    /* explicit WCV refresh */
++    now = clock_step(1);
++    deadline = now + 2 * timeout;
++    ctrl_write(GWDT_WCVH, deadline >> 32);
++    ctrl_write(GWDT_WCVL, deadline);
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, 0);
++
++    /* initial WOR deadline, no WS0 yet as WCV load pushed it further */
++    clock_step(timeout);
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, 0);
++
++    /* right before WCV deadline, no WS0 */
++    clock_step(timeout - 1);
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, 0);
++
++    /* advance to WCV deadline, WS0 is triggered */
++    clock_step(1);
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, GWDT_WCS_WS0);
++}
++
++static void test_ws0_timeout(void)
++{
++    uint32_t wcs;
++
++    reset();
++
++    ctrl_write(GWDT_WORL, 10000);
++    ctrl_write(GWDT_WORH, 0);
++
++    ctrl_write(GWDT_WCS, GWDT_WCS_EN);
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, 0);
++
++    /* advance clock to WS0 deadline */
++    clock_step_next();
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, GWDT_WCS_WS0);
++}
++
++static void test_ws1_timeout(void)
++{
++    uint32_t wcs;
++
++    reset();
++
++    ctrl_write(GWDT_WORL, 10000);
++    ctrl_write(GWDT_WORH, 0);
++    ctrl_write(GWDT_WCS, GWDT_WCS_EN);
++
++    /* WS0 deadline test */
++    clock_step_next();
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, GWDT_WCS_WS0);
++    g_assert_cmphex(wcs & GWDT_WCS_WS1, ==, 0);
++
++    /* WS1 deadline test */
++    clock_step_next();
++    wcs = ctrl_read(GWDT_WCS);
++    g_assert_cmphex(wcs & GWDT_WCS_WS0, ==, GWDT_WCS_WS0);
++    g_assert_cmphex(wcs & GWDT_WCS_WS1, ==, GWDT_WCS_WS1);
++}
++
++int main(int argc, char **argv)
++{
++    int ret;
++    const char *arch = qtest_get_arch();
++
++    g_test_init(&argc, &argv, NULL);
++
++    if (strcmp(arch, "aarch64") || !qtest_has_machine("virt")) {
++        g_test_skip("'aarch64/virt' machine is not available");
++        return 0;
++    }
++
++    qtest_add_func("/sbsa-gwdt/identification", test_identification);
++    qtest_add_func("/sbsa-gwdt/enable-disable", test_enable_disable);
++    qtest_add_func("/sbsa-gwdt/refresh", test_refresh);
++    qtest_add_func("/sbsa-gwdt/wcv-load", test_wcv_load);
++    qtest_add_func("/sbsa-gwdt/ws0-timeout", test_ws0_timeout);
++    qtest_add_func("/sbsa-gwdt/ws1-timeout", test_ws1_timeout);
++
++    qtest_start("-M virt -cpu max -device sbsa-gwdt,id=gwdt "
++                "-watchdog-action none");
++    ret = g_test_run();
++    qtest_end();
++
++    return ret;
++}
+-- 
+2.56.0
+

diff --git a/qemu.spec b/qemu.spec
index ba1b86e..8a487c4 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -143,7 +143,7 @@ Obsoletes: %{name}-block-ssh <= %{epoch}:%{version}                    \
 Summary: QEMU is a machine emulator and virtualizer
 Name: qemu-kvm
 Version: 11.1.0
-Release: 4%{?rcrel}%{?dist}%{?cc_suffix}
+Release: 5%{?rcrel}%{?dist}%{?cc_suffix}
 # Epoch because we pushed a qemu-1.0 package. AIUI this can't ever be dropped
 # Epoch 15 used for RHEL 8
 # Epoch 17 used for RHEL 9 (due to release versioning offset in RHEL 8.5)
@@ -209,6 +209,40 @@ Patch36: kvm-block-Remove-now-redundant-bdrv_wait_serialising_req.patch
 Patch37: kvm-hw-arm-tegra241-cmdqv-Keep-VINTF-page0-region-alive.patch
 # For RHEL-302834 - [BUG] qemu-kvm: CONFIG_TEGRA241_CMDQV not enabled, CMDQV passthrough non-functional
 Patch38: kvm-rh-aarch64-rh-devices.mak-Add-CONFIG_TEGRA241_CMDQV.patch
+# For RHEL-256795 - NVIDIA:Backport hw/vfio: thread vf-token through iommufd bind - RHEL 10.4
+Patch39: kvm-hw-vfio-thread-vf-token-through-iommufd-bind.patch
+# For RHEL-274966 - live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.
+Patch40: kvm-pr-manager-helper-fix-sense-buffer-overflow.patch
+# For RHEL-274966 - live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.
+Patch41: kvm-scsi-increase-sense-buffer-size-in-scsi_SG_IO.patch
+# For RHEL-274966 - live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.
+Patch42: kvm-hw-scsi-disk-move-MIG_EVENT_FAILED-into-a-new-functi.patch
+# For RHEL-274966 - live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.
+Patch43: kvm-qemu-pr-helper-add-PR_HELPER_CLEANUP-for-live-migrat.patch
+# For RHEL-274966 - live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.
+Patch44: kvm-pr-manager-helper-add-PR_HELPER_CLEANUP-command-supp.patch
+# For RHEL-274966 - live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.
+Patch45: kvm-file-posix-forward-PR_HELPER_CLEANUP-commands-to-pr-.patch
+# For RHEL-274966 - live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.
+Patch46: kvm-scsi-clean-up-persistent-reservation-state-after-mig.patch
+# For RHEL-274966 - live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.
+Patch47: kvm-scsi-use-REGISTER-AND-IGNORE-EXISTING-KEY-for-robust.patch
+# For RHEL-274966 - live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.
+Patch48: kvm-scsi-document-PR_HELPER_CLEANUP-command.patch
+# For RHEL-305179 - Backport fixes for the acpi generic watchdog
+Patch49: kvm-sbsa-gwdt-reduce-code-indent.patch
+# For RHEL-305179 - Backport fixes for the acpi generic watchdog
+Patch50: kvm-arm-gwdt-consolidate-clear-WS0-and-WS1-on-explicit-r.patch
+# For RHEL-305179 - Backport fixes for the acpi generic watchdog
+Patch51: kvm-arm-gwdt-simplify-WCV-update-condition.patch
+# For RHEL-305179 - Backport fixes for the acpi generic watchdog
+Patch52: kvm-sbsa-gwdt-rename-sbsa_gwdt_update_timer-to-sbsa_gwdt.patch
+# For RHEL-305179 - Backport fixes for the acpi generic watchdog
+Patch53: kvm-sbsa-gwdt-don-t-arm-timer-for-compare-values-above-I.patch
+# For RHEL-305179 - Backport fixes for the acpi generic watchdog
+Patch54: kvm-sbsa-gwdt-reschedule-timer-on-direct-WCV-load.patch
+# For RHEL-305179 - Backport fixes for the acpi generic watchdog
+Patch55: kvm-tests-arm-virt-add-GWDT-tests.patch
 
 %if %{have_clang}
 BuildRequires: clang
@@ -1298,6 +1332,31 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
 %endif
 
 %changelog
+* Mon Nov 23 2026 Miroslav Rezanina <mrezanin@redhat.com> - 11.1.0-5
+- kvm-hw-vfio-thread-vf-token-through-iommufd-bind.patch [RHEL-256795]
+- kvm-pr-manager-helper-fix-sense-buffer-overflow.patch [RHEL-274966]
+- kvm-scsi-increase-sense-buffer-size-in-scsi_SG_IO.patch [RHEL-274966]
+- kvm-hw-scsi-disk-move-MIG_EVENT_FAILED-into-a-new-functi.patch [RHEL-274966]
+- kvm-qemu-pr-helper-add-PR_HELPER_CLEANUP-for-live-migrat.patch [RHEL-274966]
+- kvm-pr-manager-helper-add-PR_HELPER_CLEANUP-command-supp.patch [RHEL-274966]
+- kvm-file-posix-forward-PR_HELPER_CLEANUP-commands-to-pr-.patch [RHEL-274966]
+- kvm-scsi-clean-up-persistent-reservation-state-after-mig.patch [RHEL-274966]
+- kvm-scsi-use-REGISTER-AND-IGNORE-EXISTING-KEY-for-robust.patch [RHEL-274966]
+- kvm-scsi-document-PR_HELPER_CLEANUP-command.patch [RHEL-274966]
+- kvm-sbsa-gwdt-reduce-code-indent.patch [RHEL-305179]
+- kvm-arm-gwdt-consolidate-clear-WS0-and-WS1-on-explicit-r.patch [RHEL-305179]
+- kvm-arm-gwdt-simplify-WCV-update-condition.patch [RHEL-305179]
+- kvm-sbsa-gwdt-rename-sbsa_gwdt_update_timer-to-sbsa_gwdt.patch [RHEL-305179]
+- kvm-sbsa-gwdt-don-t-arm-timer-for-compare-values-above-I.patch [RHEL-305179]
+- kvm-sbsa-gwdt-reschedule-timer-on-direct-WCV-load.patch [RHEL-305179]
+- kvm-tests-arm-virt-add-GWDT-tests.patch [RHEL-305179]
+- Resolves: RHEL-256795
+  (NVIDIA:Backport hw/vfio: thread vf-token through iommufd bind - RHEL 10.4)
+- Resolves: RHEL-274966
+  (live migration of a VM with a scsi3pr to a node that previously held a reservation on that disk fails.)
+- Resolves: RHEL-305179
+  (Backport fixes for the acpi generic watchdog)
+
 * Tue Nov 10 2026 Miroslav Rezanina <mrezanin@redhat.com> - 11.1.0-4
 - kvm-rh-aarch64-rh-devices.mak-Add-CONFIG_TEGRA241_CMDQV.patch [RHEL-302834]
 - Resolves: RHEL-302834

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-25  8:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25  8:58 [rpms/qemu] eln: * Mon Nov 23 2026 Miroslav Rezanina <mrezanin@redhat.com> - 11.1.0-5 Miroslav Rezanina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox